summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/inventoryListing.cassius7
-rw-r--r--templates/inventoryListing.hamlet5
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/inventoryListing.cassius b/templates/inventoryListing.cassius
index 225de5d..1da6e13 100644
--- a/templates/inventoryListing.cassius
+++ b/templates/inventoryListing.cassius
@@ -18,3 +18,10 @@ div.itemId
18 width: 2em 18 width: 2em
19 border: 1px solid #ddd 19 border: 1px solid #ddd
20 border-style: solid none solid none 20 border-style: solid none solid none
21.status
22 padding: 0
23 margin: 0
24 list-style-type: none
25.status li
26 padding: 0
27 margin: 0 \ No newline at end of file
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet
index 797bd81..cc1c9ce 100644
--- a/templates/inventoryListing.hamlet
+++ b/templates/inventoryListing.hamlet
@@ -6,6 +6,7 @@
6 <div .th>Bought 6 <div .th>Bought
7 <div .th>Expires 7 <div .th>Expires
8 <div .th>Opened 8 <div .th>Opened
9 <div .th>Status
9 <div .th>Actions 10 <div .th>Actions
10 $if isJust (preview insertForm =<< formState) 11 $if isJust (preview insertForm =<< formState)
11 $with Just InsertForm{..} <- formState 12 $with Just InsertForm{..} <- formState
@@ -52,6 +53,10 @@
52 <button type=submit> 53 <button type=submit>
53 Open 54 Open
54 <div .td> 55 <div .td>
56 <ul .status>
57 $if itemRunningLow
58 <li>Running low
59 <div .td>
55 <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}> 60 <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}>
56 <button type=submit> 61 <button type=submit>
57 Edit 62 Edit