aboutsummaryrefslogtreecommitdiffstats
path: root/root/user/index.tt
blob: 7c70b4a0f36df5553e77755cc9ecf64e768ac282 (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
<form method="post" action="">
    <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="/user/add/[% attr.name %]">[% l('Add') %]</a>
                    [% END %]
                    [% IF attr.removable AND attr.editable %]
                        <a href="/user/delete/[% attr.name %]/[% val %]">[% l('Delete') %]</a>
                    [% END %]
                [% END %]
            </td>
        </tr>
        [% END %]
    </table>

    <p><input type="Submit" value="[% l('Update') %]" /></p>
</form>

<hr />

<form method="post" action="/user/add">
    <p>
        <select name="attribute">
        [% FOREACH attr IN may %]
            <option value="[% attr %]">[% attr %]</option>
        [% END %]

        <input name="value" value="" />

        <input type="submit" value="[% l('Add') %]" />
    </p>
</form>