summaryrefslogtreecommitdiff
path: root/templates/chimere/edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/chimere/edit.html')
-rw-r--r--templates/chimere/edit.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/chimere/edit.html b/templates/chimere/edit.html
index ded22bb..48f18ef 100644
--- a/templates/chimere/edit.html
+++ b/templates/chimere/edit.html
@@ -6,7 +6,17 @@
{% endif %}</div>
{% if is_modification and is_superuser %}<div class='warning'><p>{% trans "You are logged as an administrator. Your modifications will be taking into account immediately." %}</p></div>{% endif %}
<div class='edit'>
-{% block legend %}{% endblock %}
+ {% block editactions %}
+ {% for main_action, subactions in actions %}
+ {% ifequal main_action.id 'contribute' %}
+ <ul class="nav nav-pills">
+ {% with "edit-"|add:geom_name as current_url %}{% for subaction in subactions %}
+ <li{% ifequal subaction.id current_url %} class="active"{% endifequal %}><a class="subactions" data-link="{% url subaction.id|add:'-tab' area_name|add:'/' %}" href="#">{{ subaction.label }}</a></li>
+ {% endfor %}{% endwith %}
+ </ul>
+ {% endifequal %}
+ {% endfor %}
+ {% endblock %}
<form enctype="multipart/form-data" method='post'
action='{% block edit_url %}{% endblock %}{% url "editmarker" %}' id='proposition_form'>
{% csrf_token %}
@@ -144,6 +154,7 @@
var success_msg = "<h3>Merci pour votre contribution au projet !</h3>";
success_msg += "<p>Votre proposition va être examinée par un modérateur et être validée dans les jours à venir.</p>"
$(function(){
+ register_subactions();
if (typeof tinyMCE !== 'undefined'){
tinyMCE.init({
mode : "textareas",
@@ -157,6 +168,7 @@
toolbar3: ""
});
}
+
{% comment %}
{% if route %}
var edition_type = 'route';
@@ -168,6 +180,7 @@
$('#main_map').chimere('updateMarkerInput');
{% endif %}
{% endcomment %}
+
$('#modal-edit button.btn-primary').click(function(){
// JS tests because if a file is submited there is no way
// to refill the form with (browser security issue)