Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: multiple select widget not displaying correctly #1660

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lemarche/templates/auth/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ <h2>Création du mot de passe</h2>
}));
});
</script>
<script type="text/javascript" src="{% static 'vendor/[email protected]'%}" defer></script>
<script type="text/javascript" src="{% static 'js/multiselect.js' %}"></script>
{% endblock extra_js %}

{% block extra_css %}
Expand Down
2 changes: 2 additions & 0 deletions lemarche/www/auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from lemarche.utils.constants import EMPTY_CHOICE, HOW_MANY_CHOICES
from lemarche.utils.fields import GroupedModelMultipleChoiceField
from lemarche.utils.password_validation import CnilCompositionPasswordValidator
from lemarche.utils.widgets import CustomSelectMultiple


class SignupForm(UserCreationForm, DsfrBaseForm):
Expand Down Expand Up @@ -60,6 +61,7 @@ class SignupForm(UserCreationForm, DsfrBaseForm):
choices_groupby="group",
to_field_name="slug",
required=False,
widget=CustomSelectMultiple(),
)

nb_of_inclusive_provider_last_year = forms.ChoiceField(
Expand Down