diff --git a/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html b/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html index 6a1fb995d..1f6c0128d 100644 --- a/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html +++ b/lacommunaute/templates/forum_conversation/partials/post_feed_form_collapsable.html @@ -25,7 +25,7 @@ {% endfor %} {% endif %} - {% include "partials/form_field.html" with field=post_form.content %} + {% include "partials/form_field.html" with field=post_form.content id=topic.pk %} {% if post_form.username %} {% include "partials/form_field.html" with field=post_form.username %} {% endif %} diff --git a/lacommunaute/templates/partials/form_field.html b/lacommunaute/templates/partials/form_field.html index 3af6fc978..d5b19d05f 100644 --- a/lacommunaute/templates/partials/form_field.html +++ b/lacommunaute/templates/partials/form_field.html @@ -18,6 +18,10 @@ {% if field.help_text %}{{ field.help_text }}{% endif %} {% for error in field.errors %}{{ error }}{% endfor %} {% if field.auto_id == 'id_content' %} - {% include "partials/form_field_mentions.html" %} + {% if id %} + {% include "partials/form_field_mentions.html" with id=id%} + {% else %} + {% include "partials/form_field_mentions.html" %} + {% endif %} {% endif %} diff --git a/lacommunaute/templates/partials/form_field_mentions.html b/lacommunaute/templates/partials/form_field_mentions.html index 8b8942caa..4a7a65379 100644 --- a/lacommunaute/templates/partials/form_field_mentions.html +++ b/lacommunaute/templates/partials/form_field_mentions.html @@ -9,7 +9,7 @@ sur les champs libres -
Nous vous demandons de ne pas nous transmettre d’informations sensibles. Notamment, ne communiquez pas vos opinions philosophiques, syndicales, politiques ou sur votre vie sexuelle. Ces données sont trop personnelles !