Commit d5f500b3c393c76a43e2008be8e773d73dac6850
1 parent
33d5a285
Show/manipulate actions enabled/disabled for this state.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3738 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
16 additions
and
0 deletions
templates/ktcore/workflow/editState.smarty
| @@ -32,3 +32,19 @@ title="Transition | @@ -32,3 +32,19 @@ title="Transition | ||
| 32 | {entity_checkboxes entities=$aTransitions name="fTransitionIds" multiple="true" selected=$aTransitionsSelected} | 32 | {entity_checkboxes entities=$aTransitions name="fTransitionIds" multiple="true" selected=$aTransitionsSelected} |
| 33 | <input type="submit" name="submit" value="Save" /> | 33 | <input type="submit" name="submit" value="Save" /> |
| 34 | </form> | 34 | </form> |
| 35 | + | ||
| 36 | +<h2>Actions allowed</h2> | ||
| 37 | + | ||
| 38 | +<form action="{$smarty.server.PHP_SELF}" method="POST"> | ||
| 39 | +<input type="hidden" name="action" value="setStateActions" /> | ||
| 40 | +<input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> | ||
| 41 | +<input type="hidden" name="fStateId" value="{$oState->getId()}" /> | ||
| 42 | +<ul> | ||
| 43 | +{entity_checkboxes name="fActions" entities=$aActions idmethod="getName" method="getDisplayName" assign="aCheckboxes" selected="$aActionsSelected"} | ||
| 44 | +{foreach from=$aCheckboxes item=sCheckbox} | ||
| 45 | +<li>{$sCheckbox}</li> | ||
| 46 | +{/foreach} | ||
| 47 | +</ul> | ||
| 48 | +<input type="submit" name="submit" value="Set allowed actions" /> | ||
| 49 | +</form> | ||
| 50 | + |