Explorar el Código

[Backend] Bon de commadne historique et correctifs

feature/module_traiteur_v1
Fab hace 4 años
padre
commit
db3c849690
Se han modificado 2 ficheros con 24 adiciones y 2 borrados
  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 Ver fichero

@@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar