From e2e42bd068e94791edab44ac474a930223e8d42d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 13 Feb 2015 14:10:45 +0100 Subject: Refactoring of templates. Add a new ishtar_pdl with custom templates and CSS --- ishtar_common/static/media/style.css | 12 ------------ ishtar_common/templates/base.html | 1 + ishtar_common/templates/blocks/extra_head.html | 2 ++ ishtar_common/templates/ishtar/wizard/default_wizard.html | 8 +++----- ishtar_common/templates/ishtar/wizard/parcels_wizard.html | 7 +++---- ishtar_common/templates/ishtar/wizard/towns_wizard.html | 6 +++--- ishtar_common/templates/ishtar/wizard/validation_bar.html | 7 +++++++ 7 files changed, 19 insertions(+), 24 deletions(-) create mode 100644 ishtar_common/templates/blocks/extra_head.html create mode 100644 ishtar_common/templates/ishtar/wizard/validation_bar.html (limited to 'ishtar_common') diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index c9143b026..96e8be596 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -242,16 +242,6 @@ div#logo{ background-repeat:no-repeat; } -div#validation-bar{ - position: fixed; - bottom: 0px; - background-color: #CCC; - width: 100%; - left: 0px; - height: 40px; - padding: 5px; -} - div#validation-bar p{ margin:0; } @@ -269,8 +259,6 @@ a.button{ } #reset_wizards{ - right:50px; - position:absolute; color: white; } diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 1ebebd815..92e61493b 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -19,6 +19,7 @@ + {% include "blocks/extra_head.html" %} {% block extra_head %} {% endblock %} diff --git a/ishtar_common/templates/blocks/extra_head.html b/ishtar_common/templates/blocks/extra_head.html new file mode 100644 index 000000000..139597f9c --- /dev/null +++ b/ishtar_common/templates/blocks/extra_head.html @@ -0,0 +1,2 @@ + + diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index 62aafff45..a39037d10 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -41,11 +41,9 @@ {% endif %} {{ previous_fields|safe }} -
- - {% if next_steps %}{% endif %} - {% trans "Cancel" %} -
+{% block "validation_bar" %} +{% include 'ishtar/wizard/validation_bar.html' %} +{% endblock %} {% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/parcels_wizard.html b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html index 73e86e53f..ce2bc9780 100644 --- a/ishtar_common/templates/ishtar/wizard/parcels_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html @@ -23,10 +23,9 @@

{{ previous_fields|safe }} -
- -{% if next_steps %}{% endif %} -
+{% block "validation_bar" %} +{% include 'ishtar/wizard/validation_bar.html' %} +{% endblock %} {% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/towns_wizard.html b/ishtar_common/templates/ishtar/wizard/towns_wizard.html index 07717d26a..4f9ff6c5f 100644 --- a/ishtar_common/templates/ishtar/wizard/towns_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/towns_wizard.html @@ -28,9 +28,9 @@ {% endif %} {{ previous_fields|safe }} -
- -
+{% block "validation_bar" %} +{% include 'ishtar/wizard/validation_bar.html' %} +{% endblock %} {% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/validation_bar.html b/ishtar_common/templates/ishtar/wizard/validation_bar.html new file mode 100644 index 000000000..09907af67 --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/validation_bar.html @@ -0,0 +1,7 @@ +{% load i18n %} +{% load url from future %} +
+ + {% if next_steps %}{% endif %} + {% trans "Cancel" %} +
-- cgit v1.2.3