1 <table style="width:100%;" summary="{t}POSIX settings{/t}">
2 <tr>
3 <td style="width:50%">
5 <h3>{t}Generic{/t}</h3>
6 <table summary="{t}Generic settings{/t}">
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="{t}Account settings{/t}">
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 class='left-border'>
87 </td>
88 <td>
89 <h3>{t}Group membership{/t}
90 </h3>
91 {if $groups eq "too_many_for_nfs"}
92 <b style="color:red">{t}(Warning: more than 16 groups are not supported by NFS!){/t}</b>
93 <br>
94 {/if}
95 {render acl=$groupMembershipACL}
96 <select style="width:100%; height:130px;" name="group_list[]" size=16 multiple >
97 {if !$multiple_support}
98 {html_options options=$groupMembership}
99 {else}
100 {foreach from=$groupMembership item=group key=key}
101 <option value="{$key}">{$group} ({t}Common group{/t})</option>
102 {/foreach}
103 {foreach from=$groupMembership_some item=group key=key}
104 <option value="{$key}"
105 style='color: #888888; background: #DDDDDD;background-color: #DDDDDD;'>{$group} ({t}Groups differ{/t})</option>
106 {/foreach}
107 {/if}
108 </select>
109 {/render}
110 <br>
111 {render acl=$groupMembershipACL}
112 <button type='submit' name='edit_groupmembership'>{msgPool type=addButton}</button>
114 {/render}
115 {render acl=$groupMembershipACL}
116 <button type='submit' name='delete_groupmembership'>{msgPool type=delButton}</button>
118 {/render}
119 </td>
120 </tr>
121 </table>
123 <hr>
125 <table style="width:100%" summary="{t}Account permissions{/t}" >
126 <tr>
127 <td style='width:50%'>
128 {if $sshPublicKey == 1}
129 {render acl=$sshPublicKeyACL}
130 <h3>{t}SSH keys{/t}</h3>
131 <button type='submit' name='edit_sshpublickey'>{t}Edit public ssh keys...{/t}</button>
132 {/render}
133 {/if}
135 <hr>
136 {include file="$pwmode.tpl"}
137 </td>
138 <td class='left-border'>
139 </td>
140 <td>
141 {$trustModeDialog}
142 </td>
143 </tr>
144 </table>
146 {if $multiple_support}
147 <input type="hidden" name="posix_mulitple_edit" value="1">
148 {/if}
150 <input type="hidden" name="posixTab" value="posixTab">
152 <!-- Place cursor -->
153 <script language="JavaScript" type="text/javascript">
154 <!-- // First input field on page
155 focus_field('homeDirectory');
156 -->
157 </script>