summaryrefslogtreecommitdiff
path: root/templates/referenceListing.hamlet
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-14 18:33:42 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-14 18:33:42 +0100
commit7bc954b779a9bc4e1c5e60f2648101c62ed22e72 (patch)
treeb30851324772c14550c0444b7e79e36256f67900 /templates/referenceListing.hamlet
parent53fcf55c02f9335518c28d26429913258fc28f87 (diff)
downloadbar-7bc954b779a9bc4e1c5e60f2648101c62ed22e72.tar
bar-7bc954b779a9bc4e1c5e60f2648101c62ed22e72.tar.gz
bar-7bc954b779a9bc4e1c5e60f2648101c62ed22e72.tar.bz2
bar-7bc954b779a9bc4e1c5e60f2648101c62ed22e72.tar.xz
bar-7bc954b779a9bc4e1c5e60f2648101c62ed22e72.zip
Reference & list
Diffstat (limited to 'templates/referenceListing.hamlet')
-rw-r--r--templates/referenceListing.hamlet17
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