#include "macro_workflows.html" />
<@row>
<@columns sm=12 md=12 lg=12>
<@box style='primary'>
<@boxHeader titleLevel='h3' i18nTitleKey='workflow.manage_workflow.title'>
<#if permission_manage_advanced_parameters>
<@aButton href='jsp/admin/plugins/workflow/ManageAdvancedParameters.jsp' size='xs' buttonIcon='cog' title='#i18n{workflow.manage_workflow.button_manage_advanced_parameters}' />
#if>
<@aButton href='jsp/admin/plugins/workflow/CreateWorkflow.jsp' size='xs' buttonIcon='plus' title='#i18n{workflow.manage_workflow.button_create}' />
<@tform type='inline' align='left' class='spaced'>
<@select name="is_enabled" items=active_list default_value="active_selected" size='xs' />
<@inputGroup>
<@select name="workgroup" items=user_workgroup_list default_value=user_workgroup_selected size='xs' />
<@inputGroupItem>
<@button size='sm' type='submit' name='filter' buttonIcon='filter' title='#i18n{workflow.manage_workflow.button_search}' color='default' />
@inputGroupItem>
@inputGroup>
@tform>
@boxHeader>
<@boxBody>
<@paginationAdmin paginator=paginator combo=1/>
<@table responsive=false>
<@tr>
<@th>#i18n{workflow.manage_workflow.row_name}@th>
<@th>#i18n{workflow.manage_workflow.row_actions}@th>
@tr>
<#list workflow_list as workflow>
<@tr>
<@td>
<#if workflow.enabled>
<@tag color='success' title='#i18n{portal.util.labelEnabled}' tagIcon='check-circle' />
<#else>
<@tag color='important' title='#i18n{portal.util.labelDisabled}' tagIcon='times-circle' />
#if>
${workflow.name}
@td>
<@td>
<@aButton href='jsp/admin/plugins/workflow/ModifyWorkflow.jsp?id_workflow=${workflow.id}' size='xs' buttonIcon='pencil' title='#i18n{workflow.manage_workflow.title_modify}' />
<@aButton href='jsp/admin/plugins/workflow/DoCopyWorkflow.jsp?id_workflow=${workflow.id}' size='xs' buttonIcon='plus-circle' title='#i18n{workflow.manage_workflow.title_copy}' />
<@aButton href='jsp/admin/plugins/workflow/ConfirmRemoveWorkflow.jsp?id_workflow=${workflow.id}' size='xs' buttonIcon='trash' color='danger' title='#i18n{workflow.manage_workflow.title_delete}' />
<#if workflow.enabled>
<@aButton href='jsp/admin/plugins/workflow/DoDisableWorkflow.jsp?id_workflow=${workflow.id}' size='xs' buttonIcon='stop' color='danger' title='#i18n{workflow.manage_workflow.title_disable}' />
<#else>
<@aButton href='jsp/admin/plugins/workflow/DoEnableWorkflow.jsp?id_workflow=${workflow.id}' size='xs' buttonIcon='play' color='success' title='#i18n{workflow.manage_workflow.title_enable}' />
#if>
@td>
@tr>
#list>
@table>
<@paginationAdmin paginator=paginator combo=1/>
@boxBody>
@box>
@columns>
@row>