<#include "macro_workflows.html" /> <@pageContainer> <@pageColumn> <@pageHeader title='#i18n{workflow.modify_action.title} : ${action.name}' /> <@row> <@columns sm=12 md=4> <@box> <@boxHeader titleLevel='h3' i18nTitleKey='workflow.modify_action.title' /> <@boxBody> <@tform action='jsp/admin/plugins/workflow/DoModifyAction.jsp?plugin_name=workflow'> <@fieldSet> <@input type='hidden' name='id_action' value=action.id /> <@input type="hidden" name="token" value="${token}" /> <@formGroup rows=2 labelFor='name' labelKey='#i18n{workflow.create_action.label_name}' mandatory=true helpKey='#i18n{workflow.create_action.label_name_comment}'> <@input type='text' name='name' value=action.name maxlength=255 /> <@formGroup rows=2 labelFor='uid' labelKey='#i18n{workflow.create_action.label_uid}' mandatory=true helpKey='#i18n{workflow.create_action.label_uid_comment}'> <@input type='text' name='uid' value=action.uid readonly=true /> <@formGroup rows=2 labelFor='description' labelKey='#i18n{workflow.create_action.label_description}' mandatory=true helpKey='#i18n{workflow.create_action.label_description_comment}' > <@input type='textarea' name='description' rows=2 cols=80>${action.description} <@formGroup rows=2 labelFor='id_state_before' labelKey='#i18n{workflow.create_action.label_state_before}' mandatory=true helpKey='#i18n{workflow.create_action.label_state_before_comment}'> <#list state_list as state> <#assign isCheck=false /> <#list action.listIdStateBefore as stateChecked> <#if state.code == stateChecked?c > <#assign isCheck=true /> <@checkBox name='id_state_before' id='id_state_before${state.code}' value='${state.code}' labelKey='${state.name}' checked=isCheck /> <@formGroup rows=2 labelFor='id_state_after' labelKey='#i18n{workflow.create_action.label_state_after}' mandatory=true helpKey='#i18n{workflow.create_action.label_state_after_comment}'> <@select name='id_state_after' items=state_list default_value=action.stateAfter.id?string /> <@formGroup rows=2 labelFor='id_alternative_state_after' labelKey='#i18n{workflow.create_action.label_alternative_state_after}' helpKey='#i18n{workflow.create_action.label_alternative_state_after_comment}'> <@select name='id_alternative_state_after' items=alternative_state_list default_value=action.alternativeStateAfter.id?string /> <@formGroup rows=2 labelFor='id_icon' labelKey='#i18n{workflow.create_action.label_icon}' mandatory=true helpKey='#i18n{workflow.create_action.label_icon_comment}'> <@radioIconList name="id_icon" default_value=action.icon.id icons=icon_list /> <@formGroup rows=2 labelFor='automatic' helpKey='#i18n{workflow.create_action.label_automatic_comment}'> <@checkBox name='automatic' id='automatic' value='1' labelKey='#i18n{workflow.create_action.label_automatic}' checked=action.automaticState /> <@formGroup rows=2 labelFor='is_mass_action' helpKey='#i18n{workflow.create_action.label_mass_action_comment}'> <@checkBox name='is_mass_action' id='is_mass_action' value='1' labelKey='#i18n{workflow.create_action.label_mass_action}' checked=action.massAction/> <@formGroup rows=2 > <@formHelp>#i18n{workflow.create_action.label_link_actions} <@formHelp>#i18n{workflow.create_action.label_link_actions_comment} <@formHelp>#i18n{workflow.create_action.label_link_actions_example} <#if !display_tasks_form> <@table striped=true condensed=true responsive=false hover=false> <@tr> <@th>#i18n{workflow.create_action.label_available_linked_actions} <@th> <@th>#i18n{workflow.create_action.label_selected_linked_actions} <@tr> <@td> <@select name='select_linked_actions' default_value='' multiple=10 items=available_linked_actions /> <@td> <@div align='center'> <@button type='submit' name='apply' title='#i18n{workflow.create_action.label_select_unselect_linked_actions}'/> <@td> <@select name='unselect_linked_actions' default_value='' multiple=10 items=selected_linked_actions/> <#else> <@alert color='warning' class='mt-3 mb-3'> <@icon style='alert-triangle' class='pe-2'/>  #i18n{workflow.create_action.label_link_actions_comment_display_task_forms} <@formGroup rows=2 > <@button type='submit' name='save' buttonIcon='check' title='#i18n{workflow.create_action.button_save}' /> <@button type='submit' name='apply' buttonIcon='circle-check' title='#i18n{workflow.modify_action.button_apply}' /> <@button type='submit' name='cancel' buttonIcon='x' title='#i18n{workflow.create_action.button_cancel}' cancel=true /> <@columns sm=12 md=8> <@box> <@boxHeader titleLevel='h3' i18nTitleKey='workflow.modify_action.manage_task.title' /> <@boxBody> <@fieldSet> <@tform action='jsp/admin/plugins/workflow/DoInsertTask.jsp?plugin_name=workflow'> <@input type='hidden' name='id_action' value=action.id/> <@input type="hidden" name="token" value="${token}" /> <@formGroup rows=2 labelFor='task_type_key' labelKey='#i18n{workflow.modify_action.manage_task.insert_new_task}'> <@inputGroup> <@select name='task_type_key' default_value='-1' items=task_type_list sort=true /> <@inputGroupItem type='btn'> <@button hideTitle=['all'] type='submit' buttonIcon='plus' title='#i18n{workflow.create_action.button_insert_new_task}' size='sm' /> <@tag color='info' tagIcon='exclamation-triangle'> #i18n{workflow.modify_action.manage_task.warning_assignment} <@div align='right' class='mb-3'> <@aButton href='jsp/admin/plugins/workflow/DoUpdateTaskOrder.jsp?id_action=${action.id}' hideTitle=['all'] buttonIcon='arrows-sort' title='#i18n{workflow.modify_workflow.init_order}' iconPosition='right' size='sm' /> <@table striped=true condensed=true responsive=false hover=false> <@tr> <@th> #i18n{workflow.modify_workflow.order} <@th> #i18n{workflow.modify_action.manage_task.title} <@th> #i18n{workflow.modify_action.manage_task.row_actions} <#list task_list as task> <@tr> <@td> <@tform action='jsp/admin/plugins/workflow/DoChangeOrderTask.jsp'> <#if (task_list?size > 1)> <@inputGroup> <@comboOrders name='order_task_id' default_value=task.order max=number_task /> <@input type='hidden' name='id_workflow' value=action.workflow.id /> <@input type='hidden' name='id_task' value=task.id/> <@inputGroupItem type='btn'> <@button hideTitle=['all'] type='submit' buttonIcon='check' title='#i18n{workflow.modify_workflow.move}' size='sm' /> <#else> ${task.order} <@td> <#if task.taskType.title!="">${task.taskType.title} <#if task.getTitle(locale)!="">
${task.getTitle(locale)} <@td> <#if task.taskType.configRequired> <#-- btnTitle='#i18n{workflow.manage_workflow.title_modify}' --> <#-- <@offcanvas targetUrl='jsp/admin/plugins/workflow/ModifyTask.jsp?id_task=${task.id}' targetElement='#edit_task_page' redirectForm=false id='task${task.id}-edit' title='#i18n{workflow.modify_task.title}' btnTitle='' btnIcon='edit' position='end' /> --> <@aButton href='jsp/admin/plugins/workflow/ModifyTask.jsp?id_task=${task.id}' hideTitle=['all'] buttonIcon='edit' title='#i18n{workflow.manage_workflow.title_modify}' size='sm' /> <@aButton href='jsp/admin/plugins/workflow/ConfirmCopyTask.jsp?id_task=${task.id}' hideTitle=['all'] color='warning' buttonIcon='copy' title='#i18n{workflow.modify_action.manage_task.title_copy}' size='sm' /> <@aButton href='jsp/admin/plugins/workflow/ConfirmRemoveTask.jsp?id_task=${task.id}' hideTitle=['all'] color='danger' buttonIcon='trash' title='#i18n{workflow.modify_action.manage_task.title_delete}' size='sm' /> <@box> <@boxHeader titleLevel='h3' i18nTitleKey='workflow.modify_action.manage_prerequisite.title'> <@tform action='jsp/admin/plugins/workflow/prerequisite/GetCreatePrerequisite.jsp' type='inline'> <@inputGroup> <@select name='prerequisite_type' items=list_prerequisite_type default_value='' /> <@input type='hidden' name='id_action' value=action.id/> <@inputGroupItem type='btn'> <@button hideTitle=['all'] type='submit' buttonIcon='plus' title='#i18n{workflow.modify_action.manage_prerequisite.createPrerequisite}' size='sm' /> <@boxBody> <@fieldSet> <#if listPrerequisite?? && listPrerequisite?size > 0> <@table striped=true condensed=true responsive=false hover=false> <@tr> <@th>#i18n{workflow.modify_action.manage_prerequisite.columnTitle} <@th>#i18n{workflow.modify_action.manage_task.row_actions} <#list listPrerequisite as prerequisite> <@tr> <@td>#i18n{${prerequisite.title}} <@td> <#if prerequisite.hasConfiguration> <@aButton href='jsp/admin/plugins/workflow/prerequisite/GetModifyPrerequisite.jsp?id_prerequisite=${prerequisite.idPrerequisite}&id_action=${action.id}' title='#i18n{workflow.manage_workflow.title_modify}' hideTitle=['all'] buttonIcon='edit' size='sm' /> <#-- btnTitle='#i18n{workflow.manage_workflow.title_modify}' --> <#-- <@offcanvas targetUrl='jsp/admin/plugins/workflow/prerequisite/GetModifyPrerequisite.jsp?id_prerequisite=${prerequisite.idPrerequisite}&id_action=${action.id}' targetElement='#create_edit_prerequisite_page' redirectForm=false id='prerequisite${prerequisite.idPrerequisite}' title='#i18n{workflow.modify_action.manage_prerequisite.createPrerequisite}' btnTitle='' btnIcon='edit' position='end' /> --> <@aButton href='jsp/admin/plugins/workflow/prerequisite/ConfirmRemovePrerequisite.jsp?id_prerequisite=${prerequisite.idPrerequisite}&id_action=${action.id}' title='#i18n{workflow.modify_action.manage_task.title_delete}' hideTitle=['all'] buttonIcon='trash' color='danger' size='sm' /> <#else>
#i18n{workflow.modify_action.manage_prerequisite.noItem}
<@formHelp>#i18n{workflow.modify_action.manage_prerequisite.help}