From ce3d224e7ccd612153e64e4d7bb4f8caa0b711e7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 17 Jul 2017 23:29:30 +0200 Subject: More client functions --- templates/default-layout.cassius | 2 +- templates/list.cassius | 4 ++++ templates/list.hamlet | 28 ++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 templates/list.cassius create mode 100644 templates/list.hamlet (limited to 'templates') diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index 31389d8..e3aaa52 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius @@ -47,7 +47,7 @@ table table td, table table th, .table table td, .table table th margin: 0 .formError color: #800 - .printSuccess, .insertSuccess + .printSuccess, .insertSuccess, .appendSuccess, .saveSuccess color: #080 .insertAmbiguous color: inherit diff --git a/templates/list.cassius b/templates/list.cassius new file mode 100644 index 0000000..5a4c58d --- /dev/null +++ b/templates/list.cassius @@ -0,0 +1,4 @@ +#listActions form + display: block + div + display: inline-block \ No newline at end of file diff --git a/templates/list.hamlet b/templates/list.hamlet new file mode 100644 index 0000000..a69ef1d --- /dev/null +++ b/templates/list.hamlet @@ -0,0 +1,28 @@ +
+
+
Item +
Type + $forall WithType item itemType <- Set.toAscList list +
+
#{item} +
#{itemType} +
+
+ ^{nDraftView} +
+