{% extends 'OroUIBundle:actions:view.html.twig' %} {% import 'OroUIBundle::macros.html.twig' as UI %} {% import "OroActivityBundle::macros.html.twig" as AC %} {% import 'OroEntityConfigBundle::macros.html.twig' as entityConfig %} {% import 'OroUserBundle::macros.html.twig' as U %} {% oro_title_set({params : {"%entity.subject%": entity.subject|default('N/A'|trans) }}) %} {% block navButtons %} {% import 'OroActivityBundle::macros.html.twig' as AC %} {% import 'OroUIBundle::macros.html.twig' as UI %} {% placeholder view_navButtons with {entity: entity} %} {% if is_granted('EDIT', entity) %} {# Button for add context on the activity list item view page #} {{ AC.addContextButton(entity) }} {{ UI.editButton({ 'path' : path('oro_task_update', { id: entity.id }), 'entity_label': 'oro.task.entity_label'|trans }) }} {% endif %} {% endblock navButtons %} {% block stats %} {% import 'OroActivityBundle::macros.html.twig' as AC %} {# Display contexts targets in the activity view page #}
  • {{ AC.activity_contexts(entity) }}
  • {% endblock %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_task_index'), 'indexLabel': 'oro.task.entity_plural_label'|trans, 'entityTitle': entity.subject } %} {{ parent() }} {% endblock pageHeader %} {% block breadcrumbs %} {% import 'OroUIBundle::macros.html.twig' as UI %} {{ parent() }} {% set status = { 'open': 'enabled', 'in_progress': 'tentatively', 'closed': 'disabled' } %} {% if entity.status is not null %} {{ UI.badge(entity.status.name, status[entity.status.id] ? status[entity.status.id] : 'disabled') }} {% endif %} {% endblock breadcrumbs %} {% block content_data %} {% import 'OroUIBundle::macros.html.twig' as UI %} {%- set taskInformation -%}
    {{ UI.renderProperty('oro.task.subject.label'|trans, entity.subject) }} {{ UI.renderSwitchableHtmlProperty('oro.task.description.label'|trans, entity.description) }} {{ UI.renderProperty('oro.task.due_date.label'|trans, entity.dueDate|oro_format_datetime) }} {{ UI.renderProperty('oro.task.task_priority.label'|trans, entity.taskPriority) }} {%- set createdByData -%} {%- if entity.createdBy -%} {{ U.render_user_name(entity.createdBy) }} {%- endif -%} {%- endset -%} {{ UI.renderHtmlProperty('oro.task.created_by.label'|trans, createdByData) }}
    {{ entityConfig.renderDynamicFields(entity) }}
    {%- endset -%} {% set dataBlocks = [ { 'title': 'General Information'|trans, 'subblocks': [ {'data' : [taskInformation]} ] } ] %} {% set id = 'taskView' %} {% set data = { 'dataBlocks': dataBlocks } %} {{ parent() }} {% endblock content_data %}