Code

Fixed date of birth && userPicture
[gosa.git] / plugins / personal / connectivity / kolab.tpl
index e910c33389cadcf6f6f36476a711af64ce37bf63..c2a0985357954746cb0a5527c84ba2d9ef1a35fc 100644 (file)
-<h2>{t}Kolab account{/t}</h2>
 
-{if $is_account ne 'true'}
-{t}The kolab account is currently disabled. It's features can be adjusted if you add a mail account.{/t}
+{if $mail_account ne 'true'}
+       <h2>{t}Kolab account{/t}</h2>
+       {t}The kolab account is currently disabled. It's features can be adjusted if you add a mail account.{/t}
 {else}
 
-<table style="width:100%">
+
+
+<input type="checkbox" id="kolabState" name="kolabState" value="1" {if $kolabState} checked {/if} 
+       {if (!$is_account && $is_createable) || ($is_account && $is_removeable)}
+       {else}
+               disabled        
+       {/if}
+       onClick="
+       {if $kolabDelegate_W}
+       changeState('delegate_list');
+       changeState('delegate_address');
+       changeState('add_delegation');
+       changeState('delete_delegation');
+       {/if}
+       {if $unrestrictedMailSize_W}
+       changeState('unrestrictedMailSize');
+       {/if}
+       {if $calFBURL_W}
+       changeState('calFBURL');
+       {/if}
+       {if $kolabFreeBusyFuture_W}
+       changeState('kolabFreeBusyFuture');
+       {/if}
+       {if $kolabInvitationPolicy_W}
+       {$changeState}
+       {/if}">
+
+
+<b>{t}Kolab account{/t}</b>
+<br>
+<br>
+<table summary="" style="width:100%">
  <tr>
   <td style="width:50%; vertical-align:top;">
-   <b>{t}Delegations{/t}</b><br>
-   <select style="width:350px; height:100px;" name="delegate_list[]" size=15 multiple>
+   <b><LABEL for="delegate_list">{t}Delegations{/t}</LABEL></b><br>
+{render acl=$kolabDelegateACL}
+   <select id="delegate_list" style="width:350px; height:100px;" name="delegate_list[]" size=15 multiple  {if !$kolabState} disabled {/if} >
     {html_options values=$kolabDelegate output=$kolabDelegate}
+       <option disabled>&nbsp;</option>
    </select>
+{/render}
    <br>
-   <input name="delegate_address" size=30 align=middle maxlength=60
-        {$kolabDelegateACL} value="">
-   <input type=submit value="{t}Add{/t}" name="add_delegation"
-        {$kolabDelegateACL}>&nbsp;
-   <input type=submit value="{t}Delete{/t}" name="delete_delegation"
-        {$kolabDelegateACL}>
+{render acl=$kolabDelegateACL}
+   <input name="delegate_address" size=30 align=middle maxlength=60 {if !$kolabState} disabled {/if} value="" id="delegate_address">
+{/render}
+{render acl=$kolabDelegateACL}
+   <input type=submit value="{t}Add{/t}" name="add_delegation" {if !$kolabState} disabled {/if} id="add_delegation">&nbsp;
+{/render}
+{render acl=$kolabDelegateACL}
+   <input type=submit value="{t}Delete{/t}" name="delete_delegation" {if !$kolabState} disabled {/if} id="delete_delegation">
+{/render}
    <p>
     <b>{t}Mail size{/t}</b><br>
-     &nbsp;<input type="checkbox" name="unrestrictedMailSize" value="1" {$unrestrictedMailSizeACL} {$unrestrictedMailSizeState}> {t}No mail size restriction for this account{/t}
+{render acl=$unrestrictedMailSizeACL}
+     &nbsp;<input type="checkbox" id='unrestrictedMailSize' name="unrestrictedMailSize" value="1" {if !$kolabState} disabled {/if}
+       {$unrestrictedMailSizeState}> {t}No mail size restriction for this account{/t}
+{/render}
     </p>
   </td>
   <td rowspan=2 style="border-left:1px solid #A0A0A0">
    &nbsp;
   </td>
   <td style="vertical-align:top;">
-<p>
+
  <b>{t}Free Busy information{/t}</b><br>
- <table>
+ <table summary="">
   <tr>
-   <td>{t}URL{/t}</td>
-   <td><input name="calFBURL" size=30 maxlength=60 {$calFBURLACL} value="{$calFBURL}"></td>
+   <td><LABEL for="calFBURL">{t}URL{/t}</LABEL></td>
+   <td>
+{render acl=$calFBURLACL}
+   <input id="calFBURL" name="calFBURL" size=30 maxlength=60 value="{$calFBURL}" {if !$kolabState} disabled {/if}>
+{/render}
+   </td>
   </tr>
   <tr>
-   <td>{t}Future{/t}</td>
-   <td><input name="kolabFreeBusyFuture" size=5 maxlength=6 {$kolabFreeBusyFutureACL} value="{$kolabFreeBusyFuture}"> {t}days{/t}</td>
+  <td><LABEL for="kolabFreeBusyFuture">{t}Future{/t}</LABEL></td>
+  <td>
+{render acl=$kolabFreeBusyFutureACL}
+   <input id="kolabFreeBusyFuture" name="kolabFreeBusyFuture" size=5 maxlength=6 i {if !$kolabState} disabled {/if} value="{$kolabFreeBusyFuture}"> 
+       {t}days{/t}
+{/render}
+   </td>
   </tr>
  </table>
-</p>
-<p>
+
+
  <b>{t}Invitation policy{/t}</b><br>
- <table>
+ <table summary="">
+{render acl=$kolabInvitationPolicyACL}
    {$invitation}
+{/render}
  </table>
-</p>
+
   </td>
  </tr>
 </table>