From 67630fc9f860902bd145ee38c6706a9549db2825 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Thu, 22 Dec 2016 00:32:14 +0100 Subject: [PATCH] Vote template --- election/templates/election/vote_form.jinja | 13 +++++++++++++ election/views.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 election/templates/election/vote_form.jinja diff --git a/election/templates/election/vote_form.jinja b/election/templates/election/vote_form.jinja new file mode 100644 index 00000000..cf992b97 --- /dev/null +++ b/election/templates/election/vote_form.jinja @@ -0,0 +1,13 @@ +{% extends "core/base.jinja" %} + +{% block title %} +{% trans %}Vote{% endtrans %} +{% endblock %} + +{% block content %} +
+ {% csrf_token %} + {{ form.as_p() }} +

+
+{% endblock content %} \ No newline at end of file diff --git a/election/views.py b/election/views.py index 7acdde9b..6ebe3051 100644 --- a/election/views.py +++ b/election/views.py @@ -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']