27 lines
875 B
HTML
27 lines
875 B
HTML
{% extends "combo/cell_form.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block cell-form %}
|
|
{{ form.as_p }}
|
|
{% with cell.maplayeroptions_set.all as options %}
|
|
{% if options %}
|
|
<p><label>{% trans "Layers:" %}</label></p>
|
|
<div>
|
|
<ul class="objects-list list-of-layers">
|
|
{% for option in options %}
|
|
<li>
|
|
<span>{{ option.map_layer }}</span>
|
|
<a rel="popup" title="{% trans "Delete" %}" class="link-action-icon delete" href="{% url 'maps-manager-cell-delete-layer' page_pk=page.pk cell_reference=cell.get_reference layeroptions_pk=option.pk %}">{% trans "Delete" %}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% if cell.get_free_layers.exists %}
|
|
<div class="buttons">
|
|
<a rel="popup" href="{% url 'maps-manager-cell-add-layer' page_pk=page.pk cell_reference=cell.get_reference %}">{% trans "Add a layer" %}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|