page is better in shop now
This commit is contained in:
@@ -315,6 +315,7 @@ order-search-placeholder = Search orders…
|
||||
search-empty = Nothing matched your search:
|
||||
results-count = { $count } products
|
||||
sort-label = Sort
|
||||
per-page-label = Per page
|
||||
sort-relevance = Relevance
|
||||
sort-newest = Newest
|
||||
sort-price_asc = Price: low to high
|
||||
|
||||
@@ -315,6 +315,7 @@ order-search-placeholder = Hľadať objednávky…
|
||||
search-empty = Pre váš výraz sme nič nenašli:
|
||||
results-count = { $count } produktov
|
||||
sort-label = Zoradiť
|
||||
per-page-label = Na stránku
|
||||
sort-relevance = Relevancia
|
||||
sort-newest = Najnovšie
|
||||
sort-price_asc = Cena: od najnižšej
|
||||
|
||||
@@ -52,6 +52,24 @@
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<!-- per-page count -->
|
||||
<label class="flex items-center gap-2 text-xs font-medium text-on-surface/70 dark:text-on-surface-dark/70">
|
||||
{{ t(key="per-page-label", lang=L) }}
|
||||
<select name="per_page"
|
||||
class="rounded-radius border border-outline bg-surface px-2 py-1.5 text-sm text-on-surface focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:border-outline-dark dark:bg-surface-dark dark:text-on-surface-dark">
|
||||
{% for opt in per_page_options %}
|
||||
<option value="{{ opt }}"{% if per_page == opt %} selected{% endif %}>{{ opt }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<!-- in stock only -->
|
||||
<label class="flex items-center gap-2 text-sm text-on-surface dark:text-on-surface-dark">
|
||||
<input type="checkbox" name="in_stock" value="1"{% if in_stock %} checked{% endif %}
|
||||
class="size-4 rounded border-outline text-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary dark:border-outline-dark dark:text-primary-dark" />
|
||||
{{ t(key="filter-in-stock", lang=L) }}
|
||||
</label>
|
||||
|
||||
<!-- grid / list view toggle -->
|
||||
<div class="inline-flex gap-0.5 rounded-radius border border-outline p-0.5 dark:border-outline-dark" role="group"
|
||||
aria-label="{{ t(key='view-grid', lang=L) }} / {{ t(key='view-list', lang=L) }}">
|
||||
|
||||
Reference in New Issue
Block a user