interaction_properties.dtml 3.99 KB
Newer Older
Jean-Paul Smets's avatar
Jean-Paul Smets committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<dtml-var manage_page_header>
<dtml-var manage_tabs>

<form action="setProperties" method="POST">
<table>

<tr>
<th align="left">Id</th>
<td>&dtml-id;</td>
</tr>

<tr>
<th align="left">Title</th>
<td><input type="text" name="title" value="&dtml-title;" size="50" /></td>
</tr>

<tr>
<th align="left" valign="top">Description</th>
<td><textarea name="description" rows="6" cols="35">&dtml-description;</textarea></td>
</tr>

<tr>
23
<th align="left">Portal Type Filter</th>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
24
<td>
25
<select name="portal_type_filter:list" multiple size="5">
26
<option value="None">(None)</option>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
27
<dtml-in "portal_types.objectIds()" sort>
28
 <dtml-if expr="_['sequence-item'] in getChainedPortalTypeList()">
29
  <dtml-if portal_type_filter>
30
   <dtml-let selected="_['sequence-item'] in (portal_type_filter or []) and 'selected' or ' '">
31 32 33 34 35 36
    <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
   </dtml-let>
  <dtml-else>
   <option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
  </dtml-if>
  <dtml-else>
37
   <dtml-if expr="_['sequence-item'] in (portal_type_filter or [])">
38 39
    <option value="&dtml-sequence-item;" selected>(???) &dtml-sequence-item;</option>
   </dtml-if>
40
 </dtml-if>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
41 42 43 44 45
</dtml-in>
</select>
</td>
</tr>

46 47 48 49 50 51 52 53 54 55 56 57 58 59
<tr>
<th align="left">Portal Type Group Filter</th>
<td>
<select name="portal_type_group_filter:list" multiple size="5">
<option value="None">(None)</option>
<dtml-in "portal_types['Base Type'].getAvailableGroupList()" sort>
   <dtml-let selected="_['sequence-item'] in (portal_type_group_filter or []) and 'selected' or ' '">
    <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
   </dtml-let>
</dtml-in>
</select>
</td>
</tr>

Jean-Paul Smets's avatar
Jean-Paul Smets committed
60
<tr>
61 62
<th align="left">Trigger Method Id(s)</th>
<td><input type="text" name="method_id" value="<dtml-var "' '.join(method_id)">" size="50" /></td>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
63 64 65
</tr>

<tr>
66 67
<th align="left">Trigger once per transaction</th>
<td><input type="checkbox" name="once_per_transaction:int" value="1" <dtml-if once_per_transaction>checked</dtml-if>/></td>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
68 69
</tr>

70 71 72 73 74
<tr>
<th align="left">Do not trigger on a temporary document</th>
<td><input type="checkbox" name="temporary_document_disallowed:int" value="1" <dtml-if temporary_document_disallowed>checked</dtml-if>/></td>
</tr>

Jean-Paul Smets's avatar
Jean-Paul Smets committed
75 76 77
<tr>
<th align="left">Script (before)</th>
<td>
78
<select name="script_name:list" multiple size="5">
79
<option value="None">(None)</option>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
80
<dtml-in getAvailableScriptIds sort>
81
 <dtml-let selected="_['sequence-item'] in script_name and 'selected' or ' '">
Jean-Paul Smets's avatar
Jean-Paul Smets committed
82 83 84 85 86 87 88 89 90 91
  <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
 </dtml-let>
</dtml-in>
</select>
</td>
</tr>

<tr>
<th align="left">Script (after)</th>
<td>
92
<select name="after_script_name:list" multiple size="5">
93
<option value="None">(None)</option>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
94
<dtml-in getAvailableScriptIds sort>
95
 <dtml-let selected="_['sequence-item'] in after_script_name and 'selected' or ' '">
Jean-Paul Smets's avatar
Jean-Paul Smets committed
96 97 98 99 100 101 102
  <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
 </dtml-let>
</dtml-in>
</select>
</td>
</tr>

103 104 105 106 107 108 109 110 111 112 113 114 115 116
<tr>
<th align="left">Script (end of transaction)</th>
<td>
<select name="before_commit_script_name:list" multiple size="5">
<option value="None">(None)</option>
<dtml-in getAvailableScriptIds sort>
 <dtml-let selected="_['sequence-item'] in before_commit_script_name and 'selected' or ' '">
  <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
 </dtml-let>
</dtml-in>
</select>
</td>
</tr>

Jean-Paul Smets's avatar
Jean-Paul Smets committed
117 118 119
<tr>
<th align="left">Activities (later)</th>
<td>
120
<select name="activate_script_name:list" multiple size="5">
121
<option value="None">(None)</option>
Jean-Paul Smets's avatar
Jean-Paul Smets committed
122
<dtml-in getAvailableScriptIds sort>
123
 <dtml-let selected="_['sequence-item'] in activate_script_name and 'selected' or ' '">
Jean-Paul Smets's avatar
Jean-Paul Smets committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
  <option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
 </dtml-let>
</dtml-in>
</select>
</td>
</tr>

<tr>
<th align="left" valign="top">Guard</th>
<td>
 <dtml-with getGuard>
  <dtml-var guardForm>
 </dtml-with>
</td>
</tr>

</table>
<input type="submit" name="submit" value="Save changes" />
</form>
<dtml-var manage_page_footer>