blob: 16cb19cedbdb87b6bb352bfc656000d67c424a55 (
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
|
<title>Products List</title>
<html>
<h1>Products</h1>
<table>
<tr><th>Name</th><th span="2">Type</th><th>Price</th><th>Purchase</th></tr>
<tr tal:repeat="item products">
<td><a href="/product/${products[item].name}">${products[item].name}</a></td>
<td>${products[item].type}</td>
<td>${products[item].price}</td>
<td><form action="/purchaseNew">
<input type="hidden" name="product" value="${products[item].name}" />
<select name="customer">
<option tal:repeat="cust customers" value="${customers[cust].name}">${customers[cust].name}</option>
</select>
<input type="submit" value="Buy" />
</form></td>
</tr>
<tr><form action="/productNew">
<td><input type="text" name="name" /></td>
<td><input type="text" name="type" /></td>
<td><input type="number" name="price" value="5" /></td>
<td><input type="submit" value="Add"/></td>
</form></tr>
</table>
</html>
|