summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-13 19:38:13 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-13 19:38:13 +0200
commit4be3aaabe5a48f00cf2a2dcc2b2c0411363211ea (patch)
tree5a94245f361a72fb051bfa2867db9011b8e42673
parentb4b568f8f9c1fb83118bbec2edac02e239a907d3 (diff)
downloadChimère - projet de référence-4be3aaabe5a48f00cf2a2dcc2b2c0411363211ea.tar.bz2
Chimère - projet de référence-4be3aaabe5a48f00cf2a2dcc2b2c0411363211ea.zip
Fix polygon edition on template
-rw-r--r--templates/chimere/detail.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html
index 91505a1..eb2b1ed 100644
--- a/templates/chimere/detail.html
+++ b/templates/chimere/detail.html
@@ -22,7 +22,7 @@
<p class='description'>{{ marker.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p>
{% endif %}
{% for property in marker.getProperties %}
- <p class='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p>
+ <p class='{{property.propertymodel.getNamedId}}'><strong>{{property.propertymodel}}</strong>{% trans ":" %} {{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</p>
{% endfor %}
{% if marker.origin %}<p class='detail_source'><strong>{% trans "Source:" %}</strong> <span>{{marker.origin}}</span></p>{% endif %}
{% if marker.license %}<p class='detail_license'><strong>{% trans "License:" %}</strong> <span>{{marker.license}}</span></p>{% endif %}
@@ -31,7 +31,7 @@
</p>{% endif %}
</div>
{% share_bar marker.name %}
- <p class='detail_amendment'><a href='{% if marker.route %}{% url chimere:editroute-item area_name_slash|default_if_none:"" marker.route.pk "" %}{%else%}{% url chimere:edit-item area_name_slash|default_if_none:"" marker.pk "" %}{%endif%}'>
+ <p class='detail_amendment'><a href='{% if marker.polygon %}{% url chimere:editpolygon-item area_name_slash|default_if_none:"" marker.pk "" %}{% else %}{% if marker.route %}{% url chimere:editroute-item area_name_slash|default_if_none:"" marker.route.pk "" %}{% else %}{% url chimere:edit-item area_name_slash|default_if_none:"" marker.pk "" %}{% endif %}{% endif %}'>
{% trans "Submit an amendment" %}
</a>
{% if moderator_emails %}