umap/youmap/templates/chickpea/map_form.html

19 lines
632 B
HTML
Raw Normal View History

2012-12-16 10:56:30 -06:00
{% load youmap_tags %}
2012-12-20 17:46:13 -06:00
{% if not map %}
<h3>Create your map now!</h3>
{% endif %}
2012-11-20 03:47:19 -06:00
<form action="{{ action_url }}" method="post" id="map_edit">
{% for error in form.non_field_errors %}
<small class="error">{{ error }}</small>
{% endfor %}
2012-11-20 03:47:19 -06:00
{% csrf_token %}
2012-12-16 10:56:30 -06:00
{% foundation_field form.name %}
{% foundation_field form.description %}
{% foundation_field form.licence %}
2012-11-20 03:47:19 -06:00
{{ form.zoom }}
{{ form.center }}
<input type="submit" class="button" />
2012-12-20 17:46:13 -06:00
{% if delete_url and map and user == map.owner %}
<a href="{{ delete_url }}" id="delete_map_button" >Delete</a>
{% endif %}
</form>