diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-23 03:44:34 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2012-11-23 03:44:34 +0100 |
| commit | 4064b6021750d693f905e903378901312a86e6d2 (patch) | |
| tree | 1e09c4c2ec91024c6423495c296e536d0250581a /chimere/templates/admin | |
| parent | e38c33b9cf2a890625b781a59e5db354ab1a5485 (diff) | |
| download | Chimère-4064b6021750d693f905e903378901312a86e6d2.tar.bz2 Chimère-4064b6021750d693f905e903378901312a86e6d2.zip | |
OSM export: improve admin form
Diffstat (limited to 'chimere/templates/admin')
| -rw-r--r-- | chimere/templates/admin/osm_export.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chimere/templates/admin/osm_export.html b/chimere/templates/admin/osm_export.html new file mode 100644 index 0000000..42ea0f7 --- /dev/null +++ b/chimere/templates/admin/osm_export.html @@ -0,0 +1,30 @@ +{% extends "admin/base_site.html" %} +{% load chimere_tags i18n admin_static %} + +{% block extrahead %} +<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" /> +{% endblock %} + + +{% block content %} +<fieldset class='module'> +<form method='POST' action='.'> +{% csrf_token %} +<input type='hidden' name='action' value='export_to_osm'/> +<input type='hidden' name='validate' value='1'/> +<input type='hidden' name='_selected_action' value='{{item.pk}}'/> +<table> +{{ form.as_table }} +</table> +</fieldset> +<ul class='messagelist'> + <li>{{msg_item}}</li> + <li>{% trans "Before exporting to OSM an import is done to verify that no modification has been made. All pending imported item have to be validated before export." %}</li> +</ul> +<p class='errornote'>{% blocktrans %}Ensure that all the data exported to OSM have an appropriate license. You can exclude some points of interest by checking the checkbox "Not to be imported in OSM" in the point of interest form. If you are not sure of what you are doing: DON'T EXPORT TO OSM!{% endblocktrans %}</p> +<div class='submit-row'> +<p class='deletelink-box'><a href="{% if item.point %}{% url admin:chimere_marker_changelist %}{%else%}{% url admin:chimere_route_changelist %}{%endif%}">{% trans "Back to list" %}</a></p> +<input class='default' type='submit' value='{% trans "Export to OSM" %}'/> +</div> +</form> +{% endblock %} |
