Commit 5a72a09f13d62e4035595de90498b743c096d021

Authored by nbm
1 parent 1c3245dd

Build the form that allows for groups/users/roles to be selected to be

informed when the state is reached.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3886 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/workflow/editState.smarty
@@ -15,18 +15,39 @@ @@ -15,18 +15,39 @@
15 <p class="helpText">Please select which roles or groups should be 15 <p class="helpText">Please select which roles or groups should be
16 informed when this state is reached.</p> 16 informed when this state is reached.</p>
17 17
  18 +<form action="{$smarty.server.PHP_SELF}" method="POST">
  19 +<input type="hidden" name="action" value="saveInform" />
  20 +<input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" />
  21 +<input type="hidden" name="fStateId" value="{$oState->getId()}" />
18 <h3>Roles</h3> 22 <h3>Roles</h3>
19 -{entity_checkboxes entities=$aRoles name="fRolesIds" multiple="true" selected=$aInformRoles assign=aBoxes} 23 +{entity_checkboxes entities=$aRoles name="fRoleIds" multiple="true" selected=$aInformed.role assign=aBoxes}
20 {foreach from=$aBoxes item=sBox} 24 {foreach from=$aBoxes item=sBox}
21 {$sBox}<br /> 25 {$sBox}<br />
22 {/foreach} 26 {/foreach}
23 27
24 <h3>Groups</h3> 28 <h3>Groups</h3>
25 -{entity_checkboxes entities=$aGroups name="fGroupIds" multiple="true" selected=$aInformGroups assign=aBoxes} 29 +{entity_checkboxes entities=$aGroups name="fGroupIds" multiple="true" selected=$aInformed.group assign=aBoxes}
26 {foreach from=$aBoxes item=sBox} 30 {foreach from=$aBoxes item=sBox}
27 {$sBox}<br /> 31 {$sBox}<br />
28 {/foreach} 32 {/foreach}
29 33
  34 +{*
  35 +<h3>Users</h3>
  36 +{entity_checkboxes entities=$aUsers name="fUserIds" multiple="true" selected=$aInformed.user assign=aBoxes}
  37 +{foreach from=$aBoxes item=sBox}
  38 +{$sBox}<br />
  39 +{/foreach}
  40 +<input type="submit" name="submit" value="Save" />
  41 +</form>
  42 +*}
  43 +
  44 +<h2>Permissions</h2>
  45 +
  46 +<p class="helpText">While in this workflow state, additional permissions
  47 +may be given. This is done either to expose the document to more users
  48 +or to allow a particular role to be fulfilled before a workflow
  49 +transition can be accomplished.</p>
  50 +
30 <h2>Transitions</h2> 51 <h2>Transitions</h2>
31 {if $aTransitionsTo} 52 {if $aTransitionsTo}
32 <h3>Transitions to this state</h3> 53 <h3>Transitions to this state</h3>