Commit 40dab68e579038350e9a985e0b60dff456fa8f4f
1 parent
7f946a95
Show the guard group and guard role, and allow none for guard
permission. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3877 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
19 additions
and
2 deletions
templates/ktcore/workflow/editTransition.smarty
| ... | ... | @@ -2,6 +2,12 @@ |
| 2 | 2 | |
| 3 | 3 | <h2>Edit transition properties</h2> |
| 4 | 4 | |
| 5 | +<p class="helpText">Select the target state of the transition, and | |
| 6 | +select the permission, group, and/or role necessary to perform the | |
| 7 | +transition. Selecting more than one of permission, group, or role will | |
| 8 | +require that the user wishing to perform the transition fulfil every | |
| 9 | +requirement.</p> | |
| 10 | + | |
| 5 | 11 | <form action="{$smarty.server.PHP_SELF}" method="POST"> |
| 6 | 12 | <input type="hidden" name="action" value="saveTransition" /> |
| 7 | 13 | <input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" /> |
| ... | ... | @@ -14,9 +20,20 @@ |
| 14 | 20 | </tr> |
| 15 | 21 | <tr> |
| 16 | 22 | <th>Guard Permission</th> |
| 17 | - <td>{entity_select entities=$aPermissions selected=$oTransition->getGuardPermissionId() name="fPermissionId"}</td> | |
| 23 | + <td>{entity_select entities=$aPermissions | |
| 24 | +selected=$oTransition->getGuardPermissionId() name="fPermissionId" | |
| 25 | +none=true}</td> | |
| 26 | +</tr> | |
| 27 | +<tr> | |
| 28 | + <th>Guard Group</th> | |
| 29 | + <td>{entity_select entities=$aGroups | |
| 30 | +selected=$oTransition->getGuardGroupId() name="fGroupId" none=true}</td> | |
| 31 | +</tr> | |
| 32 | +<tr> | |
| 33 | + <th>Guard Role</th> | |
| 34 | + <td>{entity_select entities=$aRoles | |
| 35 | +selected=$oTransition->getGuardRoleId() name="fRoleId" none=true}</td> | |
| 18 | 36 | </tr> |
| 19 | - | |
| 20 | 37 | </table> |
| 21 | 38 | <input type="submit" name="submit" value="Save" /> |
| 22 | 39 | </form> | ... | ... |