061b87840bf5d3b6f4c6a9878dea171f5f88c52b
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 <h2><img alt="" class="center" align="middle" src="plugins/posix/images/terminal_small.png" /> {t}Account{/t}</h2>
120 {include file="$pwmode.tpl"}
121 </td>
122 <td style="border-left:1px solid #A0A0A0">
123
124 </td>
125 <td style="vertical-align:top;">
126 <h2><img alt="" class="center" align="middle" src="images/lists/locked.png" /> {t}System trust{/t}</h2>
127 {if !$multiple_support}
128 {t}Trust mode{/t}
129 {render acl=$trustmodeACL}
130 <select name="trustmode" id="trustmode" size=1
131 onChange="changeSelectState('trustmode', 'wslist');
132 changeSelectState('trustmode', 'add_ws');
133 changeSelectState('trustmode', 'del_ws');">
134 {html_options options=$trustmodes selected=$trustmode}
135 </select>
136 {/render}
137 {render acl=$trustmodeACL}
138 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
139 {html_options values=$workstations output=$workstations}
140 {if $emptyArrAccess}
141 <option disabled> </option>
142 {/if}
143 </select>
144 {/render}
145 <br>
146 {render acl=$trustmodeACL}
147 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
148 {/render}
149 {render acl=$trustmodeACL}
150 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
151 {/render}
153 {else}
154 <input type="checkbox" name="use_trustmode" {if $use_trustmode} checked {/if}
155 class="center" onClick="GOsa_toggle('div_trustmode');">
156 {t}Trust mode{/t}
157 <div {if !$use_trustmode} style="visibility:hidden;" {/if} id="div_trustmode">
158 {render acl=$trustmodeACL}
159 <select name="trustmode" id="trustmode" size=1
160 onChange="changeSelectState('trustmode', 'wslist');
161 changeSelectState('trustmode', 'add_ws');
162 changeSelectState('trustmode', 'del_ws');">
163 {html_options options=$trustmodes selected=$trustmode}
164 </select>
165 {/render}
166 {render acl=$trustmodeACL}
167 <select style="width:100%" id="wslist" name="workstation_list[]" size=8 multiple {$trusthide}>
168 {html_options values=$workstations output=$workstations}
169 {if $emptyArrAccess}
170 <option disabled> </option>
171 {/if}
172 </select>
173 {/render}
174 <br>
175 {render acl=$trustmodeACL}
176 <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>
177 {/render}
178 {render acl=$trustmodeACL}
179 <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
180 {/render}
181 </div>
182 {/if}
183 </td>
184 </tr>
185 </table>
186 {if $multiple_support}
187 <input type="hidden" name="posix_mulitple_edit" value="1">
188 {/if}
190 <input type="hidden" name="posixTab" value="posixTab">
192 <!-- Place cursor -->
193 <script language="JavaScript" type="text/javascript">
194 <!-- // First input field on page
195 focus_field('homeDirectory');
196 -->
197 </script>