1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-07-17 15:29:25 +00:00

Vote template

This commit is contained in:
2016-12-22 00:32:14 +01:00
parent 9dbff0cd50
commit 67630fc9f8
2 changed files with 14 additions and 1 deletions
election
templates
views.py

@ -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
"""
form_class = VoteForm
template_name = 'core/page_prop.jinja'
template_name = 'election/vote_form.jinja'
def dispatch(self, request, *arg, **kwargs):
self.election_id = kwargs['election_id']