{i18n}New State{/i18n}

{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}Create a new state{/i18n}

{i18n}Please note that additional configuration is possible on states beyond what is specified here (e.g. which users to notify about the document, etc). Please edit the state to access and modify these other properties.{/i18n}

{* Standard Form *} {foreach item=oWidget from=$add_fields} {$oWidget->render()} {/foreach} {*

{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="fRoleIds" multiple="true" selected=$aInformed.role assign=aBoxes} {foreach from=$aBoxes item=sBox} {$sBox} {/foreach} {/if}

{i18n}Groups{/i18n}

{entity_checkboxes entities=$aGroups name="fGroupIds" multiple="true" selected=$aInformed.group assign=aBoxes} {foreach from=$aBoxes item=sBox} {$sBox} {/foreach}
*}

{i18n}Workflows can control which actions (edit metadata, download, etc.) are available on a given document. Please specify which of the actions controlled by this workflow are available when the document is in this state.{/i18n}

{if (!empty($aActions))} {entity_checkboxes name="fActions" entities=$aActions idmethod="getName" method="getDisplayName" assign="aCheckboxes" selected="$aActionsSelected"} {foreach from=$aCheckboxes item=sCheckbox} {$sCheckbox} {/foreach} {else}
{i18n}No actions are controlled by this workflow.{/i18n}
{/if}