aboutsummaryrefslogtreecommitdiffstats
path: root/root/admin/group_modify.tt
blob: 8ee9ee00aae30dd28f931780a16423720f102e80 (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
<form method="post" action="[% c.req.uri %]/add">
    <input type='hidden' name='cn' value='[% group.cn %]'>
    <table>
        <tr align="left">
            <th>[% l('Attribute') %]</th>
            <th>[% l('Value') %]</th>
        </tr>
        [% FOREACH attr IN group.attributes %]
        <tr align="left">
            <td>[% attr %]</td>
            <td>
                [% FOREACH value IN group.get_value(attr) %]
                    [% value %]
                    [% IF attr == "member" OR attr =="owner" %]
                    <a href="[% c.uri_for('/admin/group_modify') %]/[% group.cn %]/delete/[% attr %]/[% value %]">[% l('delete') %]</a>
                    [% END %]
                    <br/>
                [% END %]
                [% IF attr == "member" OR attr == "owner" %]
                <input name="[% attr %]" value="" />
                <input type="submit" value="[% l('Add') %]" />
                [% END %]
            </td>
        </tr>
        [% END %]
    </table>
</form>