diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/default-layout.cassius | 2 | ||||
-rw-r--r-- | templates/list.cassius | 4 | ||||
-rw-r--r-- | templates/list.hamlet | 28 |
3 files changed, 33 insertions, 1 deletions
diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index 31389d8..e3aaa52 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius | |||
@@ -47,7 +47,7 @@ table table td, table table th, .table table td, .table table th | |||
47 | margin: 0 | 47 | margin: 0 |
48 | .formError | 48 | .formError |
49 | color: #800 | 49 | color: #800 |
50 | .printSuccess, .insertSuccess | 50 | .printSuccess, .insertSuccess, .appendSuccess, .saveSuccess |
51 | color: #080 | 51 | color: #080 |
52 | .insertAmbiguous | 52 | .insertAmbiguous |
53 | color: inherit | 53 | color: inherit |
diff --git a/templates/list.cassius b/templates/list.cassius new file mode 100644 index 0000000..5a4c58d --- /dev/null +++ b/templates/list.cassius | |||
@@ -0,0 +1,4 @@ | |||
1 | #listActions form | ||
2 | display: block | ||
3 | div | ||
4 | display: inline-block \ No newline at end of file | ||
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 | |||