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:
|
||||
model = Question
|
||||
fields = ["text"]
|
||||
widgets = {"text": forms.TextInput}
|
||||
|
||||
|
||||
class OptionForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Option
|
||||
fields = ["text"]
|
||||
widgets = {"text": forms.TextInput}
|
||||
|
||||
|
||||
class VoteForm(forms.ModelForm):
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
<h1 class="title">{% trans "Modification d'une élection" %}</h1>
|
||||
<hr>
|
||||
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-two-thirds">
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
|
@ -55,5 +57,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% 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,6 +13,8 @@
|
|||
<h1 class="title">{% trans "Modification d'une option" %}</h1>
|
||||
<hr>
|
||||
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-two-thirds">
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
|
@ -37,5 +39,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
<h1 class="title">{% trans "Modification d'une question" %}</h1>
|
||||
<hr>
|
||||
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-two-thirds">
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
|
@ -37,5 +39,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue