blob: d51602ba1d66bec60586c081859fc4421f09a089 (
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
|
$def with (users, form)
<div class="span8">
<h2>Users</h2>
<table class="table">
<tr>
<th>User</th>
<th>Password</th>
<th></th>
</tr>
$for user in users:
<tr>
<td><a href="/user/$user.id/edit/">$user.username</a></td>
<td>$user.password</td>
<td>
<form action="/user/$user.id/delete/" method="POST">
<input type="submit" class="btn" value="Delete" />
</form>
</td>
</tr>
</table>
</div>
<div class="span4">
<h2>Add a user</h2>
<form action="" method="post">
$:form.render_css()
</form>
</div>
|