umap/youmap/templates/leaflet_storage/map_form.html
2012-12-27 14:16:53 +01:00

19 lines
No EOL
665 B
HTML

{% load youmap_tags i18n %}
{% if not map %}
<h3>{% trans "Create your map now!" %}</h3>
{% endif %}
<form action="{{ action_url }}" method="post" id="map_edit">
{% for error in form.non_field_errors %}
<small class="error">{{ error }}</small>
{% endfor %}
{% csrf_token %}
{% foundation_field form.name %}
{% foundation_field form.description %}
{% foundation_field form.licence %}
{{ form.zoom }}
{{ form.center }}
<input type="submit" class="button" />
{% if delete_url and map and user == map.owner %}
<a href="{{ delete_url }}" id="delete_map_button" >{% trans "Delete" %}</a>
{% endif %}
</form>