summaryrefslogtreecommitdiff
path: root/templates/customers.pt
diff options
context:
space:
mode:
Diffstat (limited to 'templates/customers.pt')
-rw-r--r--templates/customers.pt23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/customers.pt b/templates/customers.pt
new file mode 100644
index 0000000..23fa70e
--- /dev/null
+++ b/templates/customers.pt
@@ -0,0 +1,23 @@
1<title>Customer List</title>
2<html>
3 <h1>Customers</h1>
4 <table>
5 <tr><th>Name</th><th span="2">E-Mail</th><th>Purchase</th></tr>
6 <tr tal:repeat="cust customers">
7 <td><a href="/customer/${customers[cust].name}">${customers[cust].name}</a></td>
8 <td><a href="mailto:${customers[cust].email}"><span tal:replace="customers[cust].email" /></a></td>
9 <td><form action="/purchaseNew">
10 <input type="hidden" name="customer" value="${customers[cust].name}" />
11 <select name="product">
12 <option tal:repeat="prod products" value="${products[prod].name}">${products[prod].name} – €${products[prod].price}</option>
13 </select>
14 <input type="submit" value="Buy"/>
15 </form></td>
16 </tr>
17 <tr><form action="/customerNew">
18 <td><input type="text" name="name" /></td>
19 <td><input type="text" name="email" /></td>
20 <td><input type="submit" value="Add"/></td>
21 </form></tr>
22 </table>
23</html>