summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-15 20:02:53 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-15 20:15:04 +0100
commit299731a0cef7462dd8c17bde7ba1a4aeb6f211cd (patch)
tree1f16b69aac6fa3ffd7e92c7cba04c4ba2f2e256f /templates
parent3ed9ec8ca70afb556f75d4e087043f4c67f50974 (diff)
downloadbar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar
bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.gz
bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.bz2
bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.xz
bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.zip
Implement inventory ids
Diffstat (limited to 'templates')
-rw-r--r--templates/default-layout.cassius10
-rw-r--r--templates/inventoryListing.hamlet4
2 files changed, 13 insertions, 1 deletions
diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius
index bd76a01..61a4046 100644
--- a/templates/default-layout.cassius
+++ b/templates/default-layout.cassius
@@ -31,6 +31,12 @@
31 text-align: center 31 text-align: center
32 padding: 0.25em 32 padding: 0.25em
33 color: #aaa 33 color: #aaa
34.itemId
35 display: table-cell
36 text-align: left
37 padding: 0.25em
38 color: #aaa
39 font-family: monospace
34.table .table .td, .table .table .tc, .table .table .th, .table .table .kind 40.table .table .td, .table .table .tc, .table .table .th, .table .table .kind
35 padding: 0 41 padding: 0
36table table td, table table th 42table table td, table table th
@@ -43,7 +49,7 @@ table table td, table table th
43 font-weight: bold 49 font-weight: bold
44 .formError 50 .formError
45 color: #800 51 color: #800
46 .printSuccess 52 .printSuccess, .insertSuccess
47 color: #080 53 color: #080
48button 54button
49 width: 6em 55 width: 6em
@@ -94,3 +100,5 @@ label.checkbox
94 vertical-align: middle 100 vertical-align: middle
95 span 101 span
96 vertical-align: middle 102 vertical-align: middle
103.itemH
104 display: table-cell \ No newline at end of file
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet
index 3be43db..f0ff1e4 100644
--- a/templates/inventoryListing.hamlet
+++ b/templates/inventoryListing.hamlet
@@ -1,5 +1,6 @@
1<div .table> 1<div .table>
2 <div .tr .sepBelow> 2 <div .tr .sepBelow>
3 <div .itemH>
3 <div .th>Item 4 <div .th>Item
4 <div .th>Type 5 <div .th>Type
5 <div .th>Bought 6 <div .th>Bought
@@ -9,6 +10,7 @@
9 $if isJust (preview insertForm =<< formState) 10 $if isJust (preview insertForm =<< formState)
10 $with Just InsertForm{..} <- formState 11 $with Just InsertForm{..} <- formState
11 <form .tr .sepBelow action=@{InventoryListingR} method=post enctype=#{fsInsertEncoding}> 12 <form .tr .sepBelow action=@{InventoryListingR} method=post enctype=#{fsInsertEncoding}>
13 <div .td>
12 ^{fsInsertForm} 14 ^{fsInsertForm}
13 <div .td> 15 <div .td>
14 <button type=submit> 16 <button type=submit>
@@ -17,12 +19,14 @@
17 $if Just itemId == (preview updateId =<< formState) 19 $if Just itemId == (preview updateId =<< formState)
18 $with Just UpdateForm{..} <- formState 20 $with Just UpdateForm{..} <- formState
19 <form .tr .color action=@{UpdateItemR fsUpdateId}##{toPathPiece fsUpdateId} method=post enctype=#{fsUpdateEncoding} ##{toPathPiece fsUpdateId}> 21 <form .tr .color action=@{UpdateItemR fsUpdateId}##{toPathPiece fsUpdateId} method=post enctype=#{fsUpdateEncoding} ##{toPathPiece fsUpdateId}>
22 <div .itemId>#{humanId itemId}
20 ^{fsUpdateForm} 23 ^{fsUpdateForm}
21 <div .td> 24 <div .td>
22 <button type=submit> 25 <button type=submit>
23 Save Changes 26 Save Changes
24 $else 27 $else
25 <div .tr .color ##{toPathPiece itemId}> 28 <div .tr .color ##{toPathPiece itemId}>
29 <div .itemId>#{humanId itemId}
26 <div .kind>#{itemKind} 30 <div .kind>#{itemKind}
27 <div .type>#{itemType} 31 <div .type>#{itemType}
28 <div .td .day> 32 <div .td .day>