summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/static/chimere/css/styles.css5
-rw-r--r--chimere/templates/chimere/edit.html6
2 files changed, 9 insertions, 2 deletions
diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css
index 28ced33..22138ae 100644
--- a/chimere/static/chimere/css/styles.css
+++ b/chimere/static/chimere/css/styles.css
@@ -735,6 +735,11 @@ p.warning{
padding:0.5em;
}
+p.submit{
+ border-top-width:1px;
+ text-align:center;
+}
+
#no-js-message{
z-index:5000;
text-align:center;
diff --git a/chimere/templates/chimere/edit.html b/chimere/templates/chimere/edit.html
index d4e07c3..9969ed5 100644
--- a/chimere/templates/chimere/edit.html
+++ b/chimere/templates/chimere/edit.html
@@ -26,6 +26,7 @@
<fieldset class='edit'>
<legend>{% if is_modification %}{% trans "Modify a point of interest" %}{% else %}{% trans "Add a point of interest" %}{% endif %}</legend>
<form enctype="multipart/form-data" method='post' action='.'>
+ <p class='submit'><input type='submit' onclick='saveExtent();displayProgress();' value="{% if can_write%}{% trans 'Add/modify'%}{%else%}{% trans 'Propose'%}{%endif%}"/></p>
{% csrf_token %}
<div class='rightWrapper'>
<div class='rightform'>
@@ -112,6 +113,7 @@
</script>
{% endif %}
</div>
+ {% if not is_authenticated %}
<div class='personalform'>
<h3>{% trans "Personal information"%}</h3>
<div class='warning'>
@@ -132,7 +134,7 @@
{% if form.submiter_comment.errors %}<div class='errors'>{{ form.submiter_comment.errors }}</div>{% endif %}
{{ form.submiter_comment }}
</div>
- </div>
+ </div>{% endif %}
<div id='upload_in_progress'>
<p>{% trans "Upload in progress. Please wait..." %}</p>
<p><img alt='Ajax loader' src='{{STATIC_URL}}chimere/img/ajax-loader.gif'/></p>
@@ -152,7 +154,7 @@
return true;
}
</script>
- <p><input type='submit' onclick='saveExtent();displayProgress();' value="{% trans 'Propose'%}"/></p>
+ <p class='submit'><input type='submit' onclick='saveExtent();displayProgress();' value="{% if can_write%}{% trans 'Add/modify'%}{%else%}{% trans 'Propose'%}{%endif%}"/></p>
</form>
</fieldset>
</div>