]> ruin.nu Git - ndwebbie.git/blob - root/src/users/edit.tt2
Converted users to catalyst
[ndwebbie.git] / root / src / users / edit.tt2
1 [% META title = 'Edit user' %]
2
3 <form action="[% c.uri_for('updateUser', u.uid) %]" method="post"><fieldset> <legend>User details</legend>
4         <table>
5         <tr>
6                 <th></th>
7                 <th>Value</th>
8                 <th>Change?</th>
9         </tr>
10         <tr><td>Username</td>
11                 <td><input type="text" name="username" value="[% u.username %]"></td>
12                 <td><input type="checkbox" name="c:username"></td>
13         </tr>
14         <tr><td>Email</td>
15                 <td><input type="text" name="email" value="[% u.email %]"></td>
16                 <td><input type="checkbox" name="c:email"></td>
17         </tr>
18         <tr><td>SMS</td>
19                 <td><input type="text" name="sms" value="[% u.sms %]"></td>
20                 <td><input type="checkbox" name="c:sms"></td>
21         </tr>
22         <tr><td>Host</td>
23                 <td><input type="text" name="hostmask" value="[% u.hostmask %]"></td>
24                 <td><input type="checkbox" name="c:hostmask"></td>
25         </tr>
26         <tr><td>Planet</td>
27                 <td><input type="text" name="planet" value="[% u.planet %]"></td>
28                 <td><input type="checkbox" name="c:planet"></td>
29         </tr>
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>
33         </tr>
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>
37         </tr>
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>
41         </tr>
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>
45         </tr>
46         </table>
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>
51         <table>
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="gr:[% g.gid %]" value="remove"></td></tr>
55         [% END %]
56         </table>
57 [% END %]
58 [% IF othergroups.size > 0 %]
59         <p>[% u.username %] is a not member of the following groups</p>
60         <table>
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="gr:[% g.gid %]" value="add"></td></tr>
64         [% END %]
65         </table>
66 [% END %]
67                 <p><input type="submit" name="cmd" value="Submit"></p>
68 </fieldset>
69 </form>