Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
67630fc9
Commit
67630fc9
authored
Dec 22, 2016
by
Sli
Browse files
Vote template
parent
9dbff0cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
election/templates/election/vote_form.jinja
0 → 100644
View file @
67630fc9
{%
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
%}
\ No newline at end of file
election/views.py
View file @
67630fc9
...
...
@@ -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'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment