summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipa-gui/ipagui/templates/userlist.kid
blob: df3e247e4cabf019ce89eff2a577ebb43bdb970e (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'userlayout.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>User Listing</title>
</head>
<body>
    <div id="search">
        <form action="${tg.url('/userlist')}" method="post">
            Search by login/name:
            <input type="text" name="uid" />
            <input type="submit" />
        </form>
    </div>
    <div py:if='users != None'>
        <h2>Results</h2>
        <table py:if='len(users) > 0'>
            <tr>
                <th>
                    <label class="fieldlabel" py:content="fields.uid.label" />
                </th>
                <th>
                    Name
                </th>
            </tr>
            <tr py:for="user in users">
                <td>
                    <a href="${tg.url('/usershow',uid=user.uid)}">${user.uid}</a>
                </td>
                <td>
                    ${user.cn}
                </td>
            </tr>
        </table>
        <div py:if='len(users) == 0'>
            No results found.
        </div>
    </div>

    <!-- fix for visual artifact of my crappy ui -->
    <div>
        <br /><br /><br /><br />
    </div>
</body>
</html>