diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/default-layout.cassius | 10 | ||||
-rw-r--r-- | templates/inventoryListing.hamlet | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index bd76a01..61a4046 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius | |||
@@ -31,6 +31,12 @@ | |||
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 | display: table-cell | ||
36 | text-align: left | ||
37 | padding: 0.25em | ||
38 | color: #aaa | ||
39 | font-family: monospace | ||
34 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind | 40 | .table .table .td, .table .table .tc, .table .table .th, .table .table .kind |
35 | padding: 0 | 41 | padding: 0 |
36 | table table td, table table th | 42 | table table td, table table th |
@@ -43,7 +49,7 @@ table table td, table table th | |||
43 | font-weight: bold | 49 | font-weight: bold |
44 | .formError | 50 | .formError |
45 | color: #800 | 51 | color: #800 |
46 | .printSuccess | 52 | .printSuccess, .insertSuccess |
47 | color: #080 | 53 | color: #080 |
48 | button | 54 | button |
49 | width: 6em | 55 | width: 6em |
@@ -94,3 +100,5 @@ label.checkbox | |||
94 | vertical-align: middle | 100 | vertical-align: middle |
95 | span | 101 | span |
96 | vertical-align: middle | 102 | vertical-align: middle |
103 | .itemH | ||
104 | display: table-cell \ No newline at end of file | ||
diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet index 3be43db..f0ff1e4 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> |