|
10 | 10 | </template> |
11 | 11 | {% endblock %} |
12 | 12 |
|
13 | | - {% block layout_search_suggest_result_suggest_container %} |
14 | | - <section class="ff-suggest-container row pb-4"> |
15 | | - <div data-container="searchTerm" class="col"> |
16 | | - <h3 class="h5 container-caption">{{ 'ff.suggest.SearchTerms'|trans|striptags }}</h3> |
17 | | - <ff-suggest-item type="searchTerm"> |
18 | | - <a href="#" class="ff-search-term">{{ '{{{name}}}' }}</a> |
19 | | - </ff-suggest-item> |
20 | | - </div> |
| 13 | + <template data-role="suggestions"> |
| 14 | + {% block layout_search_suggest_result_suggest_container %} |
| 15 | + <section class="ff-suggest-container row pb-4"> |
| 16 | + <div data-container="searchTerm" class="col"> |
| 17 | + <h3 class="h5 container-caption">{{ 'ff.suggest.SearchTerms'|trans|striptags }}</h3> |
| 18 | + <ff-suggest-item type="searchTerm"> |
| 19 | + <a href="#" class="ff-search-term">{{ '{{{name}}}' }}</a> |
| 20 | + </ff-suggest-item> |
| 21 | + </div> |
21 | 22 |
|
22 | | - <div data-container="category" class="col"> |
23 | | - <h3 class="h5 container-caption">{{ 'ff.suggest.Categories'|trans|striptags }}</h3> |
24 | | - <ff-suggest-item type="category"> |
25 | | - <a href="#" class="ff-category">{{ '{{{name}}}' }}</a> |
26 | | - </ff-suggest-item> |
27 | | - </div> |
| 23 | + <div data-container="category" class="col"> |
| 24 | + <h3 class="h5 container-caption">{{ 'ff.suggest.Categories'|trans|striptags }}</h3> |
| 25 | + <ff-suggest-item type="category"> |
| 26 | + <a href="#" class="ff-category">{{ '{{{name}}}' }}</a> |
| 27 | + </ff-suggest-item> |
| 28 | + </div> |
28 | 29 |
|
29 | | - <div data-container="brand" class="col"> |
30 | | - <h3 class="h5 container-caption">{{ 'ff.suggest.Brands'|trans|striptags }}</h3> |
31 | | - <ff-suggest-item type="brand"> |
32 | | - <a href="#" class="ff-brand">{{ '{{{name}}}' }}</a> |
33 | | - </ff-suggest-item> |
34 | | - </div> |
35 | | - </section> |
36 | | - {% endblock %} |
| 30 | + <div data-container="brand" class="col"> |
| 31 | + <h3 class="h5 container-caption">{{ 'ff.suggest.Brands'|trans|striptags }}</h3> |
| 32 | + <ff-suggest-item type="brand"> |
| 33 | + <a href="#" class="ff-brand">{{ '{{{name}}}' }}</a> |
| 34 | + </ff-suggest-item> |
| 35 | + </div> |
| 36 | + </section> |
| 37 | + {% endblock %} |
37 | 38 |
|
38 | | - {% block layout_search_suggest_result_product_container %} |
39 | | - <section class="ff-suggest-container ff-suggest-container--products"> |
40 | | - <h3 class="h5 container-caption">{{ 'ff.suggest.Products'|trans|striptags }}</h3> |
41 | | - {% block layout_search_suggest_result_product %} |
42 | | - <div data-container="productName"> |
43 | | - <ff-suggest-item type="productName"> |
44 | | - <div class="search-suggest-product js-result search-suggest-product-link"> |
45 | | - <div class="row align-items-center no-gutters"> |
46 | | - <div class="col-auto search-suggest-product-image-container"> |
47 | | - <img class="search-suggest-product-image" data-image="{{ '{{image}}' }}" alt="photo"/> |
| 39 | + {% block layout_search_suggest_result_product_container %} |
| 40 | + <section class="ff-suggest-container ff-suggest-container--products"> |
| 41 | + <h3 class="h5 container-caption">{{ 'ff.suggest.Products'|trans|striptags }}</h3> |
| 42 | + {% block layout_search_suggest_result_product %} |
| 43 | + <div data-container="productName"> |
| 44 | + <ff-suggest-item type="productName"> |
| 45 | + <div class="search-suggest-product js-result search-suggest-product-link"> |
| 46 | + <div class="row align-items-center no-gutters"> |
| 47 | + <div class="col-auto search-suggest-product-image-container"> |
| 48 | + <img class="search-suggest-product-image" data-image="{{ '{{image}}' }}" alt="photo"/> |
| 49 | + </div> |
| 50 | + <a href="#" class="col search-suggest-product-name">{{ '{{{name}}}' }}</a> |
| 51 | + <div class="col-auto search-suggest-product-price">{{ '{{attributes.Price}}' }}</div> |
48 | 52 | </div> |
49 | | - <a href="#" class="col search-suggest-product-name">{{ '{{{name}}}' }}</a> |
50 | | - <div class="col-auto search-suggest-product-price">{{ '{{attributes.Price}}' }}</div> |
51 | 53 | </div> |
52 | | - </div> |
53 | | - </ff-suggest-item> |
54 | | - </div> |
55 | | - {% endblock %} |
56 | | - </section> |
57 | | - {% endblock %} |
| 54 | + </ff-suggest-item> |
| 55 | + </div> |
| 56 | + {% endblock %} |
| 57 | + </section> |
| 58 | + {% endblock %} |
| 59 | + </template> |
58 | 60 | </ff-suggest> |
59 | 61 | </div> |
60 | 62 | {% endblock %} |
0 commit comments