summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/gis/openlayers-osm.html7
-rw-r--r--ishtar_common/templates/ishtar/wizard/default_wizard.html9
2 files changed, 14 insertions, 2 deletions
diff --git a/ishtar_common/templates/gis/openlayers-osm.html b/ishtar_common/templates/gis/openlayers-osm.html
index 4ed773a33..59969210a 100644
--- a/ishtar_common/templates/gis/openlayers-osm.html
+++ b/ishtar_common/templates/gis/openlayers-osm.html
@@ -35,8 +35,11 @@
groupSelectStyle: 'children'
});
{{ module }}.map.addControl(layer_switcher);
- $(".ol-viewport").parent().width($(".form").width());
- $(document).ready(function() {
+ {% comment %}$(".ol-viewport").parent().width($(".form").width());{% endcomment %}
+ let ol_viewport = document.querySelector(".ol-viewport");
+ if (ol_viewport.parent) ol_viewport.parent().width(document.querySelector(".form").width());
+ {% comment %}$(document).ready(function() { {% endcomment %}
+ document.addEventListener("DOMContentLoaded", function() {
{{ module }}.map.updateSize();
let features = {{ module }}.featureOverlay.getSource().getFeatures();
if (features.length){
diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html
index c4a304111..0d3863af9 100644
--- a/ishtar_common/templates/ishtar/wizard/default_wizard.html
+++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html
@@ -6,6 +6,15 @@
{% block content %}
{% block wizard_head %}
<h3>{{wizard_label}}</h3>
+{% if no_context_cr %}
+<div class="row mb-3">
+ <div class="col">
+ <a href="/find_create/{{no_context_cr|unlocalize}}/" class="btn btn-success">
+ <i class="fa fa-plus" aria-hidden="true"></i> {% trans "find without context" %}
+ </a>
+ </div>
+</div>
+{% endif %}
{% include "ishtar/blocks/wizard_breadcrumb.html" %}