From e6d6109575657d0c34b859bef901d558d0b9022e Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Sat, 30 Jun 2018 19:19:01 +0100 Subject: [PATCH] Tactical commit during work on user interface --- .gitignore | 1 + project.clj | 4 +- resources/templates/app.html | 4 +- .../auto/list-addresses-Addresses.html | 57 ++++++++++++------- resources/templates/base.html | 6 +- youyesyet.adl.xml | 19 ++++--- 6 files changed, 58 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index fa895de..5e02010 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ pom.xml.asc /resources/public/content/.git /resources/public/vendor /bower_components/ +/resources/public/js/lib/ .lein-deps-sum .lein-repl-history .lein-plugins/ diff --git a/project.clj b/project.clj index 5e77ef4..61956c8 100644 --- a/project.clj +++ b/project.clj @@ -61,7 +61,9 @@ [lein-less "1.7.5"] [lein-codox "0.10.3"]] - :bower-dependencies [[leaflet "0.7.3"]] + :bower-dependencies [[leaflet "0.7.3"] + [jquery "3.3.1"]] + :bower {:directory "resources/public/js/lib"} :cucumber-feature-paths ["test/clj/features"] diff --git a/resources/templates/app.html b/resources/templates/app.html index 6b7bccb..7b181ca 100644 --- a/resources/templates/app.html +++ b/resources/templates/app.html @@ -28,8 +28,8 @@ - - + +{% script "js/lib/leaflet/dist/leaflet.js" %} {% script "/js/app.js" %} {% endblock %} diff --git a/resources/templates/auto/list-addresses-Addresses.html b/resources/templates/auto/list-addresses-Addresses.html index aa6e297..7ad3988 100644 --- a/resources/templates/auto/list-addresses-Addresses.html +++ b/resources/templates/auto/list-addresses-Addresses.html @@ -19,14 +19,30 @@ See [Application Description Language](https://github.com/simon-brooke/adl).--> {% endblock %} - -{% block content %} -
+{% block big-links %} + +{% endblock %} +{% block content %} + +{% csrf-field %} + + + + @@ -114,12 +130,6 @@ View {% endfor %} - -
@@ -132,38 +142,38 @@ View A project of the - + Radical Independence Campaign || Version {{version}} - +
Clojure -Built with +Built with LuminusWeb || - + Clojure - Powered by + Powered by Clojure || - + GitHub -Find me/fork me on +Find me/fork me on Github || - + Free Software Foundation -Licensed under the +Licensed under the GNU General Public License version 2.0 @@ -171,4 +181,11 @@ GNU General Public License version 2.0
-{% endblock %} \ No newline at end of file +{% endblock %} +{% block extra-script %} +var form = document.getElementById("content"); + +document.getElementById("next-selector").addEventListener("click", function () { + form.submit(); +}); +{% endblock %} diff --git a/resources/templates/base.html b/resources/templates/base.html index 227b668..a219f55 100644 --- a/resources/templates/base.html +++ b/resources/templates/base.html @@ -1,6 +1,8 @@ + {% block head %} + @@ -8,10 +10,12 @@ {{site-title}}: {{title}} + {% script "js/lib/jquery/dist/jquery.min.js" %} {% block extra-head %} {% endblock %} + {% endblock %} {% block whole-page %} @@ -32,7 +36,7 @@ {% endif %} - +

{{title}}

{% endblock %} diff --git a/youyesyet.adl.xml b/youyesyet.adl.xml index a9ab863..d542d6f 100644 --- a/youyesyet.adl.xml +++ b/youyesyet.adl.xml @@ -14,15 +14,16 @@ - - - - - - - {{site-title}}: {{title}} - - + + + + + + + {{site-title}}: {{title}} + + +