소스 검색

[Backend] Liste commandes : clarifier affichage des commandes complémentaires entre les difféntes sections

packProduct
Guillaume 2 년 전
부모
커밋
c72ebe1e04
1개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. +16
    -1
      Resources/views/admin/order/field/complementary.html.twig

+ 16
- 1
Resources/views/admin/order/field/complementary.html.twig 파일 보기

@@ -1,4 +1,18 @@
{% set value = entity.instance.complementaryOrderShops|length %}
{% set order_shop = entity.instance %}
{% set main_order_shop = entity.instance.mainOrderShop %}
{% if main_order_shop is defined and main_order_shop is not null %}
{% if order_shop.getSection() != main_order_shop.getSection() or section_container.solver.isSectionWithdrawal(order_shop.getSection()) %}
<span class="badge badge-warning section-{{ main_order_shop.getSection().getDevAlias() }}">
Complément {{ main_order_shop.getSection() }}
</span>
{% else %}
<span class="badge badge-warning">Complément</span>
{% endif %}
{% else %}
<span class="badge badge-secondary">Principale</span>
{% endif %}

{# {% set value = entity.instance.complementaryOrderShops|length %}
{% if value > 0 %}
<span class="badge badge-success">
{{ value|length }} compléments
@@ -8,3 +22,4 @@
non
</span>
{% endif %}
#}

Loading…
취소
저장