summaryrefslogtreecommitdiff
path: root/templates/inventoryListing.hamlet
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-16 13:18:34 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-16 13:18:34 +0100
commit57d594818c14652681dce54d324b6b76941b2f4e (patch)
treef3e1e02e2fa41ff0d87eace034d6c883668841c5 /templates/inventoryListing.hamlet
parent3d828feba67f21ae62d1e6eb598a22ffaebf1174 (diff)
parent3bfe0bdcb79b398a387e202c5150b5e6fd230d3a (diff)
downloadbar-57d594818c14652681dce54d324b6b76941b2f4e.tar
bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.gz
bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.bz2
bar-57d594818c14652681dce54d324b6b76941b2f4e.tar.xz
bar-57d594818c14652681dce54d324b6b76941b2f4e.zip
Merge branch 'feat/openYes'
Diffstat (limited to 'templates/inventoryListing.hamlet')
-rw-r--r--templates/inventoryListing.hamlet33
1 files changed, 19 insertions, 14 deletions
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet
index f0ff1e4..802905d 100644
--- a/templates/inventoryListing.hamlet
+++ b/templates/inventoryListing.hamlet
@@ -30,22 +30,27 @@
30 <div .kind>#{itemKind} 30 <div .kind>#{itemKind}
31 <div .type>#{itemType} 31 <div .type>#{itemType}
32 <div .td .day> 32 <div .td .day>
33 $maybe bought <- itemBought 33 $case itemBought
34 #{dayFormat bought} 34 $of DateUnknown
35 $nothing 35 <hr>
36 <hr> 36 $of DateKnown d
37 #{dayFormat d}
37 <div .td .day> 38 <div .td .day>
38 $maybe expires <- itemExpires 39 $case itemExpires
39 #{dayFormat expires} 40 $of DateNever
40 $nothing 41 <hr>
41 <hr> 42 $of DateKnown d
43 <span :d < today:.expired>#{dayFormat d}
42 <div .td .day> 44 <div .td .day>
43 $maybe opened <- itemOpened 45 $case itemOpened
44 #{dayFormat opened} 46 $of DateKnown d
45 $nothing 47 #{dayFormat d}
46 <form method=post action=@{OpenItemR itemId}> 48 $of DateUnknown
47 <button type=submit> 49 Yes
48 Open 50 $of DateNever
51 <form method=post action=@{OpenItemR itemId}>
52 <button type=submit>
53 Open
49 <div .td> 54 <div .td>
50 <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}> 55 <form method=get action=@{UpdateItemR itemId}##{toPathPiece itemId}>
51 <button type=submit> 56 <button type=submit>