1 [% META title = 'Edit user' %]
3 <form action="[% c.uri_for('updateUser', u.uid) %]" method="post"><fieldset> <legend>User details</legend>
11 <td><input type="text" name="username" value="[% u.username %]"></td>
12 <td><input type="checkbox" name="c:username"></td>
15 <td><input type="text" name="email" value="[% u.email %]"></td>
16 <td><input type="checkbox" name="c:email"></td>
19 <td><input type="text" name="sms" value="[% u.sms %]"></td>
20 <td><input type="checkbox" name="c:sms"></td>
23 <td><input type="text" name="hostmask" value="[% u.hostmask %]"></td>
24 <td><input type="checkbox" name="c:hostmask"></td>
27 <td><input type="text" name="planet" value="[% u.planet %]"></td>
28 <td><input type="checkbox" name="c:planet"></td>
30 <tr><td>Attack points</td>
31 <td><input type="text" name="attack_points" value="[% u.attack_points %]"></td>
32 <td><input type="checkbox" name="c:attack_points"></td>
34 <tr><td>Defense points</td>
35 <td><input type="text" name="defense_points" value="[% u.defense_points %]"></td>
36 <td><input type="checkbox" name="c:defense_points"></td>
38 <tr><td>Scan points</td>
39 <td><input type="text" name="scan_points" value="[% u.scan_points %]"></td>
40 <td><input type="checkbox" name="c:scan_points"></td>
42 <tr><td>Humor points</td>
43 <td><input type="text" name="humor_points" value="[% u.humor_points %]"></td>
44 <td><input type="checkbox" name="c:humor_points"></td>
47 <p>Other information. Change?<input type="checkbox" name="c:info"></p>
48 <textarea rows="15" cols="80" name="info">[% u.info | html %]</textarea>
49 [% IF membergroups.size > 0 %]
50 <p>[% u.username %] is a member of the following groups</p>
52 <tr><th>Group</th><th>Remove</th></tr>
53 [% FOR g IN membergroups %]
54 <tr><td>[% g.groupname %]</td><td><input type="checkbox" name="remove_group" value="[% g.gid %]"></td></tr>
58 [% IF othergroups.size > 0 %]
59 <p>[% u.username %] is a not member of the following groups</p>
61 <tr><th>Group</th><th>Add</th></tr>
62 [% FOR g IN othergroups %]
63 <tr><td>[% g.groupname %]</td><td><input type="checkbox" name="add_group" value="[% g.gid %]"></td></tr>
67 <p><input type="submit" name="cmd" value="Submit"></p>