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 type='text' 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 $gotoLastSystemLogin}
40 <tr>
41 <td>{t}Last logon{/t}</td>
42 <td>{$gotoLastSystemLogin}</td>
43 </tr>
44 {/if}
45 {/if}
46 </table>
48 {if !$multiple_support}
50 <table summary="">
51 <tr>
52 <td>
53 {render acl=$force_idsACL}
54 <input id="force_ids" type=checkbox name="force_ids" value="1" {$force_ids}
55 onclick="{$onClickIDS}">
56 {/render}
57 </td>
58 <td>
59 <label for="force_ids">{t}Force UID/GID{/t}</label>
60 </td>
61 <td style="width:20px;"></td>
62 <td>
63 <label for="uidNumber">{t}UID{/t}</label>
64 </td>
65 <td>
66 {render acl=$uidNumberACL}
67 <input type='text' id="uidNumber" name="uidNumber" size=9 maxlength=9 {$forceMode} value="{$uidNumber}">
68 {/render}
69 </td>
70 </tr>
71 <tr>
72 <td colspan="3"></td>
73 <td>
74 <label for="gidNumber">{t}GID{/t}</label>
75 </td>
76 <td>
77 {render acl=$gidNumberACL}
78 <input type='text' id="gidNumber" name="gidNumber" size=9 maxlength=9 {$forceMode} value="{$gidNumber}">
79 {/render}
80 </td>
81 </tr>
82 </table>
83 {/if}
84 </td>
85 <td style="border-left:1px solid #A0A0A0">
86
87 </td>
88 <td style="vertical-align:top;">
89 <h2><img alt="" class="center" align="middle" src="plugins/posix/images/members.png" /> {t}Group membership{/t}</h2>
90 {if $groups eq "too_many_for_nfs"}
91 <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
92 <br>
93 {/if}
94 {render acl=$groupMembershipACL}
95 <select style="width:100%; height:130px;" name="group_list[]" size=16 multiple >
96 {if !$multiple_support}
97 {html_options options=$groupMembership}
98 {else}
99 {foreach from=$groupMembership item=group key=key}
100 <option value="{$key}">{$group} ({t}Common group{/t})</option>
101 {/foreach}
102 {foreach from=$groupMembership_some item=group key=key}
103 <option value="{$key}"
104 style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$group} ({t}Groups differ{/t})</option>
105 {/foreach}
106 {/if}
107 </select>
108 {/render}
109 <br>
110 {render acl=$groupMembershipACL}
111 <input type=submit value="{msgPool type=addButton}" name="edit_groupmembership" >
112 {/render}
113 {render acl=$groupMembershipACL}
114 <input type=submit value="{msgPool type=delButton}" name="delete_groupmembership" >
115 {/render}
116 </td>
117 </tr>
118 </table>
120 <p class="seperator"> </p>
122 <table summary="" style="width:100% ; vertical-align:top; text-align:left;" cellpadding=0 border=0>
123 <tr>
124 <td style='width:50%;vertical-align:top'>
125 {if $sshPublicKey == 1}
126 {render acl=$sshPublicKeyACL}
127 <h2><img alt="" class="center" align="middle" src="images/lists/key.png" /> {t}SSH keys{/t}</h2>
128 <input type=submit value="{t}Edit public ssh keys...{/t}" name="edit_sshpublickey">
129 <div style='border-bottom:1px solid #A0A0A0;height:8px'></div>
130 {/render}
131 {/if}
132 <h2><img alt="" class="center" align="middle" src="plugins/posix/images/terminal_small.png" /> {t}Account{/t}</h2>
133 {include file="$pwmode.tpl"}
134 </td>
135 <td style="border-left:1px solid #A0A0A0">
136
137 </td>
138 <td style="vertical-align:top;">
139 <h2><img alt="" class="center" align="middle" src="images/lists/locked.png" /> {t}System trust{/t}</h2>
140 {if !$multiple_support}
141 {t}Trust mode{/t}
142 {render acl=$trustmodeACL}
143 <select name="trustmode" id="trustmode" size=1
144 onChange="changeSelectState('trustmode', 'wslist');
145 changeSelectState('trustmode', 'add_ws');
146 changeSelectState('trustmode', 'del_ws');">
147 {html_options options=$trustmodes selected=$trustmode}
148 </select>
149 {/render}
150 {render acl=$trustmodeACL}
151 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
152 {html_options values=$workstations output=$workstations}
153 {if $emptyArrAccess}
154 <option disabled> </option>
155 {/if}
156 </select>
157 {/render}
158 <br>
159 {render acl=$trustmodeACL}
160 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
161 {/render}
162 {render acl=$trustmodeACL}
163 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
164 {/render}
166 {else}
167 <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
168 class="center" onClick="GOsa_toggle('div_trustmode');">
169 {t}Trust mode{/t}
170 <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
171 {render acl=$trustmodeACL}
172 <select name="trustmode" id="trustmode" size=1
173 onChange="changeSelectState('trustmode', 'wslist');
174 changeSelectState('trustmode', 'add_ws');
175 changeSelectState('trustmode', 'del_ws');">
176 {html_options options=$trustmodes selected=$trustmode}
177 </select>
178 {/render}
179 {render acl=$trustmodeACL}
180 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
181 {html_options values=$workstations output=$workstations}
182 {if $emptyArrAccess}
183 <option disabled> </option>
184 {/if}
185 </select>
186 {/render}
187 <br>
188 {render acl=$trustmodeACL}
189 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
190 {/render}
191 {render acl=$trustmodeACL}
192 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
193 {/render}
194 </div>
195 {/if}
196 </td>
197 </tr>
198 </table>
199 {if $multiple_support}
200 <input type="hidden" name="posix_mulitple_edit" value="1">
201 {/if}
203 <input type="hidden" name="posixTab" value="posixTab">
205 <!-- Place cursor -->
206 <script language="JavaScript" type="text/javascript">
207 <!-- // First input field on page
208 focus_field('homeDirectory');
209 -->
210 </script>