1
0
espelhamento de https://github.com/ae-utbm/sith.git sincronizado 2026-04-15 07:48:20 +00:00

Vote template

Esse commit está contido em:
2016-12-22 00:32:14 +01:00
commit 67630fc9f8
2 arquivos alterados com 14 adições e 1 exclusões

Ver Arquivo

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

Ver Arquivo

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