Procházet zdrojové kódy

[Backend] Bon de commadne historique et correctifs

feature/module_traiteur_v1
Fab před 4 roky
rodič
revize
db3c849690
2 změnil soubory, kde provedl 24 přidání a 2 odebrání
  1. +2
    -2
      ShopBundle/Resources/views/backend/default/list-fields/field_datetime.html.twig
  2. +22
    -0
      ShopBundle/Resources/views/backend/default/list.html.twig

+ 2
- 2
ShopBundle/Resources/views/backend/default/list-fields/field_datetime.html.twig Zobrazit soubor

@@ -1,6 +1,6 @@
{#{{ value|date('U')}}#}
{# {{ value|date('U')}} #}

{% if field_options.format == "d/m/Y h:i A e" %}
{% if field_options.format == "d/m/Y h:i A e" or field_options.format == null %}
{% set format = "d/m/Y H:i" %}
{% else %}
{% set format = field_options.format %}

+ 22
- 0
ShopBundle/Resources/views/backend/default/list.html.twig Zobrazit soubor

@@ -148,6 +148,28 @@
</a>
{% endif %}


{% if _entity_config['list']['btn_history_purchase_order'] is defined %}
<a class="float-right btn-sm btn-info"
href="{{ path('easyadmin', { entity: 'PurchaseOrder', action: 'list' }) }}">
<i class="fa fa-history"></i> Historiques des bons de commandes
</a>
{% endif %}

{% if _entity_config['list']['btn_week_purchase_order'] is defined %}
<a class="float-right btn-sm btn-info"
href="{{ path('easyadmin', { entity: 'SupplierOrderPurchase', action: 'list' }) }}">
<i class="fa fa-tractor"></i> Bons de commandes de la semaine
</a>
{% endif %}

{% if _entity_config['list']['btn_add_purchase_order'] is defined %}
<a class="float-right btn-sm btn-primary"
href="{{ path('easyadmin', { entity: 'PurchaseOrder', action: 'new' }) }}">
<i class="fa fa-plus"></i> Créer un bon de commande
</a>
{% endif %}

{% if _entity_config['list']['edit_position'] is defined %}
<a class="float-right btn-sm btn-success action-sort"
href="{{ path('easyadmin', _request_parameters|merge({ action: 'sort' })) }}">

Načítá se…
Zrušit
Uložit