{capture assign=sCSS}{literal} td.true { background-color: #aaffaa; text-align: centre } td.false { background-color: #ffaaaa; text-align: centre } .edit { display: none; } .view { display: block; } .tablebutton { margin: 0em; margin-right: 1em; border: 1px solid #cccccc; } .activebutton { background-color: #eeeeff; } .inactivebutton { background-color: #ffeeee; } {/literal}{/capture} {$context->oPage->requireCSSStandalone($sCSS)}

get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}State{/i18n}:
{$oState->getName()|sanitize}

{i18n}As documents move through their lifecycle, they are placed in certain states. For example, an invoice which has been mailed might be in the "Pending" state after the "sent" transition has been performed by a user.{/i18n}

{i18n}Edit state properties{/i18n} {foreach item=oWidget from=$editForm} {$oWidget->render()} {/foreach}
{i18n}Inform Which Users?{/i18n}

{i18n}Please select which roles or groups should be informed when this state is reached.{/i18n}

{if $aRoles}

{i18n}Roles{/i18n}

{entity_checkboxes entities=$aRoles name="fNotification[role]" multiple="true" selected=$aInformed.role assign=aBoxes} {foreach from=$aBoxes item=sBox} {$sBox}
{/foreach} {/if} {if $aGroups}

{i18n}Groups{/i18n}

{entity_checkboxes entities=$aGroups name="fNotification[group]" multiple="true" selected=$aInformed.group assign=aBoxes} {foreach from=$aBoxes item=sBox} {$sBox}
{/foreach} {/if} {if (empty($aGroups) && empty($aRoles))}
{i18n}No groups or roles are defined in the DMS.{/i18n}
{else}
{/if}
{*

{i18n}Assigned Permissions{/i18n}

{i18n}While in this workflow state, additional permissions may be given. This is done either to expose the document to more users or to allow a particular role to be fulfilled before a workflow transition can be accomplished.{/i18n}

*}
{i18n}Transitions{/i18n}

{i18n}Transitions are how documents move from one state to another. Typically, most transitions can only be performed by people with a specific role (e.g. Manager) or part of a specific group (e.g. Marketing Department).{/i18n}

{if $aTransitionsTo}

{i18n}Transitions to this state{/i18n}

{if (!empty($aTransitionsTo))} {/if} {else}
{i18n}No transitions lead to this state.{/i18n}
{/if}

{i18n}Transitions from this state{/i18n}

{if (!empty($aTransitions))} {entity_checkboxes entities=$aTransitions name="fTransitionIds" multiple="true" selected=$aTransitionsSelected separator="
"}
{else}
{i18n}No transitions have been defined for this workflow.{/i18n}
{/if}
{if (!empty($aActions))}
{i18n}Actions allowed{/i18n}
{else}
{i18n}No actions are controlled by this workflow, so all actions are available when documents are in this state.{/i18n}
{/if} {if (!empty($permissions))}
{i18n}Controlled Permissions{/i18n}
{if (!empty($state_permissions))}
{foreach from=$state_permissions item=sPermName} {/foreach} { foreach item=oRole from=$aRoles } { foreach from=$state_permissions item=sPermName } { /foreach } { /foreach } { foreach item=oGroup from=$aGroups } { foreach from=$state_permissions item=sPermName } { /foreach } { /foreach }
{i18n}Role or Group{/i18n}{$permissions.$sPermName->getHumanName()}
{i18n}Role{/i18n}: {$oRole->getName()}getRoleHasPermissionInState($oRole, $sPermName, $oState))}checked="true"{/if}/>
{i18n}Group{/i18n}: {$oGroup->getName()}getGroupHasPermissionInState($oGroup, $sPermName, $oState))}checked="true"{/if}/>
{/if} {else}
{i18n arg_appname="$appname"}No permissions have been created within #appname#.{/i18n}
{/if}