diff --git a/elections/forms.py b/elections/forms.py index bb04956..363dfbd 100644 --- a/elections/forms.py +++ b/elections/forms.py @@ -24,6 +24,10 @@ class ElectionForm(forms.ModelForm): fields = ["name", "description", "restricted", "start_date", "end_date"] +class UploadVotersForm(forms.Form): + csv_file = forms.FileField(label=_("Sélectionnez un fichier .csv")) + + class QuestionForm(forms.ModelForm): class Meta: model = Question diff --git a/elections/templates/elections/election_admin.html b/elections/templates/elections/election_admin.html index d5d668a..27554fd 100644 --- a/elections/templates/elections/election_admin.html +++ b/elections/templates/elections/election_admin.html @@ -22,9 +22,9 @@