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