Browse Source

[Backend] Bon de commadne historique et correctifs

feature/module_traiteur_v1
Fab 4 years ago
parent
commit
db3c849690
2 changed files with 24 additions and 2 deletions
  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 View File

{#{{ 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" %} {% set format = "d/m/Y H:i" %}
{% else %} {% else %}
{% set format = field_options.format %} {% set format = field_options.format %}

+ 22
- 0
ShopBundle/Resources/views/backend/default/list.html.twig View File

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

Loading…
Cancel
Save