{% extends 'base.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% block main %} {% set can_edit = is_granted('edit', activity) %} {% set currency = null %} {% if activity.project is not null %} {% set currency = activity.project.customer.currency %} {% endif %} {% embed '@theme/embeds/card.html.twig' %} {% import "macros/widgets.html.twig" as widgets %} {% import "customer/actions.html.twig" as customerActions %} {% import "project/actions.html.twig" as projectActions %} {% block box_attributes %}id="activity_details_box"{% endblock %} {% block box_title %} {{ widgets.label_name(activity.name, activity.color) }} {% endblock %} {% block box_tools %} {% if can_edit %} {{ widgets.card_tool_button('edit', {'class': 'modal-ajax-form open-edit', 'title': 'action.edit', 'url': path('admin_activity_edit', {'id': activity.id})}) }} {% endif %} {% endblock %} {% block box_body_class %}p-0{% endblock %} {% block box_body %} {% if activity.comment is not empty %}
{{ 'visible'|trans }} | {{ widgets.label_boolean(activity.visible) }} | ||
---|---|---|---|
{{ 'billable'|trans }} | {{ widgets.label_boolean(activity.billable) }} | ||
{{ 'customer'|trans }} | {{ widgets.label_customer(activity.project.customer) }} | {{ widgets.badge_team_access(activity.project.customer.teams) }} | {{ customerActions.customer(activity.project.customer, 'custom') }} |
{{ 'project'|trans }} | {{ widgets.label_project(activity.project) }} | {{ widgets.badge_team_access(activity.project.teams) }} | {{ projectActions.project(activity.project, 'custom') }} |
{{ metaField.label|trans }} | {{ widgets.form_type_value(metaField.type, metaField.value, activity) }} |