<#include "macro_workflows.html" /> <@pageContainer> <@pageColumn> <@pageHeader title='#i18n{workflow.modify_workflow.page_title}'> <@tform method='post' type='inline'> <@formGroup labelFor='search_label' labelKey='#i18n{portal.system.manage_plugins.buttonFilter}' hideLabel=['all'] formStyle='inline'> <@inputGroup> <@input type='text' name='search_labels' id='search_label' placeHolder='#i18n{portal.system.manage_plugins.buttonFilter}' params='autocomplete="off" addons' /> <@button color='primary' title='#i18n{portal.system.manage_plugins.buttonFilter}' buttonIcon='filter' hideTitle=['all'] /> <@row> <@messages warnings=warnings /> <@columns sm=12 xl=3> <@box> <@boxBody> <@tform action='jsp/admin/plugins/workflow/DoModifyWorkflow.jsp'> <@input type='hidden' name='id_workflow' value=workflow.id/> <@input type="hidden" name="token" value="${token}" /> <@formGroup rows=2 labelFor='name' labelKey='#i18n{workflow.create_workflow.label_name}' mandatory=true helpKey='#i18n{workflow.create_workflow.label_name_comment}'> <@input type='text' name='name' value=workflow.name maxlength=255 /> <@formGroup rows=2 labelFor='uid' labelKey='#i18n{workflow.create_workflow.label_uid}' mandatory=true helpKey='#i18n{workflow.create_workflow.label_uid_comment}'> <@input type='text' name='uid' value=workflow.uid maxlength=255 readonly=true /> <@formGroup rows=2 labelFor='description' labelKey='#i18n{workflow.create_workflow.label_description}' mandatory=true helpKey='#i18n{workflow.create_workflow.label_description_comment}' > <@input type='textarea' name='description' rows=2 cols=80>${workflow.description} <@formGroup rows=2 labelFor='workgroup' labelKey='#i18n{workflow.create_workflow.label_workgroup}' mandatory=true helpKey='#i18n{workflow.create_workflow.label_workgroup_comment}' > <@select name="workgroup" items=user_workgroup_list default_value=workflow.workgroup /> <@formGroup rows=2> <#-- <@button type='submit' name='cancel' buttonIcon='x' title='#i18n{workflow.create_workflow.button_cancel}' hideTitle=['xl'] cancel=true /> --> <@button type='submit' name='save' buttonIcon='check' title='#i18n{workflow.create_workflow.button_save}' hideTitle=['xl'] /> <@button type='submit' name='apply' buttonIcon='circle-check' title='#i18n{workflow.modify_workflow.button_apply}' hideTitle=['xl'] /> <@columns sm=12 xl=9> <@tabs> <@tabList> <#if pane='pane-states'><#assign active = true /><#else><#assign active = false /> <@tabLink href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?id_workflow=${workflow.id}&pane=pane-states' active=active title='#i18n{workflow.modify_workflow.manage_state.title}' /> <#if pane='pane-actions'><#assign active = true /><#else><#assign active = false /> <@tabLink href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?id_workflow=${workflow.id}&pane=pane-actions' active=active title='#i18n{workflow.modify_workflow.manage_action.title}'/> <#if pane='pane-graph'><#assign active = true /><#else><#assign active = false /> <@tabLink href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?id_workflow=${workflow.id}&pane=pane-graph' active=active title='#i18n{workflow.graph_workflow.title}' /> <#switch pane> <#case 'pane-states'> <@tabLink tabClass='ms-auto'> <@aButton href='jsp/admin/plugins/workflow/CreateState.jsp?id_workflow=${workflow.id}#list_state' style='' color='' class='nav-link' buttonIcon='plus' title='#i18n{workflow.modify_workflow.manage_state.button_insert_state}' /> <#break> <#case 'pane-actions'> <@tabLink tabClass='ms-auto'> <@aButton href='jsp/admin/plugins/workflow/CreateAction.jsp?id_workflow=${workflow.id}#list_action' style='' color='' class='nav-link' buttonIcon='plus' title='#i18n{workflow.modify_workflow.manage_action.button_insert_action}' /> <#break> <#case 'pane-graph'> <@tabLink tabClass='ms-auto'> <#if showTasks?? > <@aButton href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?id_workflow=${workflow.id}&pane=pane-graph' style='' color='' class='nav-link' buttonIcon='mist-off' title='#i18n{workflow.manage_workflow.title_graph_hide_tasks}' /> <#else> <@aButton href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?show_tasks&id_workflow=${workflow.id}&pane=pane-graph' style='' color='' class='nav-link' buttonIcon='mist' title='#i18n{workflow.manage_workflow.title_graph_tasks}' /> <#break> <@tabContent> <#if pane='pane-states'><#assign active = true /><#else><#assign active = false /> <@tabPanel id='pane-states' active=pane="pane-states"> <@manageFeature class='mb-3'> <#-- #i18n{workflow.modify_workflow.manage_state.row_name} / #i18n{workflow.modify_workflow.order} / #i18n{workflow.modify_workflow.manage_state.row_actions} --> <#if state_list?? && state_list?size gt 0> <#list state_list as state> <@manageFeatureItem class='item-labels'> <@manageFeatureItemColumn class='searchable'> ${state.name} <#if state.allActions?? && state.allActions?size gt 0 > <@link href='jsp/admin/plugins/workflow/GetModifyReflexiveAction.jsp?id_state=${state.id}' title='#i18n{workflow.modify_reflexive_action.title}'><@icon name='fa-bolt' /> <@manageFeatureItemColumn auto=true align='end'> <@tform type='inline' action='jsp/admin/plugins/workflow/DoChangeOrderState.jsp'> <@input type='hidden' name='id_workflow' value=workflow.id /> <@input type='hidden' name='id_state' value=state.id /> <@inputGroup> <@comboOrders name='order_id' default_value=state.order max=number_state /> <@button type='submit' buttonIcon='check' color='default' title='#i18n{workflow.modify_workflow.move}' hideTitle=['all'] /> <@manageFeatureItemColumn align='end'> <@aButton href='jsp/admin/plugins/workflow/ModifyState.jsp?id_state=${state.id}' hideTitle=['all'] buttonIcon='pencil' title='#i18n{workflow.modify_workflow.manage_state.title_modify}' /> <@aButton href='jsp/admin/plugins/workflow/GetModifyReflexiveAction.jsp?id_state=${state.id}' hideTitle=['all'] buttonIcon='list-check' title='#i18n{workflow.modify_reflexive_action.title}' /> <@aButton href='jsp/admin/plugins/workflow/ConfirmCopyState.jsp?id_state=${state.id}' hideTitle=['all'] buttonIcon='copy' color='warning' title='#i18n{workflow.modify_workflow.manage_state.title_copy_state}'/> <@aButton href='jsp/admin/plugins/workflow/ConfirmRemoveState.jsp?id_state=${state.id}' hideTitle=['all'] buttonIcon='trash' color='danger' title='#i18n{workflow.modify_workflow.manage_state.title_delete}'/> <#else> <@empty /> <@paginationAdmin paginator=paginator_state combo=1 nb_items_per_page=nb_items_per_page_state/> <#if pane='pane-actions'><#assign active = true /><#else><#assign active = false /> <@tabPanel id='pane-actions' active=pane="pane-actions"> <@manageFeature class='mb-3'> <#if action_list?? && action_list?size gt 0> <#list action_list as action> <@manageFeatureItem class='item-labels'> <@manageFeatureItemColumn auto=true class='searchable d-flex align-items-center'> ${action.name} <#if action.isAutomaticState( ) ><@icon style='bolt'/> <@p class='mb-0 ms-2'> <#list action.listIdStateBefore as idStateBefore>${state_before_map[idStateBefore?c]!} <@icon style='arrow-right' /> ${action.stateAfter.name} <@manageFeatureItemColumn> <@tform type='inline' action='jsp/admin/plugins/workflow/DoChangeOrderAction.jsp'> <@input type='hidden' name='id_workflow' value=workflow.id /> <@input type='hidden' name='id_action' value=action.id /> <@inputGroup> <@comboOrders name='order_action_id' default_value=action.order max=number_action /> <@button type='submit' buttonIcon='check' color='default' title='#i18n{workflow.modify_workflow.move}' hideTitle=['all'] /> <@manageFeatureItemColumn align='end'> <@aButton href='jsp/admin/plugins/workflow/ModifyAction.jsp?id_action=${action.id}' hideTitle=['all'] buttonIcon='pencil' title='#i18n{workflow.modify_workflow.manage_action.title_modify}' /> <@aButton href='jsp/admin/plugins/workflow/ConfirmCopyAction.jsp?id_action=${action.id}' hideTitle=['all'] buttonIcon='copy' color='warning' title='#i18n{workflow.modify_workflow.manage_state.title_copy_action}' /> <@aButton href='jsp/admin/plugins/workflow/ConfirmRemoveAction.jsp?id_action=${action.id}' hideTitle=['all'] buttonIcon='trash' color='danger' title='#i18n{workflow.modify_workflow.manage_action.title_delete}' /> <#else> <@empty /> <@paginationAdmin paginator=paginator_action combo=1 nb_items_per_page=nb_items_per_page_action/> <#if pane='pane-graph'><#assign active = true /><#else><#assign active = false /> <@tabPanel id='pane-graph' active=pane='pane-graph' > <@mermaidGraph download=false /> <@importMermaidJs /> <@initMermaidJs />