diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-28 12:51:25 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-28 12:51:25 +0200 |
commit | 72b9f29c057eb45d022b9bbc1562d7b84ccc165b (patch) | |
tree | 978b71348b0dce981adf55c72ced58e8a750a17b /templates | |
parent | 08759871bcc3dc3b461650232747e58653535cdb (diff) | |
download | bar-72b9f29c057eb45d022b9bbc1562d7b84ccc165b.tar bar-72b9f29c057eb45d022b9bbc1562d7b84ccc165b.tar.gz bar-72b9f29c057eb45d022b9bbc1562d7b84ccc165b.tar.bz2 bar-72b9f29c057eb45d022b9bbc1562d7b84ccc165b.tar.xz bar-72b9f29c057eb45d022b9bbc1562d7b84ccc165b.zip |
Running low
Diffstat (limited to 'templates')
-rw-r--r-- | templates/inventoryListing.cassius | 7 | ||||
-rw-r--r-- | templates/inventoryListing.hamlet | 5 |
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 |