diff options
Diffstat (limited to 'templates/referenceListing.hamlet')
-rw-r--r-- | templates/referenceListing.hamlet | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/referenceListing.hamlet b/templates/referenceListing.hamlet new file mode 100644 index 0000000..b2b294c --- /dev/null +++ b/templates/referenceListing.hamlet | |||
@@ -0,0 +1,17 @@ | |||
1 | <div .table> | ||
2 | <div .tr .sepBelow> | ||
3 | <div .th>Description | ||
4 | <div .th>Actions | ||
5 | $if isJust (preview insertForm =<< formState) | ||
6 | $with Just InsertForm{..} <- formState | ||
7 | <form .tr .sepBelow action=@{ReferenceListingR} method=post enctype=#{fsInsertEncoding}> | ||
8 | ^{fsInsertForm} | ||
9 | <div .td> | ||
10 | <button type=submit> | ||
11 | Insert | ||
12 | $forall Entity referenceId Reference{..} <- reference | ||
13 | <div .tr .color ##{toPathPiece referenceId}> | ||
14 | <div .kind>#{referenceKind} | ||
15 | <form .td method=post action=@{DeleteRefItemR referenceId}> | ||
16 | <button type=submit> | ||
17 | Delete | ||