2012-12-27 07:16:53 -06:00
|
|
|
{% load youmap_tags i18n %}
|
2012-12-20 17:46:13 -06:00
|
|
|
{% if not map %}
|
2012-12-27 07:16:53 -06:00
|
|
|
<h3>{% trans "Create your map now!" %}</h3>
|
2012-12-20 17:46:13 -06:00
|
|
|
{% endif %}
|
2012-11-20 03:47:19 -06:00
|
|
|
<form action="{{ action_url }}" method="post" id="map_edit">
|
2012-12-16 10:48:57 -06:00
|
|
|
{% 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 %}
|
2012-12-27 07:16:53 -06:00
|
|
|
<a href="{{ delete_url }}" id="delete_map_button" >{% trans "Delete" %}</a>
|
2012-12-20 17:46:13 -06:00
|
|
|
{% endif %}
|
2012-12-15 05:48:06 -06:00
|
|
|
</form>
|