Skip to content

Commit

Permalink
feat(forum_conversation): mentions d'informations
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Sep 6, 2023
1 parent d366c19 commit 23cf5e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lacommunaute/templates/partials/form_field.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@
{% endif %}
{% if field.help_text %}<small class="form-text text-muted">{{ field.help_text }}</small>{% endif %}
{% for error in field.errors %}<span class="text-danger error">{{ error }}</span>{% endfor %}
{% if field.auto_id == 'id_content' %}
{% include "partials/form_field_mentions.html" %}
{% endif %}
</div>
18 changes: 18 additions & 0 deletions lacommunaute/templates/partials/form_field_mentions.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<small class="form-text text-muted">
<a data-toggle="collapse"
href="#collapseMentionsHelp"
role="button"
aria-expanded="false"
aria-controls="collapseMentionsHelp">
mention d'informations
</a>
sur les champs libres
</small>

<div class="collapse" id="collapseMentionsHelp">
<div class="mb-3">
<p>
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 !
</p>
</div>
</div>

0 comments on commit 23cf5e9

Please sign in to comment.