aboutsummaryrefslogtreecommitdiffstats
path: root/root/admin/account_addoc.tt
blob: f583672d426a791edcb18d4f349309420051c83b (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
[% l('Adding objectclass [_1] to dn [_2]', oc, dn) %]

<form method="post" action="">
    <input type="hidden" name="dn" value="[% dn %]" />
    <input type="hidden" name="uid" value="[% uid %]" />
    <input type="hidden" name="objectclass" value="[% oc %]" />
    <table>
        <tr>
            <th>[% l('Attribute') %]</th>
            <th>[% l('Value') %]</th>
        </tr>
        [% FOREACH attr IN must %]
            [% IF attr != "objectClass" %]
                <tr>
                    <td>[% attr %]</td>
                    <td><input name='[% attr %]'>
                        <span color='red'>*</span></td>
                </tr>
            [% END %]
        [% END %]
        [% FOREACH attr IN may %]
            <tr>
                <td>[% attr %]</td>
                <td><input name='[% attr %]'></td>
            </tr>
        [% END %]
    </table>
    <p><input type="submit" value="[% l('Add') %]" /></p>

</form>