From 5087bd017e15504b0d4cee6b2b40ce945e5a0929 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Jan 2018 15:59:26 +0100 Subject: Adapt layout for bootstrap v4-beta3 --- .../templates/ishtar/blocks/OAWidget.html | 4 +++- archaeological_operations/widgets.py | 6 ++++-- bootstrap_datepicker/widgets.py | 8 +++++--- ishtar_common/templates/blocks/SquareMeterWidget.html | 6 +++++- ishtar_common/templates/blocks/bs_form_snippet.html | 15 +++++++++------ ishtar_common/widgets.py | 4 ++-- 6 files changed, 28 insertions(+), 15 deletions(-) diff --git a/archaeological_operations/templates/ishtar/blocks/OAWidget.html b/archaeological_operations/templates/ishtar/blocks/OAWidget.html index 1cce45909..6f4c1af24 100644 --- a/archaeological_operations/templates/ishtar/blocks/OAWidget.html +++ b/archaeological_operations/templates/ishtar/blocks/OAWidget.html @@ -1,4 +1,6 @@
- OA +
+
OA
+
\ No newline at end of file diff --git a/archaeological_operations/widgets.py b/archaeological_operations/widgets.py index 1d53bb199..04e0fcdfd 100644 --- a/archaeological_operations/widgets.py +++ b/archaeological_operations/widgets.py @@ -53,8 +53,10 @@ class SelectParcelWidget(widgets.TextInput): def render(self, *args, **kwargs): render = super(SelectParcelWidget, self).render(*args, **kwargs) html = u"""{} - """.format(render, _(u"Add")) +
+ +
""".format(render, _(u"Add")) return mark_safe(html) diff --git a/bootstrap_datepicker/widgets.py b/bootstrap_datepicker/widgets.py index 7baa44e66..be317f5d9 100644 --- a/bootstrap_datepicker/widgets.py +++ b/bootstrap_datepicker/widgets.py @@ -28,7 +28,7 @@ class DatePicker(DateTimeInput): class Media: class JSFiles(object): def __iter__(self): - yield 'js/bootstrap-datepicker.min.js' + yield 'js/bootstrap-datepicker.js' lang = translation.get_language() if lang: lang = lang.lower() @@ -83,8 +83,10 @@ class DatePicker(DateTimeInput): html_template = """ - - + + + + """ diff --git a/ishtar_common/templates/blocks/SquareMeterWidget.html b/ishtar_common/templates/blocks/SquareMeterWidget.html index 730a918c4..09e93b425 100644 --- a/ishtar_common/templates/blocks/SquareMeterWidget.html +++ b/ishtar_common/templates/blocks/SquareMeterWidget.html @@ -1,6 +1,10 @@
- {{unit}} (0 ha) +
+
+ {{unit}} (0 ha) +
+