{% extends 'PimUIBundle:actions:update.html.twig' %} {% import 'PimDataGridBundle::macros.html.twig' as dataGrid %} {% import 'PimUIBundle:Default:page_elements.html.twig' as elements %} {% set entityId = form.vars.value.id %} {% set title = entityId ? 'Update Group'|trans : 'New Group'|trans %} {% set gridName = 'pimgroup-user-grid' %} {% set formAction = entityId ? path('pim_user_group_update', { 'id': entityId}) : path('pim_user_group_create') %} {% set breadcrumbs = {} %} {% if entityId %} {% set breadcrumbs = { 'entity': form.vars.value, 'indexPath': path('pim_user_group_index'), 'indexLabel': 'Groups'|trans, 'entityTitle': form.vars.value.name } %} {% else %} {% block breadcrumbs %} {{ title }} {% endblock breadcrumbs %} {% endif %} {% block navButtons %} {% if entityId and resource_granted('pim_user_group_remove') %}