Code

Prepared acl template to use acls .
[gosa.git] / gosa-core / ihtml / themes / default / acl.tpl
1 {if $dialogState eq 'head'}
2 <h1>{t}Assigned ACL for current entry{/t}</h1>
3 {$aclList}
6 {if $acl_createable}
7 <input type="submit" name="new_acl" value="{t}New ACL{/t}" >
8 {/if}
9 {/if}
11 {if $dialogState eq 'create'}
12 <h1>{t}ACL type{/t}
13         {if !$acl_writeable}
14                 <select size="1" name="dummy_t" title="{t}Select an acl type{/t}" disabled>
15                         {html_options options=$aclTypes selected=$aclType}
16                         <option disabled>&nbsp;</option>
17                 </select>&nbsp;
18         {else} 
19                 <select size="1" name="aclType" title="{t}Select an acl type{/t}" onChange="document.mainform.submit()">
20                         {html_options options=$aclTypes selected=$aclType}
21                         <option disabled>&nbsp;</option>
22                 </select>&nbsp;
23                 {if $javascript eq 'false'}
24                         <input type="submit" value="{t}Apply{/t}" name="refresh">
25                 {/if}
26         {/if}
27 </h1>
29 <p class="seperator">&nbsp;</p>
30 <div style='padding:3px;'>
31 {t}Additional filter options{/t}&nbsp; 
32         {if !$acl_writeable}
33         <input type='text' value='{$aclFilter}' disabled name='dummy_f' style='width:600px;'>
34         {else}
35         <input type='text' value='{$aclFilter}' name='aclFilter' style='width:600px;'>
36         {/if}
37 </div>
39 <table style="width:100%">
40  <tr>
41   <td style="width:48%; vertical-align:top;">
42    {t}Use members from{/t}
43    <select name="target" onChange="document.mainform.submit()">
44         {html_options options=$targets selected=$target}
45         <option disabled>&nbsp;</option>
46    </select>
47    {if $javascript eq 'false'}<input type="submit" value="{t}Apply{/t}" name="refresh">{/if}<br><br>
48   </td>
49   <td>
50   </td>
51   <td>
52   </td>
53  </tr>
54  <tr>
55   <td style="width:48%">
56    {t}Available members{/t}<br>
57         {if !$acl_writeable}
58    <select style="width:100%;height:180px;" disabled name="dummy_s[]" size="20" multiple title="{t}List message possible targets{/t}">
59             {html_options options=$sources}
60             <option disabled>&nbsp;</option>
61    </select>
62         {else}
63    <select style="width:100%;height:180px;" name="source[]" size="20" multiple title="{t}List message possible targets{/t}">
64             {html_options options=$sources}
65             <option disabled>&nbsp;</option>
66    </select>
67         {/if}
68   </td>
69   <td style="vertical-align:center; text-align:center">
70         {if $acl_writeable}
71    <input type="submit" value="&gt;" name="add">
72    <br><br>
73    <input type="submit" value="&lt;" name="del">
74         {/if}
75   </td>
76   <td style="width:48%; vertical-align:top;">
77    {t}Members{/t}<br>
78         {if !$acl_writeable}
79    <select style="width:100%;height:180px;" disabled name="dummy_r[]" size="20" multiple title="{t}List message recipients{/t}">
80             {html_options options=$recipients}
81             <option disabled>&nbsp;</option>
82    </select>
84         {else}
85    <select style="width:100%;height:180px;" name="recipient[]" size="20" multiple title="{t}List message recipients{/t}">
86             {html_options options=$recipients}
87             <option disabled>&nbsp;</option>
88    </select>
89         {/if}
90   </td>
91  </tr>
92 </table>
94 {if $aclType ne 'reset'}
95 {if $aclType ne 'role'}
96 {if $aclType ne 'base'}
97 <p class="seperator">&nbsp;</p>
99 <h1>{t}List of available ACL categories{/t}</h1>
100 {$aclList}
101 {/if}
102 {/if}
103 {/if}
105 {if $aclType eq 'base'}
106 <p class="seperator">&nbsp;</p>
107 <h1>{t}ACL for this object{/t}</h1>
108 {$aclSelector}
109 {/if}
111 {if $aclType eq 'role'}
112 <p class="seperator">&nbsp;</p>
113 <h1>{t}Available roles{/t}</h1>
114 {$roleSelector}
115 {/if}
117 <p class="seperator">&nbsp;</p>
118 <div style='text-align:right;margin-top:5px'>
119         {if $acl_writeable}
120         <input type="submit" name="submit_new_acl" value="{t}Apply{/t}">
121         &nbsp;
122         {/if}
123         <input type="submit" name="cancel_new_acl" value="{t}Cancel{/t}">
124 </div>
125 {/if}
127 {if $dialogState eq 'edit'}
129 <h1>{$headline}</h1>
131 {$aclSelector}
133 <p class="seperator">&nbsp;</p>
134 <div style='text-align:right;margin-top:5px'>
135         <input type="submit" name="submit_edit_acl" value="{t}Apply{/t}">
136         &nbsp;
137         <input type="submit" name="cancel_edit_acl" value="{t}Cancel{/t}">
138 </div>
139 {/if}