aboutsummaryrefslogtreecommitdiffstats
path: root/root/admin/account_modify.tt
blob: 6a1ecc8ea20a95ec2aefe5fa53937a06e224e3a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<a href="[% c.uri_for('/admin/password') %]/[% uid %]">Reset password</a>
<a href="[% c.uri_for('/admin/account_group') %]/[% uid %]">Groups</a>

<form method=post>
<input type='hidden' name='operation' value='replace'>
<table border=0>
<tr><th>Attribute</th><th>Value</th></tr>
[% FOREACH attr IN values %]
  <tr>
    <td>[% attr.name %]</td>
    <td>[% FOREACH val IN attr.values %][% IF attr.editable %]<input type=hidden name="[% attr.name %]_old" value="[% val %]"><input name="[% attr.name %]_new" value="[% val %]">[% ELSE %][% val %]<br/>[% END %]
[% IF attr.addable AND attr.editable %]<a href="[% c.uri_for('/admin/account_edit') %]/add/[% attr.name %]">Add</a>[% END %]
[% IF attr.removable AND attr.editable %]<a href="[% c.uri_for('/admin/account_modifydel') %]/[% uid %]/[% attr.name %]/[% val %]">Delete</a>[% END %]
    [% END %]</td>
  </tr>
[% END %]
<tr><td colspan=2 align=center><input type='Submit' value='Update'></td></tr>
</table>
</form>

<table border=0>
<tr>
<td>
<form method=post action="[% c.uri_for('/admin/account_modify') %]/[% uid %]">
<input type='hidden' name='operation' value='add'>
 Add attribute 
 <select name='attribute'>[% FOREACH attr IN may %]
  <option value="[% attr %]">[% attr %]</option>[% END %]
 </select>
 with value
<input name='value'>
 <input type=submit value='Add'>
</form>
</td>
</tr>
[% IF groups %]
<tr>
<td>
Promote user to posixAccount with primary group: 
<form method=post action="[% c.uri_for('/admin/account_promote') %]">
<input type='hidden' name='dn' value='[% dn %]'>
<select name='gid'>
[% FOREACH group IN groups %]
<option value='[% group.gidNumber %]'>[% group.name %]</option>
[% END %]
</select>
<input type=submit value='Promote'>
</form>
</td>
</tr>
[% END %]
<tr>
<td>
<form method=post action="[% c.uri_for('/admin/account_addoc') %]">
<input type='hidden' name='dn' value='[% dn %]'>
<input type='hidden' name='uid' value='[% uid %]'>
<select name='objectclass'>
[% FOREACH oc IN offer_ocs %]
<option value='[% oc %]'>[% oc %]</option>
[% END %]
</select>
<input type='submit' value='Add ObjectClass'>
</form>
</td>
</tr>
</table>