diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/default-layout.cassius | 27 | ||||
| -rw-r--r-- | templates/inventoryListing.hamlet | 4 |
2 files changed, 30 insertions, 1 deletions
diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index 50aab3f..bc64e8e 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius | |||
| @@ -31,6 +31,13 @@ | |||
| 31 | text-align: center | 31 | text-align: center |
| 32 | padding: 0.25em | 32 | padding: 0.25em |
| 33 | color: #aaa | 33 | color: #aaa |
| 34 | .itemId | ||
| 35 | font-family: monospace | ||
| 36 | div.itemId | ||
| 37 | display: table-cell | ||
| 38 | text-align: left | ||
| 39 | padding: 0.25em | ||
| 40 | color: #aaa | ||
| 34 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind | 41 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind |
| 35 | padding: 0 | 42 | padding: 0 |
| 36 | table table td, table table th, .table table td, .table table th | 43 | table table td, table table th, .table table td, .table table th |
| @@ -41,10 +48,26 @@ table table td, table table th, .table table td, .table table th | |||
| 41 | padding: 0 | 48 | padding: 0 |
| 42 | text-align: center | 49 | text-align: center |
| 43 | font-weight: bold | 50 | font-weight: bold |
| 51 | li | ||
| 52 | margin: 0 0 0.5em 0 | ||
| 53 | li:last-child | ||
| 54 | margin: 0 | ||
| 44 | .formError | 55 | .formError |
| 45 | color: #800 | 56 | color: #800 |
| 46 | .printSuccess | 57 | .printSuccess, .insertSuccess |
| 47 | color: #080 | 58 | color: #080 |
| 59 | .insertAmbiguous | ||
| 60 | color: inherit | ||
| 61 | ul | ||
| 62 | list-style-type: none | ||
| 63 | li | ||
| 64 | display: inline | ||
| 65 | margin: 0 0 0 0 | ||
| 66 | padding: 0 0 0 0 | ||
| 67 | li::before | ||
| 68 | content: ", " | ||
| 69 | li:first-child::before | ||
| 70 | content: "" | ||
| 48 | button | 71 | button |
| 49 | width: 6em | 72 | width: 6em |
| 50 | display: inline-block | 73 | display: inline-block |
| @@ -94,3 +117,5 @@ label.checkbox | |||
| 94 | vertical-align: middle | 117 | vertical-align: middle |
| 95 | span | 118 | span |
| 96 | vertical-align: middle | 119 | vertical-align: middle |
| 120 | .itemH | ||
| 121 | display: table-cell \ No newline at end of file | ||
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet index 39758bb..802905d 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> |
