diff --git a/elections/forms.py b/elections/forms.py index abcb364..df19573 100644 --- a/elections/forms.py +++ b/elections/forms.py @@ -44,10 +44,18 @@ class ElectionForm(forms.ModelForm): *Election.vote_restrictions.fields, ] widgets = { - "description_en": forms.Textarea(attrs={"rows": 4}), - "description_fr": forms.Textarea(attrs={"rows": 4}), - "vote_restrictions_en": forms.Textarea(attrs={"rows": 4}), - "vote_restrictions_fr": forms.Textarea(attrs={"rows": 4}), + "description_en": forms.Textarea( + attrs={"rows": 4, "class": "is-family-monospace"} + ), + "description_fr": forms.Textarea( + attrs={"rows": 4, "class": "is-family-monospace"} + ), + "vote_restrictions_en": forms.Textarea( + attrs={"rows": 4, "class": "is-family-monospace"} + ), + "vote_restrictions_fr": forms.Textarea( + attrs={"rows": 4, "class": "is-family-monospace"} + ), } diff --git a/elections/templates/elections/election_list.html b/elections/templates/elections/election_list.html index 7b37e69..919b696 100644 --- a/elections/templates/elections/election_list.html +++ b/elections/templates/elections/election_list.html @@ -27,7 +27,7 @@
{% for e in election_list %} -
+
@@ -88,7 +88,9 @@
{% endif %}
+{% if not forloop.last %}
+{% endif %} {% endfor %} {% endblock %}