{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "customer/actions.html.twig" as actions %} {% block page_actions %}{{ actions.customer(customer, 'details') }}{% endblock %} {% block page_title %}{{ 'admin_customer.title'|trans }}{% endblock %} {% block main %} {% set can_edit = is_granted('edit', customer) %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block box_attributes %}id="customer_details_box"{% endblock %} {% block box_title %} {{ widgets.label_customer(customer) }} {% if customer.company is not empty %} – {{ customer.company }}{% endif %} {% endblock %} {% block box_tools %} {% if can_edit %} {% endif %} {% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% if customer.comment is not empty %}
{{ 'label.visible'|trans }} | {{ widgets.label_boolean(customer.visible) }} |
---|---|
{{ 'label.address'|trans }} | {{ customer.address|nl2br }} |
{{ 'label.country'|trans }} | {{ customer.country|country }} |
{{ 'label.contact'|trans }} | {{ customer.contact }} |
{{ 'label.phone'|trans }} | {{ customer.phone }} |
{{ 'label.mobile'|trans }} | {{ customer.mobile }} |
{{ 'label.email'|trans }} | {{ customer.email }} |
{{ 'label.homepage'|trans }} | {{ customer.homepage|replace({'https://': '', 'http://': ''}) }} |
{{ 'label.fax'|trans }} | {{ customer.fax }} |
{{ 'label.timezone'|trans }} | {{ now|date_full }} ({{ customer.timezone }}) |
{{ 'label.currency'|trans }} | {{ customer.currency }} |
{{ 'label.number'|trans }} | {{ customer.number }} |
{{ 'label.vat_id'|trans }} | {{ customer.vatId }} |
{{ metaField.label|trans }} | {{ widgets.form_type_value(metaField.type, metaField.value, customer) }} |