Commit f64761c711f988b05c6d59793db1593f25991415

Authored by nbm
1 parent 40dab68e

Allow for roles and groups to be informed when a state is reached.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3878 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/workflow/editState.smarty
@@ -10,8 +10,26 @@ @@ -10,8 +10,26 @@
10 <input type="submit" name="submit" value="Save" /> 10 <input type="submit" name="submit" value="Save" />
11 </form> 11 </form>
12 12
  13 +<h2>Inform</h2>
  14 +
  15 +<p class="helpText">Please select which roles or groups should be
  16 +informed when this state is reached.</p>
  17 +
  18 +<h3>Roles</h3>
  19 +{entity_checkboxes entities=$aRoles name="fRolesIds" multiple="true" selected=$aInformRoles assign=aBoxes}
  20 +{foreach from=$aBoxes item=sBox}
  21 +{$sBox}<br />
  22 +{/foreach}
  23 +
  24 +<h3>Groups</h3>
  25 +{entity_checkboxes entities=$aGroups name="fGroupIds" multiple="true" selected=$aInformGroups assign=aBoxes}
  26 +{foreach from=$aBoxes item=sBox}
  27 +{$sBox}<br />
  28 +{/foreach}
  29 +
  30 +<h2>Transitions</h2>
13 {if $aTransitionsTo} 31 {if $aTransitionsTo}
14 -<h2>Transitions to this state</h2> 32 +<h3>Transitions to this state</h3>
15 33
16 <ul> 34 <ul>
17 {foreach from=$aTransitionsTo item=oTransition} 35 {foreach from=$aTransitionsTo item=oTransition}
@@ -24,7 +42,7 @@ title=&quot;Transition @@ -24,7 +42,7 @@ title=&quot;Transition
24 42
25 {/if} 43 {/if}
26 44
27 -<h2>Transitions</h2> 45 +<h3>Transitions from this state</h3>
28 <form action="{$smarty.server.PHP_SELF}" method="POST"> 46 <form action="{$smarty.server.PHP_SELF}" method="POST">
29 <input type="hidden" name="action" value="saveTransitions" /> 47 <input type="hidden" name="action" value="saveTransitions" />
30 <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> 48 <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" />