Commit 5a72a09f13d62e4035595de90498b743c096d021
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
Showing
1 changed file
with
23 additions
and
2 deletions
templates/ktcore/workflow/editState.smarty
| ... | ... | @@ -15,18 +15,39 @@ |
| 15 | 15 | <p class="helpText">Please select which roles or groups should be |
| 16 | 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 | 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 | 24 | {foreach from=$aBoxes item=sBox} |
| 21 | 25 | {$sBox}<br /> |
| 22 | 26 | {/foreach} |
| 23 | 27 | |
| 24 | 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 | 30 | {foreach from=$aBoxes item=sBox} |
| 27 | 31 | {$sBox}<br /> |
| 28 | 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 | 51 | <h2>Transitions</h2> |
| 31 | 52 | {if $aTransitionsTo} |
| 32 | 53 | <h3>Transitions to this state</h3> | ... | ... |