2012-12-22 13:32:11 -06:00
|
|
|
|
{% load leaflet_storage_tags %}
|
2012-12-21 09:41:48 -06:00
|
|
|
|
<h3>Choose your tilelayer</h3>
|
2012-11-20 03:47:19 -06:00
|
|
|
|
<form action="{% url map_update_tilelayers map.pk %}" method="post" id="map_edit">
|
|
|
|
|
{% csrf_token %}
|
2012-12-18 11:33:19 -06:00
|
|
|
|
<ul class="block-grid two-up mobile">
|
2012-11-20 03:47:19 -06:00
|
|
|
|
{% for tilelayer in tilelayers %}
|
|
|
|
|
<li>
|
|
|
|
|
<label for="tilelayer_{{ forloop.counter }}">
|
|
|
|
|
{% tilelayer_preview tilelayer %}<div class="panel">
|
2012-12-21 09:41:48 -06:00
|
|
|
|
<input type="radio" id="tilelayer_{{ forloop.counter }}" name="tilelayer" value="{{ tilelayer.pk }}" {% if tilelayer in map.tilelayers.all %}checked{% endif %} />
|
2012-11-20 03:47:19 -06:00
|
|
|
|
{{ tilelayer.name }}
|
|
|
|
|
</div>
|
|
|
|
|
</label>
|
|
|
|
|
</li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<div class="row twelve columns">
|
|
|
|
|
<input type="submit" class="button" />
|
|
|
|
|
</div>
|
2012-12-15 07:43:36 -06:00
|
|
|
|
</form>
|