diff options
Diffstat (limited to 'templates/inventoryListing.hamlet')
| -rw-r--r-- | templates/inventoryListing.hamlet | 33 |
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> |
