Vote template

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

View 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 %}

View File

@ -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']