# HG changeset patch
# User durandn
# Date 1477310666 -7200
# Node ID ba23092b436a5a47458e9d4112e73042f2d2e72a
# Parent b7c007c10abe0b0dee8e2307cc515c567f95b956
added message to clarify which fields are mandatory when creating an annotation
diff -r b7c007c10abe -r ba23092b436a src/iconolab/templates/iconolab/change_annotation.html
--- a/src/iconolab/templates/iconolab/change_annotation.html Thu Oct 20 15:30:47 2016 +0200
+++ b/src/iconolab/templates/iconolab/change_annotation.html Mon Oct 24 14:04:26 2016 +0200
@@ -96,7 +96,15 @@
Erreur:
{{ form.non_field_errors | striptags }}
+ {% else %}
+ {% if not annotation %}
+
+
+ Info:
+ Un de ces trois champs doit être non-vide: titre, description ou mots-clés.
+
{% endif %}
+ {% endif %}
{% if form.errors %}
@@ -109,7 +117,7 @@
{% endif %}
{% csrf_token %}