Commit 33d5a28502ffc30d469ce9a1a2449cdac81b3b21
1 parent
97004d0a
Show/manipulate workflow starting state and actions controlled by the
workflow. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3737 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
24 additions
and
1 deletions
templates/ktcore/workflow/editWorkflow.smarty
| @@ -5,7 +5,16 @@ | @@ -5,7 +5,16 @@ | ||
| 5 | <form action="{$smarty.server.PHP_SELF}" method="POST"> | 5 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | <input type="hidden" name="action" value="saveWorkflow" /> | 6 | <input type="hidden" name="action" value="saveWorkflow" /> |
| 7 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> | 7 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| 8 | -<input type="textbox" name="fName" value="{$oWorkflow->getName()|escape}" /> | 8 | +<table class="prettysw" cellpadding="0" cellspacing="0"> |
| 9 | +<tr> | ||
| 10 | + <th>Name</th> | ||
| 11 | + <td><input type="textbox" name="fName" value="{$oWorkflow->getName()|escape}" /></td> | ||
| 12 | +</tr> | ||
| 13 | +<tr> | ||
| 14 | + <th>Starting state</th> | ||
| 15 | + <td>{ entity_select entities=$aStates name="fStartStateId" none=true selected=$oWorkflow->getStartStateId()}</td> | ||
| 16 | +</tr> | ||
| 17 | +</table> | ||
| 9 | <input type="submit" name="submit" value="Save" /> | 18 | <input type="submit" name="submit" value="Save" /> |
| 10 | </form> | 19 | </form> |
| 11 | 20 | ||
| @@ -64,3 +73,17 @@ title="Transition {$oTransition->getId()}">{$oTransition->getName()|escape}</a>< | @@ -64,3 +73,17 @@ title="Transition {$oTransition->getId()}">{$oTransition->getName()|escape}</a>< | ||
| 64 | </table> | 73 | </table> |
| 65 | <input type="submit" name="submit" value="Create transition" /> | 74 | <input type="submit" name="submit" value="Create transition" /> |
| 66 | </form> | 75 | </form> |
| 76 | + | ||
| 77 | +<h2>Actions controlled</h2> | ||
| 78 | + | ||
| 79 | +<form action="{$smarty.server.PHP_SELF}" method="POST"> | ||
| 80 | +<input type="hidden" name="action" value="setWorkflowActions" /> | ||
| 81 | +<input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> | ||
| 82 | +<ul> | ||
| 83 | +{entity_checkboxes name="fActions" entities=$aActions idmethod="getName" method="getDisplayName" assign="aCheckboxes" selected="$aActionsSelected"} | ||
| 84 | +{foreach from=$aCheckboxes item=sCheckbox} | ||
| 85 | +<li>{$sCheckbox}</li> | ||
| 86 | +{/foreach} | ||
| 87 | +</ul> | ||
| 88 | +<input type="submit" name="submit" value="Set controlled actions" /> | ||
| 89 | +</form> |