1 {if !$acl_readable}
3 <h3>{msgPool type=permView}</h3>
5 {else}
6 {if $dialogState eq 'head'}
7 <h3>{t}Assigned ACL for current entry{/t}</h3>
8 {$aclList}
9 {if $acl_createable}
10 <button type='submit' name='new_acl'>{t}New ACL{/t}</button>
11 {/if}
12 {/if}
14 {if $dialogState eq 'create'}
15 <h3>{t}Options{/t}</h3>
16 <table summary='{t}Options{/t}'>
17 <tr>
18 <td>
19 {t}ACL type{/t}
20 </td>
21 <td>
22 {if !$acl_writeable}
23 <select size="1" name="dummy_t" title="{t}Select an ACL type{/t}" disabled>
24 {html_options options=$aclTypes selected=$aclType}
25 <option disabled> </option>
26 </select>
27 {else}
28 <select size="1" name="aclType" title="{t}Select an ACL type{/t}" onChange="document.mainform.submit()">
29 {html_options options=$aclTypes selected=$aclType}
30 <option disabled> </option>
31 </select size=1>
32 {if $javascript eq 'false'}
33 <button type='submit' name='refresh'>{t}Apply{/t}</button>
34 {/if}
35 {/if}
36 </td>
37 </tr>
38 <tr>
39 <td>
40 {t}Additional filter options{/t}
41 </td>
42 <td>
43 {if !$acl_writeable}
44 <input type='text' value='{$aclFilter}' disabled name='dummy_f' style='width:600px;'>
45 {else}
46 <input type='text' value='{$aclFilter}' name='aclFilter' style='width:600px;'>
47 {/if}
48 </td>
49 </tr>
50 </table>
52 <hr>
53 <h3>{t}Members{/t}</h3>
54 <table style="width:100%" summary='{t}Member selection{/t}'>
55 <tr>
56 <td style="width:48%">
57 {t}Use members from{/t}
58 <select name="target" onChange="document.mainform.submit()" size=1>
59 {html_options options=$targets selected=$target}
60 <option disabled> </option>
61 </select>
62 {if $javascript eq 'false'}<button type='submit' name='refresh'>{t}Apply{/t}</button>{/if}
63 </td>
64 <td> </td>
65 <td>{t}Members{/t}</td>
66 <tr>
67 <td style="width:48%">
68 {if !$acl_writeable}
69 <select style="width:100%;height:180px;" disabled name="dummy_s[]" size="20" multiple title="{t}List message possible targets{/t}">
70 {html_options options=$sources}
71 <option disabled> </option>
72 </select>
73 {else}
74 <select style="width:100%;height:180px;" name="source[]" size="20" multiple title="{t}List message possible targets{/t}">
75 {html_options options=$sources}
76 <option disabled> </option>
77 </select>
78 {/if}
79 </td>
80 <td>
82 {if $acl_writeable}
83 <button type='submit' name='add'>></button>
85 <br><br>
86 <button type='submit' name='del'><</button>
88 {/if}
89 </td>
90 <td style="width:48%">
91 {if !$acl_writeable}
92 <select style="width:100%;height:180px;" disabled name="dummy_r[]" size="20" multiple title="{t}List message recipients{/t}">
93 {html_options options=$recipients}
94 <option disabled> </option>
95 </select>
97 {else}
98 <select style="width:100%;height:180px;" name="recipient[]" size="20" multiple title="{t}List message recipients{/t}">
99 {html_options options=$recipients}
100 <option disabled> </option>
101 </select>
102 {/if}
103 </td>
104 </tr>
105 </table>
107 {if $aclType ne 'reset'}
108 {if $aclType ne 'role'}
109 {if $aclType ne 'base'}
110 <hr>
112 <h3>{t}List of available ACL categories{/t}</h3>
113 {$aclList}
114 {/if}
115 {/if}
116 {/if}
118 {if $aclType eq 'base'}
119 <hr>
120 <h3>{t}ACL for this object{/t}</h3>
121 {$aclSelector}
122 {/if}
124 {if $aclType eq 'role'}
125 <hr>
126 <h3>{t}Available roles{/t}</h3>
127 {$roleSelector}
128 {/if}
130 <hr>
131 <div style='text-align:right;margin-top:5px'>
132 {if $acl_writeable}
133 <button type='submit' name='submit_new_acl'>{t}Apply{/t}</button>
135
136 {/if}
137 <button type='submit' name='cancel_new_acl'>{t}Cancel{/t}</button>
139 </div>
140 {/if}
142 {if $dialogState eq 'edit'}
144 <h3>{$headline}</h3>
146 {$aclSelector}
148 <hr>
149 <div style='text-align:right;margin-top:5px'>
150 <button type='submit' name='submit_edit_acl'>{t}Apply{/t}</button>
152
153 <button type='submit' name='cancel_edit_acl'>{t}Cancel{/t}</button>
155 </div>
156 {/if}
157 {/if}