diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e85917a..35757b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ adhérents ni des cotisations. ### GestioBDS - Ajout d'un bouton pour supprimer un compte +- Le nombre d'adhérent⋅es est affiché sur la page d'accueil ### Site du COF diff --git a/bds/migrations/0006_bdsprofile_comments.py b/bds/migrations/0006_bdsprofile_comments.py new file mode 100644 index 00000000..7950955f --- /dev/null +++ b/bds/migrations/0006_bdsprofile_comments.py @@ -0,0 +1,23 @@ +# Generated by Django 2.2.12 on 2020-08-28 12:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bds", "0005_remove_bdsprofile_certificate_file"), + ] + + operations = [ + migrations.AddField( + model_name="bdsprofile", + name="comments", + field=models.TextField( + blank=True, + help_text="Attention : l'utilisateur·ice dispose d'un droit d'accès" + " aux données le/la concernant, dont le contenu de ce champ !", + verbose_name="commentaires", + ), + ), + ] diff --git a/bds/models.py b/bds/models.py index 1b9ca6bc..0ea46466 100644 --- a/bds/models.py +++ b/bds/models.py @@ -84,6 +84,15 @@ class BDSProfile(models.Model): _("type de cotisation"), choices=TYPE_COTIZ_CHOICES, max_length=9 ) + comments = models.TextField( + _("commentaires"), + blank=True, + help_text=_( + "Attention : l'utilisateur·ice dispose d'un droit d'accès aux données " + "le/la concernant, dont le contenu de ce champ !" + ), + ) + class Meta: verbose_name = _("Profil BDS") verbose_name_plural = _("Profils BDS") diff --git a/bds/static/bds/js/bds.js b/bds/static/bds/js/bds.js new file mode 100644 index 00000000..3c2fb49b --- /dev/null +++ b/bds/static/bds/js/bds.js @@ -0,0 +1,7 @@ +$(function () { + // Close notifications when delete button is pressed + $(".notification .delete").on("click", function () { + $(this).parent().remove(); + }); + +}); \ No newline at end of file diff --git a/bds/templates/bds/base.html b/bds/templates/bds/base.html index ac2b4875..f456f6dc 100644 --- a/bds/templates/bds/base.html +++ b/bds/templates/bds/base.html @@ -16,31 +16,35 @@ {# Javascript #} + {% block extra_head %}{% endblock extra_head %}
{% include "bds/nav.html" %} + {% block layout %} +