{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block main %} {% set can_edit = is_granted('edit', project) %} {% embed '@theme/embeds/card.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 %} {{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_project_edit', {'id': project.id})}) }} {% endif %} {% endblock %} {% block box_title %} {{ widgets.label_dot(project.name, project.color) }} {% endblock %} {% block box_body_class %}p-0{% endblock %} {% block box_body %} {% if project.comment is not empty %}
{{ 'visible'|trans }} | {{ widgets.label_boolean(project.visible) }} | ||
---|---|---|---|
{{ 'customer'|trans }} | {{ widgets.label_customer(project.customer) }} | {{ widgets.badge_team_access(project.customer.teams) }} | {{ customerActions.customer(project.customer, 'custom') }} |
{{ 'billable'|trans }} | {{ widgets.label_boolean(project.billable) }} | ||
{{ 'orderNumber'|trans }} | {{ project.orderNumber }} | ||
{{ 'orderDate'|trans }} | {{ project.orderDate|date_short }} | ||
{{ 'project_start'|trans }} | {{ project.start|date_short }} | ||
{{ 'project_end'|trans }} | {{ project.end|date_short }} | ||
{{ 'project_number'|trans }} | {{ project.number }} | ||
{{ 'budget'|trans }} {% if project.isMonthlyBudget() %} ({{ 'budgetType_month'|trans }}) {% endif %} | {{ project.getBudget()|money(project.customer.currency) }} | ||
{{ 'timeBudget'|trans }} {% if project.isMonthlyBudget() %} ({{ 'budgetType_month'|trans }}) {% endif %} | {{ project.getTimeBudget()|duration }} | ||
{{ 'globalActivities'|trans }} | {{ widgets.label_boolean(project.globalActivities) }} | ||
{{ metaField.label|trans }} | {{ widgets.form_type_value(metaField.type, metaField.value, project) }} |