moved products menu up to save width
This commit is contained in:
@@ -27,8 +27,13 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- discount profiles applied to this audience -->
|
{% set category_base = "/admin/catalog/products" %}
|
||||||
<section class="mt-4 rounded-radius border border-outline bg-surface p-6 dark:border-outline-dark dark:bg-surface-dark-alt">
|
{% set category_suffix = "&audience=" ~ audience %}
|
||||||
|
<div class="mt-4 flex flex-col gap-6 md:flex-row md:items-start">
|
||||||
|
{% include "admin/partials/category_filter.html" %}
|
||||||
|
|
||||||
|
<!-- discount profiles applied to this audience -->
|
||||||
|
<section class="min-w-0 flex-1 rounded-radius border border-outline bg-surface p-6 dark:border-outline-dark dark:bg-surface-dark-alt">
|
||||||
<h2 class="text-lg font-semibold text-on-surface-strong dark:text-on-surface-dark-strong">{{ t(key="discount-profiles", lang=lang | default(value='sk')) }}</h2>
|
<h2 class="text-lg font-semibold text-on-surface-strong dark:text-on-surface-dark-strong">{{ t(key="discount-profiles", lang=lang | default(value='sk')) }}</h2>
|
||||||
<p class="mt-1 text-sm text-on-surface/70 dark:text-on-surface-dark/70">
|
<p class="mt-1 text-sm text-on-surface/70 dark:text-on-surface-dark/70">
|
||||||
{% if business %}{{ t(key="apply-profiles-business-hint", lang=lang | default(value='sk')) }}{% else %}{{ t(key="apply-profiles-personal-hint", lang=lang | default(value='sk')) }}{% endif %}
|
{% if business %}{{ t(key="apply-profiles-business-hint", lang=lang | default(value='sk')) }}{% else %}{{ t(key="apply-profiles-personal-hint", lang=lang | default(value='sk')) }}{% endif %}
|
||||||
@@ -53,13 +58,10 @@
|
|||||||
<a href="/admin/catalog/discount-profiles/new" class="text-primary dark:text-primary-dark">{{ t(key="new-profile", lang=lang | default(value='sk')) }}</a>
|
<a href="/admin/catalog/discount-profiles/new" class="text-primary dark:text-primary-dark">{{ t(key="new-profile", lang=lang | default(value='sk')) }}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% set category_base = "/admin/catalog/products" %}
|
<div class="mt-4 {{ ui::table_wrap_cls() }}">
|
||||||
{% set category_suffix = "&audience=" ~ audience %}
|
|
||||||
<div class="mt-4 flex flex-col gap-6 md:flex-row md:items-start">
|
|
||||||
{% include "admin/partials/category_filter.html" %}
|
|
||||||
<div class="min-w-0 flex-1 {{ ui::table_wrap_cls() }}">
|
|
||||||
{% if products | length > 0 %}
|
{% if products | length > 0 %}
|
||||||
<table class="{{ ui::table_cls() }}">
|
<table class="{{ ui::table_cls() }}">
|
||||||
<thead class="{{ ui::thead_cls() }}">
|
<thead class="{{ ui::thead_cls() }}">
|
||||||
@@ -143,6 +145,5 @@
|
|||||||
{{ ui::button(label=t(key="new-product", lang=lang | default(value='sk')), href="/admin/catalog/products/new") }}
|
{{ ui::button(label=t(key="new-product", lang=lang | default(value='sk')), href="/admin/catalog/products/new") }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user