{% extends '@OroUI/actions/view.html.twig' %}
{% import '@OroUI/macros.html.twig' as ui %}
{% set fullname = entity|oro_format_name|default('N/A'|trans) %}
{% oro_title_set({ params : {"%request.clientName%": fullname} }) %}
{% block pageHeader %}
{% set breadcrumbs = {
'entity': entity,
'indexPath': path('oro_contactus_request_index'),
'indexLabel': 'oro.contactus.contactrequest.entity_plural_label'|trans,
'entityTitle': fullname
} %}
{{ parent() }}
{% endblock pageHeader %}
{% block navButtons %}
{% import '@OroUI/macros.html.twig' as UI %}
{% if is_granted('oro_contactus_request_delete') %}
{{ UI.deleteButton({
'dataUrl': path('oro_contactus_request_delete', {'id': entity.id}),
'dataRedirect': path('oro_contactus_request_index'),
'aCss': 'no-hash remove-button',
'id': 'btn-remove-contact-request-form',
'dataId': entity.id,
'entity_label': 'oro.contactus.contactrequest.entity_label'|trans,
}) }}
{{ UI.buttonSeparator() }}
{% endif %}
{% if is_granted('oro_contactus_request_edit') %}
{{ UI.editButton({
'path': path('oro_contactus_request_update', {'id': entity.id}),
'entity_label': 'oro.contactus.contactrequest.entity_label'|trans,
}) }}
{% endif %}
{% endblock %}
{% block content_data %}
{% set contactRequestInformationWidget %}
{{ oro_widget_render({
'widgetType': 'block',
'url': path('oro_contactus_request_info', {id: entity.id}),
'title': 'oro.contactus.block.request_information'|trans
}) }}
{% endset %}
{% set dataBlocks = [
{
'title': 'General'|trans,
'subblocks': [
{'data': [contactRequestInformationWidget]}
]
}
] %}
{% set id = 'contactRequestView' %}
{% set data = {'dataBlocks': dataBlocks} %}
{{ parent() }}
{% endblock %}