Code

We are now able to deactivate certain options
[gosa.git] / gosa-plugins / groupware / personal / groupware / generic.tpl
1 <table summary="{t}Mail settings{/t}" style='width:100%;'>
2     <tr>
3         <td style='width:50%; '>  
4             <h3>{t}Generic{/t}</h3>
5             <table summary="{t}Mail address configuration{/t}">
6                 <tr>
7                     <td><label for="mailAddress">{t}Primary address{/t}</label>{$must}</td>
8                     <td>
9                         {render acl=$mailAddressACL}
10                             <input type='text' id="mailAddress" name="mailAddress" value="{$mailAddress}">
11                         {/render}
12                     </td>
13                 </tr>
14                 <tr>
15                     <td><label for="mailLocation">{t}Account location{/t}</label></td>
16                     <td>
17                         {render acl=$mailLocationACL}
18                             <select size="1" id="mailLocation" name="mailLocation" 
19                                 title="{t}Specify the location for the mail account{/t}">
20                                 {html_options values=$mailLocations output=$mailLocations selected=$mailLocation}
21                                 <option disabled>&nbsp;</option>
22                             </select>
23                         {/render}
24                     </td>
25                 </tr>
26                 {if $quotaUsage_isActive}
27                 <tr>
28                     <td><label for='quotaUsage_dummy'>{t}Quota usage{/t}</label></td>
29                     <td>
30                         {render acl=$quotaUsageACL}
31                             <input type='text' id='quotaUsage_dummy' name='quotaUsage_dummy' disabled value="{$quotaUsage}">
32                         {/render}
33                     </td>
34                 </tr>
35                 {/if}
36                 {if $quotaSize_isActive}
37                 <tr>
38                     <td><label for="quotaSize">{t}Quota size{/t}</label></td>
39                     <td>
40                         {render acl=$quotaSizeACL}
41                             <input type='text' id="quotaSize" name="quotaSize" value="{$quotaSize}"> MB
42                         {/render}
43                     </td>
44                 </tr>
45                 {/if}
46                 {if $mailFilter_isActive}
47                 <tr>
48                     <td><label for="mailFilter">{t}Mail filter{/t}</label></td>
49                     <td>
50                         {render acl=$mailFilterACL}
51                             <button name='configureFilter'>{t}Configure filter{/t}</button>
52                         {/render}
53                     </td>
54                 </tr>
55                 {/if}
56             </table>
58         </td>
59         
60         {if !$alternateAddresses_isActive}
61             <td></td>
62         {else}
63             <td class='left-border'>&nbsp;</td>
64             <td>
65                 <h3><label for="alternateAddressList">{t}Alternative addresses{/t}</label></h3>
66                 {render acl=$alternateAddressesACL}
67                     <select id="alternateAddressList" style="width:100%;height:100px;" name="alternateAddressList[]" size="15" multiple
68                         title="{t}List of alternative mail addresses{/t}">
69                         {html_options values=$alternateAddresses output=$alternateAddresses}
70                         <option disabled>&nbsp;</option>
71                     </select>
72                     <br>
73                 {/render}
74                 {render acl=$alternateAddressesACL}
75                     <input type='text' name="alternateAddressInput">
76                 {/render}
77                 {render acl=$alternateAddressesACL}
78                     <button type='submit' name='addAlternateAddress'>{msgPool type=addButton}</button>
79                 {/render}
80                 {render acl=$alternateAddressesACL}
81                     <button type='submit' name='deleteAlternateAddress'>{msgPool type=delButton}</button>
82                 {/render}
83             </td>
84         {/if}
85     </tr>
86 </table>
88 {if $vacationMessage_isActive || $forwardingAddresses_isActive}
89 <hr> 
90     <table>
91         <tr>
92             <td style='width:50%'>
94                 {if $vacationMessage_isActive}
95                 <h3><label for="vacationMessage">{t}Vacation message{/t}</label></h3>
97                 <table summary="{t}Spam filter configuration{/t}">
98                     <tr>
99                         <td style='width:20px;'>
100                             {render acl=$vacationEnabledACL}
101                             <input type=checkbox name="vacationEnabled" value="1" 
102                                 {if $vacationEnabled} checked {/if}
103                                 id="vacationEnabled" 
104                                 title="{t}Select to automatically response with the vacation message defined below{/t}" 
105                                 class="center" 
106                                 onclick="changeState('vacationStart'); changeState('vacationStop'); changeState('vacationMessage');">
107                             {/render}
108                         </td>
109                         <td colspan="4">
110                             {t}Activate vacation message{/t}
111                         </td>
112                     </tr>
113                     <tr>
114                         <td>&nbsp;</td>
115                         <td style='width:30px;'>{t}from{/t}</td>
116                         <td>
117                             {render acl=$vacationStartACL}
118                                 <input type="text" id="vacationStart" name="vacationStart" class="date" 
119                                     style='width:100px' value="{$vacationStart}"
120                                     {if !$vacationEnabled} disabled {/if}
121                                     >
122                             {/render}
123                             {if $vacationStartACL|regex_replace:"/[cdmr]/":"" == "w"}
124                                 <script type="text/javascript">
125                                     {literal}
126                                         var datepicker  = new DatePicker({ 
127                                             relative : 'vacationStart', 
128                                             language : '{/literal}{$lang}{literal}', 
129                                             keepFieldEmpty : true, 
130                                             enableCloseEffect : false, 
131                                             enableShowEffect : false });
132                                     {/literal}
133                                 </script>
134                             {/if}
135                         </td>
136                         <td style='width:30px;'>{t}till{/t}</td>
137                         <td>
138                             {render acl=$vacationStartACL}
139                                 <input type="text" id="vacationStop" name="vacationStop" class="date" 
140                                     style='width:100px' value="{$vacationStop}"i
141                                     {if !$vacationEnabled} disabled {/if}
142                                     >
143                             {/render}
144                             {if $vacationStopACL|regex_replace:"/[cdmr]/":"" == "w"}
145                                 <script type="text/javascript">
146                                     {literal}
147                                         var datepicker2  = new DatePicker({ 
148                                             relative : 'vacationStop', 
149                                             language : '{/literal}{$lang}{literal}', 
150                                             keepFieldEmpty : true, 
151                                             enableCloseEffect : false,  
152                                             enableShowEffect : false });
153                                     {/literal}
154                                 </script>
155                             {/if}
156                         </td>
157                     </tr>
158                     <tr>
159                         <td colspan=5>
160                             {render acl=$vacationMessageACL}
161                             <textarea id="vacationMessage" style="width:99%; height:100px;" 
162                                 {if !$vacationEnabled} disabled {/if}
163                                 name="vacationMessage" rows="4" cols="512">{$vacationMessage}</textarea>
164                             {/render}
165                             <br>
166                             {if $displayTemplateSelector eq "true"}
167                                 {render acl=$vacationMessageACL}
168                                     <select id='vacation_template' name="vacation_template" size=1>
169                                         {html_options options=$vacationTemplates selected=$vacationTemplate}
170                                         <option disabled>&nbsp;</option>
171                                     </select>
172                                 {/render}
173                                 {render acl=$vacationMessageACL}
174                                     <button type='submit' name='import_vacation' id="import_vacation">{t}Import{/t}</button>
175                                 {/render}
176                             {/if}
177                         </td>
178                     </tr>
179                 </table>
181                 {/if}
183             </td>
184             {if !$forwardingAddresses_isActive}
185                 <td></td>
186             {else}
187                 <td class='left-border'>&nbsp;</td>
188                 <td>
189                     <h3><label for="forwardingAddressList">{t}Forward messages to{/t}</label></h3>
190                     {render acl=$forwardingAddressesACL}
191                         <select id="forwardingAddressList" style="width:100%; height:100px;" 
192                             name="forwardingAddressList[]" size=15 multiple>
193                             {html_options values=$forwardingAddresses output=$forwardingAddresses}
194                             <option disabled>&nbsp;</option>
195                         </select>
196                     {/render}
197                     <br>
198                     {render acl=$forwardingAddressesACL}
199                         <input type='text' id='forwardingAddressInput' name="forwardingAddressInput">
200                     {/render}
201                     {render acl=$forwardingAddressesACL}
202                         <button type='submit' name='addForwardingAddress' 
203                             id="addForwardingAddress">{msgPool type=addButton}</button>&nbsp;
204                     {/render}
205                     {render acl=$forwardingAddressesACL}
206                         <button type='submit' name='addLocalForwardingAddress' 
207                             id="addLocalForwardingAddress">{t}Add local{/t}</button>&nbsp;
208                     {/render}
209                     {render acl=$forwardingAddressesACL}
210                         <button type='submit' name='deleteForwardingAddress' 
211                             id="deleteForwardingAddress">{msgPool type=delButton}</button>
212                     {/render}
213                 </td>
214             {/if}
215         </tr>
216     </table>
217 {/if}
218     
219 {* Do not render the Flag list while there are none! *}
220 {if $mailBoxWarnLimit_isActive || $mailBoxSendSizelimit_isActive ||
221     $mailBoxHardSizelimit_isActive || $mailBoxAutomaticRemoval_isActive ||
222     $localDeliveryOnly_isActive || $dropOwnMails_isActive}
224 <hr>
225 <h3>{t}Mailbox options{/t}</h3>
226 <table summary="{t}Flags{/t}">
227     {if $mailBoxWarnLimit_isActive}
228     <tr>
229         <td>
230             {render acl=$mailBoxWarnLimitACL}
231                 <input id='mailBoxWarnLimitEnabled' value='1' name="mailBoxWarnLimitEnabled" value="1" 
232                     {if $mailBoxWarnLimitEnabled} checked {/if} class="center" type='checkbox'>
233             {/render}
234             <label for="mailBoxWarnLimitValue">{t}Warn user about a full mailbox when it reaches{/t}</label>
235             {render acl=$mailBoxWarnLimitACL}
236                 <input id="mailBoxWarnLimitValue" name="mailBoxWarnLimitValue" 
237                     size="6" align="middle" type='text' value="{$mailBoxWarnLimitValue}"  class="center"> {t}MB{/t}
238             {/render}
239         </td>
240     </tr>
241     {/if}
242     {if $mailBoxSendSizelimit_isActive}
243     <tr>
244         <td>
245             {render acl=$mailBoxSendSizelimitACL}
246                 <input id='mailBoxSendSizelimitEnabled' value='1' name="mailBoxSendSizelimitEnabled" value="1" 
247                     {if $mailBoxSendSizelimitEnabled} checked {/if} class="center" type='checkbox'>
248             {/render}
249             <label for="mailBoxSendSizelimitValue">{t}Refuse incoming mails when mailbox size reaches{/t}</label>
250             {render acl=$mailBoxSendSizelimitACL}
251                 <input id="mailBoxSendSizelimitValue" name="mailBoxSendSizelimitValue" 
252                     size="6" align="middle" type='text' value="{$mailBoxSendSizelimitValue}"  class="center"> {t}MB{/t}
253             {/render}
254         </td>
255     </tr>
256     {/if}
257     {if $mailBoxHardSizelimit_isActive}
258     <tr>
259         <td>
260             {render acl=$mailBoxHardSizelimitACL}
261                 <input id='mailBoxHardSizelimitEnabled' value='1' name="mailBoxHardSizelimitEnabled" value="1" 
262                     {if $mailBoxHardSizelimitEnabled} checked {/if} class="center" type='checkbox'>
263             {/render}
264             <label for="mailBoxHardSizelimitValue">{t}Refuse to send and receive mails when mailbox size reaches{/t}</label>
265             {render acl=$mailBoxHardSizelimitACL}
266                 <input id="mailBoxHardSizelimitValue" name="mailBoxHardSizelimitValue" 
267                     size="6" align="middle" type='text' value="{$mailBoxHardSizelimitValue}"  class="center"> {t}MB{/t}
268             {/render}
269         </td>
270     </tr>
271     {/if}
272     {if $mailBoxAutomaticRemoval_isActive}
273     <tr>
274         <td>
275             {render acl=$mailBoxAutomaticRemovalACL}
276                 <input id='mailBoxAutomaticRemovalEnabled' value='1' name="mailBoxAutomaticRemovalEnabled" value="1" 
277                     {if $mailBoxAutomaticRemovalEnabled} checked {/if} class="center" type='checkbox'>
278             {/render}
279             <label for="mailBoxAutomaticRemovalValue">{t}Remove mails older than {/t}</label>
280             {render acl=$mailBoxAutomaticRemovalACL}
281                 <input id="mailBoxAutomaticRemovalValue" name="mailBoxAutomaticRemovalValue" 
282                     size="6" align="middle" type='text' value="{$mailBoxAutomaticRemovalValue}"  class="center"> {t}days{/t}
283             {/render}
284         </td>
285     </tr>
286     {/if}
287     {if $localDeliveryOnly_isActive}
288     <tr>
289         <td>
290             {render acl=$localDeliveryOnlyACL}
291                 <input id='localDeliveryOnly' type=checkbox name="localDeliveryOnly" value="1" 
292                     {if $localDeliveryOnly} checked {/if}
293                     title="{t}Select if user can only send and receive inside his own domain{/t}" class="center">
294             {/render}
295             {t}User is only allowed to send and receive local mails{/t}
296         </td>
297     </tr>
298     {/if}
299     {if $dropOwnMails_isActive}
300     <tr>
301         <td>
302             {render acl=$dropOwnMailsACL}
303                 <input id='dropOwnMails' type=checkbox name="dropOwnMails" value="1"    
304                     {if $dropOwnMails} checked {/if}
305                     title="{t}Select if you want to forward mails without getting own copies of them{/t}">
306             {/render}
307             {t}No delivery to own mailbox{/t}
308         </td>
309     </tr>
310     {/if}
311 </table>
312 {/if}
314 <input type='hidden' name='groupwarePluginPosted' value='1'>