summaryrefslogtreecommitdiff
path: root/templates/inventoryListing.hamlet
diff options
context:
space:
mode:
Diffstat (limited to 'templates/inventoryListing.hamlet')
-rw-r--r--templates/inventoryListing.hamlet4
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>