{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block main %} {% set can_edit = is_granted('edit', customer) %} {% embed '@theme/embeds/card.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 %} {{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_customer_edit', {'id': customer.id})}) }} {% endif %} {% endblock %} {% block box_body_class %}p-0{% endblock %} {% block box_body %} {% if customer.comment is not empty %}
{{ 'visible'|trans }} | {{ widgets.label_boolean(customer.visible) }} | ||
---|---|---|---|
{{ 'billable'|trans }} | {{ widgets.label_boolean(customer.billable) }} | ||
{{ 'address'|trans }} | {{ customer.address|nl2br }} | ||
{{ 'country'|trans }} | {{ customer.country|country_name }} | ||
{{ 'contact'|trans }} | {{ customer.contact }} | ||
{{ 'phone'|trans }} | {{ customer.phone }} | ||
{{ 'mobile'|trans }} | {{ customer.mobile }} | ||
{{ 'email'|trans }} | {{ customer.email }} | ||
{{ 'homepage'|trans }} | {{ customer.homepage|replace({'https://': '', 'http://': ''}) }} | ||
{{ 'fax'|trans }} | {{ customer.fax }} | ||
{{ 'timezone'|trans }} | {{ customer_now|date_time }} ({{ customer.timezone }}) | ||
{{ 'currency'|trans }} | {{ customer.currency }} | ||
{{ 'number'|trans }} | {{ customer.number }} | ||
{{ 'vat_id'|trans }} | {{ customer.vatId }} | ||
{{ metaField.label|trans }} | {{ widgets.form_type_value(metaField.type, metaField.value, customer) }} |