{% extends '@OroUI/actions/view.html.twig' %}
{% import '@OroDataGrid/macros.html.twig' as dataGrid %}
{% oro_title_set({params : {"%name%": entity.defaultLabel.string }}) %}
{% block navButtons %}
{% import '@OroUI/macros.html.twig' as UI %}
{% if is_granted('oro_attribute_family_update') %}
{{ UI.editButton({
'path': path('oro_attribute_family_update', { 'id': entity.id }),
'entity_label': 'oro.entity_config.attribute_family.entity_label'|trans})
}}
{% endif %}
{% if is_granted('oro_attribute_family_delete') and is_granted('delete', entity) %}
{{ UI.deleteButton({
'dataUrl': path('oro_attribute_family_delete', {'id': entity.id}),
'dataRedirect': path('oro_attribute_family_index', {'alias': entityAlias}),
'aCss': 'no-hash remove-button',
'dataId': entity.id,
'entity_label': 'oro.entity_config.attribute_family.entity_label'|trans
}) }}
{% endif %}
{{ parent() }}
{% endblock navButtons %}
{% block pageHeader %}
{% set breadcrumbs = {
'entity': entity,
'indexPath': path('oro_attribute_family_index', {alias: entityAlias}),
'indexLabel': 'oro.entity_config.attribute_family.entity_plural_label'|trans,
'entityTitle': entity.defaultLabel()
} %}
{{ parent() }}
{% endblock pageHeader %}
{% block content_data %}
{% set dataBlocks = [
{
'title': 'oro.entity_config.sections.attribute_family.attributes'|trans,
'class': 'active',
'subblocks': [
{
'data': [
dataGrid.renderGrid('attribute-groups-grid', {'family_id' : entity.id})
]
}
]
}
] %}
{% set id = 'attributefamily-view' %}
{% set data = {'dataBlocks': dataBlocks} %}
{{ parent() }}
{% endblock content_data %}