Update
This commit is contained in:
parent
fe8152ab09
commit
bd154509fc
2 changed files with 15 additions and 5 deletions
|
@ -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"}
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<hr>
|
||||
|
||||
{% 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="level">
|
||||
<div class="level-left is-flex-shrink-1">
|
||||
|
@ -88,7 +88,9 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if not forloop.last %}
|
||||
<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue