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