Commits

Yohan Boniface committed ca98fac

Add missing map_update_tilelayers template

Comments (0)

Files changed (1)

leaflet_storage/templates/leaflet_storage/map_update_tilelayers.html

+{% load leaflet_storage_tags i18n %}
+<h3>{% trans "Choose your tilelayer" %}</h3>
+<form action="{% url 'map_update_tilelayers' map.pk %}" method="post" id="map_edit">
+    {% csrf_token %}
+    {% for tilelayer in tilelayers %}
+        <label for="tilelayer_{{ forloop.counter }}">
+          {% tilelayer_preview tilelayer %}<div class="textbox">
+            <input type="radio" id="tilelayer_{{ forloop.counter }}" name="tilelayer" value="{{ tilelayer.pk }}" {% if tilelayer in map.tilelayers.all %}checked{% endif %} />
+            {{ tilelayer.name }}
+          </div>
+        </label>
+    {% endfor %}
+    <hr />
+    <input type="submit" class="button" />
+</form>