This commit is contained in:
Tom Hubrecht 2021-06-15 11:56:16 +02:00
parent fe8152ab09
commit bd154509fc
2 changed files with 15 additions and 5 deletions

View file

@ -44,10 +44,18 @@ class ElectionForm(forms.ModelForm):
*Election.vote_restrictions.fields, *Election.vote_restrictions.fields,
] ]
widgets = { widgets = {
"description_en": forms.Textarea(attrs={"rows": 4}), "description_en": forms.Textarea(
"description_fr": forms.Textarea(attrs={"rows": 4}), attrs={"rows": 4, "class": "is-family-monospace"}
"vote_restrictions_en": forms.Textarea(attrs={"rows": 4}), ),
"vote_restrictions_fr": forms.Textarea(attrs={"rows": 4}), "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"}
),
} }

View file

@ -27,7 +27,7 @@
<hr> <hr>
{% for e in election_list %} {% for e in election_list %}
<div class="panel is-primary"> <div class="panel is-primary is-radiusless">
<div class="panel-heading is-size-6 is-radiusless"> <div class="panel-heading is-size-6 is-radiusless">
<div class="level"> <div class="level">
<div class="level-left is-flex-shrink-1"> <div class="level-left is-flex-shrink-1">
@ -88,7 +88,9 @@
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% if not forloop.last %}
<br> <br>
{% endif %}
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}