blob: de4c4eb2f56d57c54d9a4b140d78903c9ddd7a07 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<!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>Find People</title>
</head>
<body>
<h2>Find People</h2>
<div id="search">
<form action="${tg.url('/userlist')}" method="post">
Search:
<input id="uid" type="text" name="uid" value="${uid}" />
<input type="submit" />
</form>
<script type="text/javascript">
document.getElementById("uid").focus();
</script>
</div>
<div py:if='users != None'>
<h2>${len(users)} results returned:</h2>
<table id="resultstable" py:if='len(users) > 0'>
<tr>
<th>
<label class="fieldlabel" py:content="fields.uid.label" />
</th>
<th>
Name
</th>
<th>
Phone
</th>
<th>
Unit
</th>
<th>
Title
</th>
<th>
License Plate
</th>
</tr>
<tr py:for="user in users">
<td>
<a href="${tg.url('/usershow',uid=user.uid)}">${user.uid}</a>
</td>
<td>
${user.givenName} ${user.sn}
</td>
<td>
${user.telephoneNumber}
</td>
<td>
${user.ou}
</td>
<td>
${user.title}
</td>
<td>
${user.carLicense}
</td>
</tr>
</table>
<div py:if='len(users) == 0'>
No results found.
</div>
</div>
</body>
</html>
|