diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-07-17 23:29:30 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-07-17 23:29:30 +0200 |
commit | ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7 (patch) | |
tree | 6ddffef26676f6c9f7f3e1790c7799d629180750 /templates | |
parent | ad56551ca9f7de11f6fc4160ccca01e75ffebe86 (diff) | |
download | bar-ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7.tar bar-ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7.tar.gz bar-ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7.tar.bz2 bar-ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7.tar.xz bar-ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7.zip |
More client functions
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 | |||