editWorkflow.smarty 2.31 KB
{$context->oPage->requireCSSResource('resources/css/workflow-admin.css')}

<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Workflow Overview{/i18n}:<br />{$oWorkflow->getName()}</h2>


<form action="{$smarty.server.PHP_SELF}" method="POST">
<fieldset>
<legend>{i18n}Edit workflow properties{/i18n}</legend>
<input type="hidden" name="action" value="saveWorkflow" />
<input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" />

{foreach item=oWidget from=$edit_fields}
  {$oWidget->render()}
{/foreach}

<div class="form_actions">
<input type="submit" name="submit" value="{i18n}Update workflow properties{/i18n}" />
</div>
</fieldset>
</form>

<p class="descriptiveText">{i18n}This page allows you to get a quick overview of the
workflow.  To modify items, either select them from the overview below,
or use the "Workflow" menu on the left to create new ones.{/i18n}</p>

{if (empty($workflow_info.states))}
<div class="ktInfoMessage"><span>{i18n}This workflow does not define any states.{/i18n}</span></div>
{else}
<ul id="workflow-states-list">
{foreach item=oState from=$workflow_info.states}
    <li><span class="workflow_element">{i18n}State{/i18n}:</span> <a href="{addQS}action=editState&fStateId={$oState->getId()}&fWorkflowId={$oWorkflow->getId()}{/addQS}" class="workflow_label">{$oState->getName()}</a>
        {if ($workflow_info.can_delete)} | <span class="ktActionLink ktDelete"><a href="{addQS}action=deleteState&fStateId={$oState->getId()}&fWorkflowId={$oWorkflow->getId()}{/addQS}" >{i18n}Delete{/i18n}</a></span>{/if}
    <ul>
        <li>{i18n}Notified groups & roles{/i18n}:
        {$context->getNotificationStringForState($oState)}
        </li>
        
        <li>{i18n}Controlled Actions available{/i18n}:
        {$context->getActionStringForState($oState)}
        </li>
        
        <li>{i18n}Permissions overridden{/i18n}: {$context->getPermissionStringForState($oState)}</li>
      
        <li>{i18n}Transitions available{/i18n}:
        {$context->getTransitionFromStringForState($oState)}
        </li>
      
        <li>{i18n}Transitions to this state{/i18n}:
        {$context->getTransitionToStringForState($oState)}
        </li>
    </ul>
    </li>
{/foreach}
</ul>
{/if}