editTransition.smarty
1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<h1>Transition: {$oTransition->getName()|escape}</h1>
<h2>Edit transition properties</h2>
<p class="helpText">Select the target state of the transition, and
select the permission, group, and/or role necessary to perform the
transition. Selecting more than one of permission, group, or role will
require that the user wishing to perform the transition fulfil every
requirement.</p>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="action" value="saveTransition" />
<input type="hidden" name="fWorkflowId" value="{$oWorkflow->getId()}" />
<input type="hidden" name="fTransitionId" value="{$oTransition->getId()}" />
<table class="prettysw" cellpadding="0" cellspacing="0">
<tr><th>Name</th><td><input type="textbox" name="fName" value="{$oTransition->getName()|escape}" /></td></tr>
<tr>
<th>Target State</th>
<td>{entity_select entities=$aStates selected=$oTransition->getTargetStateId() name="fTargetStateId"}</td>
</tr>
<tr>
<th>Guard Permission</th>
<td>{entity_select entities=$aPermissions
selected=$oTransition->getGuardPermissionId() name="fPermissionId"
none=true}</td>
</tr>
<tr>
<th>Guard Group</th>
<td>{entity_select entities=$aGroups
selected=$oTransition->getGuardGroupId() name="fGroupId" none=true}</td>
</tr>
{if $aRoles}
<tr>
<th>Guard Role</th>
<td>{entity_select entities=$aRoles
selected=$oTransition->getGuardRoleId() name="fRoleId" none=true}</td>
</tr>
{/if}
{if $aConditions}
<tr>
<th>Guard Condition</th>
<td>{entity_select entities=$aConditions
selected=$oTransition->getGuardConditionId() name="fConditionId" none=true}</td>
</tr>
{/if}
</table>
<input type="submit" name="submit" value="Save" />
</form>