{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "project/actions.html.twig" as actions %} {% block page_title %}{{ 'admin_project.title'|trans }}{% endblock %} {% block page_actions %}{{ actions.project(project, 'project_details') }}{% endblock %} {% block main %} {% set can_edit = is_granted('edit', project) %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "customer/actions.html.twig" as customerActions %} {% block box_attributes %}id="project_details_box"{% endblock %} {% block box_tools %} {% if can_edit %} {% endif %} {% endblock %} {% block box_title %} {{ widgets.label_project(project) }} {% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% if project.comment is not empty %}
{{ 'label.visible'|trans }} | {{ widgets.label_boolean(project.visible) }} | ||
---|---|---|---|
{{ 'label.customer'|trans }} | {{ widgets.label_customer(project.customer) }} | {{ widgets.badge_team_access(project.customer.teams) }} | {{ customerActions.customer(project.customer, 'custom') }} |
{{ 'label.orderNumber'|trans }} | {{ project.orderNumber }} | ||
{{ 'label.orderDate'|trans }} | {% if project.orderDate is not empty %} {{ project.orderDate|date_full }} {% else %} – {% endif %} | ||
{{ 'label.project_start'|trans }} | {% if project.start is not empty %} {{ project.start|date_full }} {% else %} – {% endif %} | ||
{{ 'label.project_end'|trans }} | {% if project.end is not empty %} {{ project.end|date_full }} {% else %} – {% endif %} | ||
{{ metaField.label|trans }} | {{ widgets.form_type_value(metaField.type, metaField.value, project) }} |