Pārlūkot izejas kodu

[Backend] Commandes : ajout info complément

packProduct
Guillaume pirms 3 gadiem
vecāks
revīzija
c1b870b083
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      Resources/views/admin/order/field/complementary.html.twig

+ 4
- 0
Resources/views/admin/order/field/complementary.html.twig Parādīt failu

@@ -10,6 +10,10 @@
{% endif %}
{% else %}
<span class="badge badge-secondary">Principale</span>
{% set complementary_order_shops = entity.instance.complementaryOrderShops %}
{% if complementary_order_shops and complementary_order_shops|length > 0 %}
<span class="badge badge-success section-{{ order_shop.getSection().getDevAlias() }}">{{ complementary_order_shops|length}} complément{% if complementary_order_shops|length > 1 %}s{% endif %}</span>
{% endif %}
{% endif %}

{# {% set value = entity.instance.complementaryOrderShops|length %}

Notiek ielāde…
Atcelt
Saglabāt