mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Vote template
This commit is contained in:
parent
9dbff0cd50
commit
67630fc9f8
13
election/templates/election/vote_form.jinja
Normal file
13
election/templates/election/vote_form.jinja
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{% extends "core/base.jinja" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{% trans %}Vote{% endtrans %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<form action="" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{ form.as_p() }}
|
||||||
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
||||||
|
</form>
|
||||||
|
{% endblock content %}
|
@ -152,7 +152,7 @@ class VoteFormView(CanCreateMixin, FormView):
|
|||||||
Alows users to vote
|
Alows users to vote
|
||||||
"""
|
"""
|
||||||
form_class = VoteForm
|
form_class = VoteForm
|
||||||
template_name = 'core/page_prop.jinja'
|
template_name = 'election/vote_form.jinja'
|
||||||
|
|
||||||
def dispatch(self, request, *arg, **kwargs):
|
def dispatch(self, request, *arg, **kwargs):
|
||||||
self.election_id = kwargs['election_id']
|
self.election_id = kwargs['election_id']
|
||||||
|
Loading…
Reference in New Issue
Block a user