aboutsummaryrefslogtreecommitdiffstats
path: root/root/admin/account.tt
blob: 74aed5451d2c0901bc58ed049fa1d95cea9cf4c4 (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
44
45
46
47
48
49
50
<form method="post" action="">
    <table>
        <tr>
            <td>Search by</td>
            <td>
                <select name="attribute">
                    <option value="uid">Username</option>
                    <option value="mail">Email</option>
                    <option value="cn">Full Name</option>
                    <option value="sn">Surname</option>
                </select>
            </td>
            <!-- td>
            <select name="matchtype">
            <option value="substring">contains</option>
            <option value="exact">is exactly</option>
            <option value="gte">greater than or equal to</option>
            <option value="lt">less than</option>
            </select>
            </td -->
            <td><input type="text" name="value" value="" /></td>
            <td><button type="submit" value="[% l('Search') %]">[% l('Search') %]</button></td>
        </tr>
    </table>
</form>

<hr />

[% IF entries %]
    <table border=0>
        <tr>
            <th>Username</th>
            <th>Email</th>
            <th>First Name</th>
            <th>Surname</td>
            <th>Full Name</td>
        </tr>
        [% FOREACH entry IN entries %]
            <tr>
                <td><a href="[% c.uri_for('/admin/account_modify') %]/[% entry.uid %]">[% entry.uid %]</a></td>
                <td>[% entry.mail %]</td>
                <td>[% entry.givenName %]</td>
                <td>[% entry.sn %]</td>
                <td>[% entry.cn %]</td>
            </tr>
        [% END %]
    </table>
[% END %]