Code

Udpated JS focus,
[gosa.git] / plugins / personal / posix / generic.tpl
1 <table summary="" style="width:100%; vertical-align:top; text-align:left;" cellpadding=0 border=0>
2  <tr>
3   <td style="width:50%; vertical-align:top;">
4    <h2><img class="center" alt="" align="middle" src="images/rightarrow.png" /> {t}Generic{/t}</h2>
5    <table summary="">
6     <tr>
7      <td><label for="homeDirectory">{t}Home directory{/t}</label>{$must}</td>
8      <td>
9       <input id="homeDirectory" name="homeDirectory" size=40 maxlength=120 {$homeDirectoryACL} value="{$homeDirectory}">
10      </td>
11     </tr>
12     <tr>
13      <td><label for="loginShell">{t}Shell{/t}</label></td>
14      <td>
15       <select id="loginShell" size="1" name="loginShell" {$loginShellACL}>
16        {html_options values=$shells output=$shells selected=$loginShell}
17       </select> 
18      </td>
19     </tr>
20     <tr>
21      <td><label for="">{t}Primary group{/t}</label></td>
22      <td>
23       <select id="primaryGroup" size="1" name="primaryGroup" {$gidNumberACL}>
24        {html_options options=$secondaryGroups selected=$primaryGroup}
25       </select> 
26      </td>
27     </tr>
28     <tr>
29      <td>{t}Status{/t}</td>
30      <td>{$status}</td>
31     </tr>
32    </table>
33    <table summary="">
34     <tr>
35      <td>
36       <input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids} {$force_idsACL} onclick="changeState('uidNumber'); changeState('gidNumber');">
37                                         </td>
38                                         <td>
39       <label for="force_ids">{t}Force UID/GID{/t}</label>
40      </td>
41                                         <td style="width:20px;"></td>
42                                         <td>
43                                                 <label for="uidNumber">{t}UID{/t}</label>
44                                         </td>
45                                         <td>
46                                                 <input id="uidNumber" name="uidNumber" size=12 maxlength=9 {$forceMode} {$uidNumberACL} value="{$uidNumber}">
47                                         </td>
48                                 </tr>
49                                 <tr>
50                                         <td colspan="3"></td>
51                                         <td>
52                                                 <label for="gidNumber">{t}GID{/t}</label>
53                                         </td>
54      <td>
55                                                 <input id="gidNumber" name="gidNumber" size=12 maxlength=9 {$forceMode} {$gidNumberACL} value="{$gidNumber}">
56                                         </td>
57                                 </tr>
58    </table>
59   </td>
60   <td style="border-left:1px solid #A0A0A0">
61     &nbsp;
62   </td>
63   <td style="vertical-align:top;">
64    <h2><img alt="" class="center" align="middle" src="images/members.png" /> {t}Group membership{/t}</h2>
65    {if $groups eq "too_many_for_nfs"}
66     <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
67     <br>
68    {/if}
69    <select style="width:100%; height:130px;" name="group_list[]" size=16 multiple {$groupMembershipACL}>
70     {html_options options=$groupMembership}
71    </select>
72    <br>
73    <input type=submit value="{t}Add{/t}" name="edit_groupmembership" {$groupMembershipACL}>&nbsp;
74    <input type=submit value="{t}Delete{/t}" name="delete_groupmembership" {$groupMembershipACL}>
75   </td>
76  </tr>
77 </table>
79 <p class="seperator">&nbsp;</p>
81 <table summary="" style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
82  <tr>
83   <td style='width:50%;vertical-align:top'>
84    <h2><img alt="" class="center" align="middle" src="images/terminal_small.png" /> {t}Account{/t}</h2>
85    {include file="$pwmode.tpl"}
86   </td>
87   <td style="border-left:1px solid #A0A0A0">
88     &nbsp;
89   </td>
90   <td style="vertical-align:top;">
91    <h2><img alt="" class="center" align="middle" src="images/closedlock.png" /> {t}System trust{/t}</h2>
92     {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}>
93       {html_options options=$trustmodes selected=$trustmode}
94     </select>
95    <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trustmodeACL} {$trusthide}>
96     {html_options values=$workstations output=$workstations}
97         {if $emptyArrAccess}
98                 <option disabled>&nbsp;</option>
99         {/if}
100    </select>
101    <br>
102    <input type="submit" id="add_ws" value="{t}Add{/t}" name="add_ws"
103         {$trustmodeACL} {$trusthide}>&nbsp;
104    <input type="submit" id="del_ws" value="{t}Delete{/t}" name="delete_ws"
105         {$trustmodeACL} {$trusthide}>
106   </td>
107  </tr>
108 </table>
110 <input type="hidden" name="posixTab" value="posixTab">
112 <!-- Place cursor -->
113 <script language="JavaScript" type="text/javascript">
114   <!-- // First input field on page
115         focus_field('homeDirectory');
116   -->
117 </script>