diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-15 20:02:53 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-15 20:15:04 +0100 |
commit | 299731a0cef7462dd8c17bde7ba1a4aeb6f211cd (patch) | |
tree | 1f16b69aac6fa3ffd7e92c7cba04c4ba2f2e256f /templates/inventoryListing.hamlet | |
parent | 3ed9ec8ca70afb556f75d4e087043f4c67f50974 (diff) | |
download | bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.gz bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.bz2 bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.tar.xz bar-299731a0cef7462dd8c17bde7ba1a4aeb6f211cd.zip |
Implement inventory ids
Diffstat (limited to 'templates/inventoryListing.hamlet')
-rw-r--r-- | templates/inventoryListing.hamlet | 4 |
1 files changed, 4 insertions, 0 deletions
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> |