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