blob: 23fa70e4c6bd5c962830ba53f35395189047542b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<title>Customer List</title>
<html>
<h1>Customers</h1>
<table>
<tr><th>Name</th><th span="2">E-Mail</th><th>Purchase</th></tr>
<tr tal:repeat="cust customers">
<td><a href="/customer/${customers[cust].name}">${customers[cust].name}</a></td>
<td><a href="mailto:${customers[cust].email}"><span tal:replace="customers[cust].email" /></a></td>
<td><form action="/purchaseNew">
<input type="hidden" name="customer" value="${customers[cust].name}" />
<select name="product">
<option tal:repeat="prod products" value="${products[prod].name}">${products[prod].name} – €${products[prod].price}</option>
</select>
<input type="submit" value="Buy"/>
</form></td>
</tr>
<tr><form action="/customerNew">
<td><input type="text" name="name" /></td>
<td><input type="text" name="email" /></td>
<td><input type="submit" value="Add"/></td>
</form></tr>
</table>
</html>
|