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 {render acl=$homeDirectoryACL checkbox=$multiple_support checked=$use_homeDirectory}
10 <input id="homeDirectory" name="homeDirectory" size=40 maxlength=120 value="{$homeDirectory}">
11 {/render}
12 </td>
13 </tr>
14 <tr>
15 <td><label for="loginShell">{t}Shell{/t}</label></td>
16 <td>
17 {render acl=$loginShellACL checkbox=$multiple_support checked=$use_loginShell}
18 <select id="loginShell" size="1" name="loginShell">
19 {html_options values=$shells output=$shells selected=$loginShell}
20 </select>
21 {/render}
22 </td>
23 </tr>
24 <tr>
25 <td><label for="primaryGroup">{t}Primary group{/t}</label></td>
26 <td>
27 {render acl=$gidNumberACL checkbox=$multiple_support checked=$use_primaryGroup}
28 <select id="primaryGroup" size="1" name="primaryGroup">
29 {html_options options=$secondaryGroups selected=$primaryGroup}
30 </select>
31 {/render}
32 </td>
33 </tr>
34 {if !$multiple_support}
35 <tr>
36 <td>{t}Status{/t}</td>
37 <td>{$status}</td>
38 </tr>
39 {/if}
40 </table>
42 {if !$multiple_support}
44 <table summary="">
45 <tr>
46 <td>
47 {render acl=$force_idsACL}
48 <input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids} onclick="changeState('uidNumber'); changeState('gidNumber');">
49 {/render}
50 </td>
51 <td>
52 <label for="force_ids">{t}Force UID/GID{/t}</label>
53 </td>
54 <td style="width:20px;"></td>
55 <td>
56 <label for="uidNumber">{t}UID{/t}</label>
57 </td>
58 <td>
59 {render acl=$uidNumberACL}
60 <input id="uidNumber" name="uidNumber" size=9 maxlength=9 {$forceMode} value="{$uidNumber}">
61 {/render}
62 </td>
63 </tr>
64 <tr>
65 <td colspan="3"></td>
66 <td>
67 <label for="gidNumber">{t}GID{/t}</label>
68 </td>
69 <td>
70 {render acl=$gidNumberACL}
71 <input id="gidNumber" name="gidNumber" size=9 maxlength=9 {$forceMode} value="{$gidNumber}">
72 {/render}
73 </td>
74 </tr>
75 </table>
76 {/if}
77 </td>
78 <td style="border-left:1px solid #A0A0A0">
79
80 </td>
81 <td style="vertical-align:top;">
82 <h2><img alt="" class="center" align="middle" src="images/members.png" /> {t}Group membership{/t}</h2>
83 {if $groups eq "too_many_for_nfs"}
84 <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
85 <br>
86 {/if}
87 {render acl=$groupMembershipACL}
88 <select style="width:100%; height:130px;" name="group_list[]" size=16 multiple >
89 {if !$multiple_support}
90 {html_options options=$groupMembership}
91 {else}
92 {foreach from=$groupMembership item=group key=key}
93 <option value="{$key}">{$group} ({t}In all groups{/t})</option>
94 {/foreach}
95 {foreach from=$groupMembership_some item=group key=key}
96 <option value="{$key}"
97 style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$group} ({t}Not in all groups{/t})</option>
98 {/foreach}
99 {/if}
100 </select>
101 {/render}
102 <br>
103 {render acl=$groupMembershipACL}
104 <input type=submit value="{msgPool type=addButton}" name="edit_groupmembership" >
105 {/render}
106 {render acl=$groupMembershipACL}
107 <input type=submit value="{msgPool type=delButton}" name="delete_groupmembership" >
108 {/render}
109 </td>
110 </tr>
111 </table>
113 <p class="seperator"> </p>
115 <table summary="" style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
116 <tr>
117 <td style='width:50%;vertical-align:top'>
118 <h2><img alt="" class="center" align="middle" src="images/terminal_small.png" /> {t}Account{/t}</h2>
119 {include file="$pwmode.tpl"}
120 </td>
121 <td style="border-left:1px solid #A0A0A0">
122
123 </td>
124 <td style="vertical-align:top;">
125 <h2><img alt="" class="center" align="middle" src="images/lists/locked.png" /> {t}System trust{/t}</h2>
126 {if !$multiple_support}
127 {t}Trust mode{/t}
128 {render acl=$trustmodeACL}
129 <select name="trustmode" id="trustmode" size=1
130 onChange="changeSelectState('trustmode', 'wslist');
131 changeSelectState('trustmode', 'add_ws');
132 changeSelectState('trustmode', 'del_ws');">
133 {html_options options=$trustmodes selected=$trustmode}
134 </select>
135 {/render}
136 {render acl=$trustmodeACL}
137 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
138 {html_options values=$workstations output=$workstations}
139 {if $emptyArrAccess}
140 <option disabled> </option>
141 {/if}
142 </select>
143 {/render}
144 <br>
145 {render acl=$trustmodeACL}
146 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
147 {/render}
148 {render acl=$trustmodeACL}
149 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
150 {/render}
152 {else}
153 <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
154 class="center" onClick="toggle('div_trustmode');">
155 {t}Trust mode{/t}
156 <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
157 {render acl=$trustmodeACL}
158 <select name="trustmode" id="trustmode" size=1
159 onChange="changeSelectState('trustmode', 'wslist');
160 changeSelectState('trustmode', 'add_ws');
161 changeSelectState('trustmode', 'del_ws');">
162 {html_options options=$trustmodes selected=$trustmode}
163 </select>
164 {/render}
165 {render acl=$trustmodeACL}
166 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
167 {html_options values=$workstations output=$workstations}
168 {if $emptyArrAccess}
169 <option disabled> </option>
170 {/if}
171 </select>
172 {/render}
173 <br>
174 {render acl=$trustmodeACL}
175 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
176 {/render}
177 {render acl=$trustmodeACL}
178 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
179 {/render}
180 </div>
181 {/if}
182 </td>
183 </tr>
184 </table>
185 {if $multiple_support}
186 <input type="hidden" name="posix_mulitple_edit" value="1">
187 {/if}
189 <input type="hidden" name="posixTab" value="posixTab">
191 <!-- Place cursor -->
192 <script language="JavaScript" type="text/javascript">
193 <!-- // First input field on page
194 focus_field('homeDirectory');
195 -->
196 </script>