add confirmation page for task

This commit is contained in:
2018-07-06 15:47:14 +02:00
parent 5ada6d913c
commit 52bda7c94f
7 changed files with 268 additions and 26 deletions

View File

@@ -32,17 +32,23 @@ class DefaultTaskDefinition implements \Chill\TaskBundle\Workflow\TaskWorkflowDe
'close' => [
'verb' => 'close',
'class' => 'sc-button bt-task-label bt-task-close',
'sentence' => '%user% has closed the task'
'sentence' => '%user% has closed the task',
'sentence_confirmation' => 'Are you sure you want to close this task ?',
'apply_transition_submit_label' => 'Close_verb'
],
'cancel' => [
'verb' => 'cancel',
'class' => 'sc-button bt-task-label bt-task-cancel',
'sentence' => '%user% has canceled the task'
'sentence' => '%user% has canceled the task',
'sentence_confirmation' => 'Are you sure you want to cancel this task ?',
'apply_transition_submit_label' => 'Set this task to cancel state'
],
'start' => [
'verb' => 'start',
'class' => 'sc-button bt-task-label bt-task-start',
'sentence' => '%user% has started the task'
'sentence' => '%user% has started the task',
'sentence_confirmation' => 'Are you sure you want to start this task ?',
'apply_transition_submit_label' => 'Start_verb'
]
];