Code

Udpated JS focus,
[gosa.git] / plugins / personal / posix / generic.tpl
index 03aea77f3d0fb037926a6948a440e76f055794fc..9ffed418806a33280c06b1bcd333c9b83f55250e 100644 (file)
@@ -1,26 +1,26 @@
-<table style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
+<table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
  <tr>
   <td style="width:50%; vertical-align:top;">
-   <h2><img alt="" align="middle" src="images/rightarrow.png"> {t}Generic{/t}</h2>
-   <table>
+   <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Generic{/t}</h2>
+   <table summary="">
     <tr>
-     <td>{t}Home directory{/t}{$must}</td>
+     <td><label for="homeDirectory">{t}Home directory{/t}</label>{$must}</td>
      <td>
-      <input name="homeDirectory" size=25 maxlength=120 {$homeDirectoryACL} value="{$homeDirectory}">
+      <input id="homeDirectory" name="homeDirectory" size=40 maxlength=120 {$homeDirectoryACL} value="{$homeDirectory}">
      </td>
     </tr>
     <tr>
-     <td>{t}Shell{/t}</td>
+     <td><label for="loginShell">{t}Shell{/t}</label></td>
      <td>
-      <select size="1" name="loginShell" {$loginShellACL}>
+      <select id="loginShell" size="1" name="loginShell" {$loginShellACL}>
        {html_options values=$shells output=$shells selected=$loginShell}
       </select> 
      </td>
     </tr>
     <tr>
-     <td>{t}Primary group{/t}</td>
+     <td><label for="">{t}Primary group{/t}</label></td>
      <td>
-      <select size="1" name="primaryGroup" {$gidNumberACL}>
+      <select id="primaryGroup" size="1" name="primaryGroup" {$gidNumberACL}>
        {html_options options=$secondaryGroups selected=$primaryGroup}
       </select> 
      </td>
      <td>{$status}</td>
     </tr>
    </table>
-   <table>
+   <table summary="">
     <tr>
      <td>
-      <input type=checkbox name="force_ids" value="1" {$force_ids} {$force_idsACL} onclick="changeState('uidNumber'); changeState('gidNumber');">
+      <input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids} {$force_idsACL} onclick="changeState('uidNumber'); changeState('gidNumber');">
                                        </td>
                                        <td>
-      {t}Force UID/GID{/t}
+      <label for="force_ids">{t}Force UID/GID{/t}</label>
      </td>
                                        <td style="width:20px;"></td>
                                        <td>
-                                               {t}UID{/t}
+                                               <label for="uidNumber">{t}UID{/t}</label>
                                        </td>
                                        <td>
-                                               <input name="uidNumber" id="uidNumber" size=5 maxlength=5 {$forceMode} {$uidNumberACL} value="{$uidNumber}">
+                                               <input id="uidNumber" name="uidNumber" size=12 maxlength=9 {$forceMode} {$uidNumberACL} value="{$uidNumber}">
                                        </td>
                                </tr>
                                <tr>
                                        <td colspan="3"></td>
                                        <td>
-                                               {t}GID{/t}
+                                               <label for="gidNumber">{t}GID{/t}</label>
                                        </td>
      <td>
-                                               <input name="gidNumber" id="gidNumber" size=5 maxlength=5 {$forceMode} {$gidNumberACL} value="{$gidNumber}">
+                                               <input id="gidNumber" name="gidNumber" size=12 maxlength=9 {$forceMode} {$gidNumberACL} value="{$gidNumber}">
                                        </td>
                                </tr>
    </table>
     &nbsp;
   </td>
   <td style="vertical-align:top;">
-   <h2><img alt="" align="middle" src="images/members.png"> {t}Group membership{/t}</h2>
+   <h2><img alt="" class="center" align="middle" src="images/members.png" /> {t}Group membership{/t}</h2>
    {if $groups eq "too_many_for_nfs"}
     <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
     <br>
    {/if}
-   <select style="width:400px; height:130px;" name="group_list[]" size=16 multiple>
+   <select style="width:100%; height:130px;" name="group_list[]" size=16 multiple {$groupMembershipACL}>
     {html_options options=$groupMembership}
    </select>
    <br>
 
 <p class="seperator">&nbsp;</p>
 
-<table style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
+<table summary="" style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
  <tr>
-  <td>
-   <h2><img alt="" align="middle" src="images/terminal_small.png"> {t}Account{/t}</h2>
-  </td>
- </tr>
- <tr>
-  <td>
+  <td style='width:50%;vertical-align:top'>
+   <h2><img alt="" class="center" align="middle" src="images/terminal_small.png" /> {t}Account{/t}</h2>
    {include file="$pwmode.tpl"}
   </td>
- </tr>
-</table>
-
-<p class="seperator">&nbsp;</p>
-<table style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
- <tr>
-  <td style="vertical-align:top; width:50%">
-   <h2><img alt="" align="middle" src="images/display.png"> {t}Environment{/t}</h2>
-   <table>
-    <tr>
-     <td>{t}Default printer{/t}</td>
-     <td>
-      <select size="1" name="gosaDefaultPrinter" {$gosaDefaultPrinterACL}>
-       {html_options options=$printerList selected=$gosaDefaultPrinter}
-               <option disabled></option>
-      </select> 
-     </td>
-    </tr>
-    <tr>
-     <td>{t}Default language{/t}</td>
-     <td>
-      <select size="1" name="gosaDefaultLanguage" {$gosaDefaultLanguageACL}>
-       {html_options values=$languages output=$languages selected=$gosaDefaultLanguage}
-      </select> 
-     </td>
-    </tr>
-   </table>
-  </td>
   <td style="border-left:1px solid #A0A0A0">
     &nbsp;
   </td>
   <td style="vertical-align:top;">
-   <h2><img alt="" align="middle" src="images/closedlock.png" style="margin-bottom:10px;"> {t}System trust{/t}&nbsp;
-    <select name="trustmode" id="trustmode" size=1 onchange="changeSelectState('trustmode', 'wslist'); changeSelectState('trustmode', 'add_ws'); changeSelectState('trustmode', 'del_ws');" {$trustmodeACL}>
+   <h2><img alt="" class="center" align="middle" src="images/closedlock.png" /> {t}System trust{/t}</h2>
+    {t}Trust mode{/t}&nbsp;<select name="trustmode" id="trustmode" size=1 onchange="changeSelectState('trustmode', 'wslist'); changeSelectState('trustmode', 'add_ws'); changeSelectState('trustmode', 'del_ws');" {$trustmodeACL}>
       {html_options options=$trustmodes selected=$trustmode}
     </select>
-   </h2>
-   <select style="width:350px;" id="wslist" name="workstation_list[]" size=4 multiple {$trustmodeACL} {$trusthide}>
+   <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trustmodeACL} {$trusthide}>
     {html_options values=$workstations output=$workstations}
        {if $emptyArrAccess}
-               <option>
+               <option disabled>&nbsp;</option>
        {/if}
    </select>
    <br>
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.homeDirectory.focus();
+       focus_field('homeDirectory');
   -->
 </script>