-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration pages vertical home, table et tpl
- Loading branch information
LaurentBlondel
committed
Nov 23, 2023
1 parent
bb4fed0
commit bed584f
Showing
5 changed files
with
177 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,37 @@ | ||
<div style="display:none"> | ||
<div id="template-product-search"> | ||
|
||
<div class="card shadow p-4"> | ||
<div class="row align-items-center"> | ||
<aside class="col-md-3"> | ||
<a href="{{productUrl}}"> | ||
<img src="{{imageUrl}}" alt="{{name}}"> | ||
</a> | ||
</aside> <!-- col.// --> | ||
<div class="col-md-6"> | ||
<div class="info-main"> | ||
<a href="{{productUrl}}" class="h5 title">{{data.attributes.referentielAttributes.BRAND}} - {{name}}</a> | ||
<div class="d-flex my-3"> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning"></span> | ||
<span class="badge badge-pill badge-gray ms-2">4.7</span> | ||
<span class="small text-success ms-3"><span class="fas fa-shopping-cart me-1"></span>{{data.offersCount}} offre(s)</span> | ||
</div> | ||
<p>Monitor your health. Track your workouts. Get the motivation you need to achieve your fitness goals. And stay connected to the people and information you care about.</p> | ||
</div> | ||
</div> | ||
<div class="col-12 col-md-3"> | ||
<div class="d-flex align-items-center"> | ||
<span class="h5 mb-0 text-danger me-2"> | ||
{{data.price.minPrice.price}} {{data.price.minPrice.currency}} | ||
</span> | ||
</div> <!-- info-price-detail // --> | ||
<div class="row"> | ||
<article class="col-12 col-md-3"> | ||
<div class="card shadow"> | ||
<div class="card-header bg-gray-200 border-0 text-center"> | ||
<img src="{{imageUrl}}" alt="{{name}}"> | ||
</div> | ||
<div class="card-body border-top border-gray-300"> | ||
<a href="{{productUrl}}" class="h5">{{data.attributes.referentielAttributes.BRAND}} - {{name}}</a> | ||
<p class="h6 fw-light text-gray mt-2"> | ||
Monitor your health. Track your workouts. Get the motivation you need to achieve your fitness goals. And stay connected to the people and information you care about. | ||
</p> | ||
<div class="d-flex mt-3"> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning me-1"></span> | ||
<span class="star fas fa-star text-warning"></span> | ||
<span class="badge badge-pill badge-gray ms-2">4.7</span> | ||
<span class="small text-success ms-3">{{data.offersCount}} offre(s)</span> | ||
</div> | ||
</div> | ||
<div class="card-footer bg-gray-200 border-top border-gray-300 p-4"> | ||
<div class="mb-3"> | ||
<p class="h5 my-0 text-gray me-2"> | ||
{{data.price.minPrice.price}} {{data.price.minPrice.currency}} | ||
</p> | ||
<span class="text-success small"><span class="fas fa-shopping-cart me-1"></span>Compensation : {{data.price.minPrice.compensation}} {{data.price.minPrice.currency}}</span> | ||
<div class="d-grid gap-2 mt-4"> | ||
<a class="btn btn-tertiary btn-sm" href="{{productUrl}}"> | ||
Details | ||
</a> | ||
<a href="#" class="btn btn-tertiary btn-sm"><span class="fa fa-heart me-1"></span> | ||
Acheter | ||
</a> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</article> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,45 @@ | ||
|
||
<table id="tableProducts" class="table compact"> | ||
<div class="table-responsive-sm"> | ||
<table id="tableProducts" class="table"> | ||
<thead> | ||
<tr> | ||
<th>Nom</th> | ||
<th>Marque</th> | ||
<th>Eco-score</th> | ||
<th>Prix</th> | ||
<th>Offres</th> | ||
<th><small>Nom</small></th> | ||
<th><small>Marque</small></th> | ||
<th><small>Eco-score</small></th> | ||
<th><small>Prix</small></th> | ||
<th><small>Offres</small></th> | ||
|
||
<th:block th:each="filter : ${products.customFilters}"> | ||
<th th:text="${filter.key.name.get(siteLanguage)}"></th> | ||
</th:block> | ||
|
||
|
||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr th:each="p : ${products.data}" > | ||
|
||
|
||
<td th:if="${p.model()}"><a th:text="${p.model()}" th:href="'/'+${verticalPath}+ '/'+${p.names.name}"></a></td> | ||
<td th:unless="${p.model()}"><a th:text="${p.bestName()}" th:href="'/'+${verticalPath}+ '/'+${p.names.name}"></a></td> | ||
|
||
|
||
|
||
<td th:text="${p.brand()}"></td> | ||
<td></td> | ||
<td th:text="${p.bestPrice.price}"></td> | ||
<td th:text="${p.offersCount}"></td> | ||
<th:block th:each="filter : ${products.customFilters}"> | ||
<td th:if="${p.attributes.aggregatedAttributes.get(filter.key.key)}" th:text="${p.attributes.aggregatedAttributes.get(filter.key.key).value }"></td> | ||
<td th:unless="${p.attributes.aggregatedAttributes.get(filter.key.key)}"></td> | ||
|
||
</th:block> | ||
<tr> | ||
<td> | ||
<div th:each="p : ${products.data}" > | ||
<p th:if="${p.model()}"><a th:text="${p.model()}" th:href="'/'+${verticalPath}+ '/'+${p.names.name}"></a></p> | ||
<p th:unless="${p.model()}"><a th:text="${p.bestName()}" th:href="'/'+${verticalPath}+ '/'+${p.names.name}"></a></p> | ||
<p th:text="${p.brand()}"></p> | ||
<p></p> | ||
<p th:text="${p.bestPrice.price}"></p> | ||
<p th:text="${p.offersCount}"></p> | ||
<th:block th:each="filter : ${products.customFilters}"> | ||
<p th:if="${p.attributes.aggregatedAttributes.get(filter.key.key)}" th:text="${p.attributes.aggregatedAttributes.get(filter.key.key).value }"></p> | ||
<p th:unless="${p.attributes.aggregatedAttributes.get(filter.key.key)}"></p> | ||
</th:block> | ||
|
||
|
||
</div> | ||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
|
||
</table> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.