<#include "macro_workflows.html" /> <@row> <@columns sm=12 md=4> <@box style='primary'> <@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 /> <@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 inputSize=80 /> <@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}'> <@select name='id_state_before' items=state_list default_value=action.stateBefore.id?string /> <@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_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>
<@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> <@callOut color='warning'> <@icon style='exclamation-triangle'/>  #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='check-circle' title='#i18n{workflow.modify_action.button_apply}' /> <@button type='submit' name='cancel' buttonIcon='times-circle' title='#i18n{workflow.create_action.button_cancel}' cancel=true /> <@columns sm=12 md=8 lg=8> <@box style='primary'> <@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/> <@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> <@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'> <@aButton href='jsp/admin/plugins/workflow/DoUpdateTaskOrder.jsp?id_action=${action.id}' hideTitle=['all'] buttonIcon='arrows-v' 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> <@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> <@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/DoCopyTask.jsp?id_task=${task.id}' hideTitle=['all'] 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 style='primary'> <@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> <@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' /> <@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}