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