瀏覽代碼

[Backend] Bon de commadne historique et correctifs

feature/module_traiteur_v1
Fab 4 年之前
父節點
當前提交
db3c849690
共有 2 個文件被更改,包括 24 次插入2 次删除
  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 查看文件

@@ -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 查看文件

@@ -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' })) }}">

Loading…
取消
儲存