diff options
Diffstat (limited to 'templates/list.hamlet')
-rw-r--r-- | templates/list.hamlet | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/list.hamlet b/templates/list.hamlet new file mode 100644 index 0000000..a69ef1d --- /dev/null +++ b/templates/list.hamlet | |||
@@ -0,0 +1,28 @@ | |||
1 | <div .table .main> | ||
2 | <div .tr .sepBelow> | ||
3 | <div .td>Item | ||
4 | <div .td>Type | ||
5 | $forall WithType item itemType <- Set.toAscList list | ||
6 | <div .tr .color> | ||
7 | <div .td .kind>#{item} | ||
8 | <div .td .type>#{itemType} | ||
9 | <form method=post enctype=#{nDraftEnc} .sepAbove .tr> | ||
10 | <div .td> | ||
11 | ^{nDraftView} | ||
12 | <div .td> | ||
13 | <button type=submit :Set.null list:disabled> | ||
14 | Save | ||
15 | $if not (null drafts') | ||
16 | <form method=post enctype=#{oDraftEnc} .tr> | ||
17 | <div .td> | ||
18 | ^{oDraftView} | ||
19 | <div .td> | ||
20 | <button type=submit :Set.null list:disabled> | ||
21 | Append | ||
22 | $if not (null printers') | ||
23 | <form method=post enctype=#{printEnc} .tr> | ||
24 | <div .td> | ||
25 | ^{printView} | ||
26 | <div .td> | ||
27 | <button type=submit :Set.null list:disabled> | ||
28 | |||