{% import 'common/thumbnail.html.twig' as thumbnail %} {% set displayName = order.getUser().getDisplayName() %}
{{ 'Il se peux que vous ne voyez pas tous les elements. Vous ne verrez que les elements correspondants aux collections sur lesquelles vous gerez les commandes' | trans }}
{% set success = app['request'].query.get('success') %} {% set action = app['request'].query.get('action') %} {% set message = app['request'].query.get('message') %} {% if success == '1' %}
{% if action == 'send' %} {{ 'Order has been sent' | trans }} {% elseif action == 'deny' %} {{ 'Order has been denied' | trans }} {% elseif action == 'basket' %} {{ message }} {% endif %}
{% elseif success == '0' %}
{{ 'An error occured, please retry or contact an admin if problem persists' | trans }}
{% endif %}
{{ order.getUser().getDisplayName() }}
{{ 'order-manager::order-item: company' | trans }} {{ order.getUser().getCompany() }} {{ 'order-manager::order-item: tel' | trans }} {{ order.getUser().getPhone() }} {{ 'order-manager::order-item: address' | trans }} {{ order.getUser().getAddress() }} {{ 'order-manager::order-item: country' | trans }} {{ order.getUser().getCountry() }}
{{ 'order-manager::order-list: order-id' | trans }} {{ order.getId() }} {{ 'Date de demande' | trans }} {{ order.getCreatedOn()|date('d/m/Y') }} {{ 'Deadline' | trans }} {{ order.getDeadline()|date('d/m/Y') }} {{ 'order-manager::order-list: treated-documents' | trans }} {{ order.getTotalTreatedItems() }}/{{ order.getTotal() }} {% if order.getTodo() == 0 and order.getCanceledOn() is empty %} {{ 'order-manager:: all document treated' | trans }} {% elseif order.getTodo() != 0 and order.getCanceledOn() is empty %} {% elseif order.getTodo() == 0 and order.getCanceledOn() is not empty %} {{ 'order-manager:: canceled on %canceled_on% by %canceled_by%, with %n% items not treated' | trans({'%canceled_on%' : order.getCanceledOn() | date('d/m/Y'), '%canceled_by%' : user_display_name(order.getCanceledBy()), '%n%' : order.getCanceledTodo()}) }} {% endif %}
{{ displayName }} ({{ order.getUser().getEmail() }})
{{ 'commande::utilisation prevue' | trans }}

{{ order.getOrderUsage() }}

{% for element in order.getElements() %} {% if element.getBaseId() in grantedBaseIds %} {% endif %} {% endfor %}
{% if element.getOrderMaster() %} {% set name = element.getOrderMaster().getDisplayName() | e %} {% if element.getDeny() == true %} {% set title %} {% trans with {'%name%' : name} %}Document refuse par %name%{% endtrans %} {% endset %} {% set title_send %} {% trans %}Forcer l'envoi du document{% endtrans %} {% endset %} {# #} {% else %} {% set title %} {% trans with {'%name%' : name} %}Document envoye par %name%{% endtrans %} {% endset %} {% endif %} {% endif %}
{{ thumbnail.format(element.getRecord(app).get_thumbnail() ,80, 80, '', true, false) }} {#
#} {##} {#
#} {#
#} {#
#}
{{element.getRecord(app).getOriginalName() }}
{% include 'common/preview.html.twig' with {'record': order.getElements()[0].getRecord(app)}%}
{{ 'order-manager::order-item: information' | trans }}
{% include 'common/caption.html.twig' with {'record': order.getElements()[0].getRecord(app), 'view': 'preview' }%}
0

{{ 'order-manager::order-item: selected-records' | trans }}