{% import 'OroUIBundle::macros.html.twig' as UI %} {{ UI.clientButton({ 'dataUrl': path('oro_task_create', oro_action_params(entity, constant('Oro\\Bundle\\TaskBundle\\EventListener\\FormSetOwnerEventListener::ACTION_ASSIGN'))), 'aCss': 'no-hash', 'iCss': 'fa-tasks', 'dataId': entity.id, 'label': 'oro.task.assign_entity'|trans, 'title': 'oro.task.assign_entity.title'|trans, 'widget' : { 'type' : 'dialog', 'multiple' : true, 'reload-grid-name': 'user-tasks-grid', 'refresh-widget-alias': 'activity-list-widget', 'options' : { 'alias': 'assign-task-dialog', 'dialogOptions' : { 'title' : 'oro.task.assign_entity.widget_title'|trans({'%username%': entity|oro_format_name}), 'allowMaximize': true, 'allowMinimize': true, 'dblclick': 'maximize', 'maximizedHeightDecreaseBy': 'minimize-bar', 'width': 1000 } } } }) }}