Template tweaks
This commit is contained in:
parent
c7e5d9ad6e
commit
c70fcefa86
5 changed files with 85 additions and 63 deletions
|
@ -51,12 +51,14 @@ class QuestionForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Question
|
model = Question
|
||||||
fields = ["text"]
|
fields = ["text"]
|
||||||
|
widgets = {"text": forms.TextInput}
|
||||||
|
|
||||||
|
|
||||||
class OptionForm(forms.ModelForm):
|
class OptionForm(forms.ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Option
|
model = Option
|
||||||
fields = ["text"]
|
fields = ["text"]
|
||||||
|
widgets = {"text": forms.TextInput}
|
||||||
|
|
||||||
|
|
||||||
class VoteForm(forms.ModelForm):
|
class VoteForm(forms.ModelForm):
|
||||||
|
|
|
@ -31,7 +31,9 @@
|
||||||
<h1 class="title">{% trans "Modification d'une élection" %}</h1>
|
<h1 class="title">{% trans "Modification d'une élection" %}</h1>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<form action="" method="post">
|
<div class="columns is-centered">
|
||||||
|
<div class="column is-two-thirds">
|
||||||
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{% include "forms/form.html" with errors=False %}
|
{% include "forms/form.html" with errors=False %}
|
||||||
|
@ -54,6 +56,8 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
8
elections/templates/elections/election_voters.html
Normal file
8
elections/templates/elections/election_voters.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
|
@ -13,7 +13,9 @@
|
||||||
<h1 class="title">{% trans "Modification d'une option" %}</h1>
|
<h1 class="title">{% trans "Modification d'une option" %}</h1>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<form action="" method="post">
|
<div class="columns is-centered">
|
||||||
|
<div class="column is-two-thirds">
|
||||||
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{% include "forms/form.html" with errors=False %}
|
{% include "forms/form.html" with errors=False %}
|
||||||
|
@ -36,6 +38,8 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
<h1 class="title">{% trans "Modification d'une question" %}</h1>
|
<h1 class="title">{% trans "Modification d'une question" %}</h1>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<form action="" method="post">
|
<div class="columns is-centered">
|
||||||
|
<div class="column is-two-thirds">
|
||||||
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
{% include "forms/form.html" with errors=False %}
|
{% include "forms/form.html" with errors=False %}
|
||||||
|
@ -36,6 +38,8 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue