diff --git a/apps/participation/forms.py b/apps/participation/forms.py index b75c1b8..4d5d71e 100644 --- a/apps/participation/forms.py +++ b/apps/participation/forms.py @@ -137,7 +137,9 @@ class TournamentForm(forms.ModelForm): format='%Y-%m-%d %H:%M') self.fields["syntheses_second_phase_limit"].widget = forms.DateTimeInput(attrs={'type': 'datetime-local'}, format='%Y-%m-%d %H:%M') - self.fields["organizers"].widget = forms.CheckboxSelectMultiple() + self.fields["organizers"].widget.attrs['class'] = 'selectpicker' + self.fields["organizers"].widget.attrs['data-live-search'] = 'true' + self.fields["organizers"].widget.attrs['data-live-search-normalize'] = 'true' self.fields["organizers"].queryset = VolunteerRegistration.objects.all() class Meta: diff --git a/tfjm/templates/base.html b/tfjm/templates/base.html index 2f9da33..b86c98e 100644 --- a/tfjm/templates/base.html +++ b/tfjm/templates/base.html @@ -23,11 +23,16 @@ + + {# JQuery, Bootstrap and Turbolinks JavaScript #} + + + {# Si un formulaire requiert des données supplémentaires (notamment JS), les données sont chargées #} {% if form.media %} {{ form.media }}