{# /** * @file * Order template used on the admin order page. * * Available variables: * - attributes: HTML attributes for the wrapper. * - order: The rendered order fields. * Use 'order' to print them all, or print a subset such as * 'order.order_number'. Use the following code to exclude the * printing of a given field: * @code * {{ order|without('order_number') }} * @endcode * - order_entity: The order entity. * * @ingroup themeable */ #} {{ attach_library('commerce_order/form') }} {% set order_state = order_entity.getState.getLabel %}
{{ order.order_items }} {{ order.total_price }} {% if order.activity %}

{% trans %}Order activity{% endtrans %}

{{ order.activity }} {% endif %}

{{ order_state }}

{% for key in ['completed', 'placed', 'changed'] %} {% if order[key] %}
{{ order[key] }}
{% endif %} {% endfor %}
{{ 'Customer Information'|t }}
{% for key in ['uid', 'mail', 'ip_address'] %} {% if order[key] %}
{{ order[key] }}
{% endif %} {% endfor %}
{% if order.billing_information %}
{{ 'Billing information'|t }}
{{ order.billing_information }}
{% endif %} {% if order.shipping_information %}
{{ 'Shipping information'|t }}
{{ order.shipping_information }}
{% endif %} {# If the order has possible transitions, render the field for transition buttons. #} {% if order_entity.getState.getTransitions is not empty %}
{{ order.state }}
{% endif %}