Sith/election/templates/election/candidate_form.jinja

16 lines
525 B
Plaintext
Raw Normal View History

2016-12-21 23:32:14 +00:00
{% extends "core/base.jinja" %}
{% block title %}
2016-12-23 22:49:00 +00:00
{% trans %}Candidate{% endtrans %}
2016-12-21 23:32:14 +00:00
{% endblock %}
{% block content %}
2016-12-24 01:16:21 +00:00
{%- if election.can_candidate(user) or user.can_edit(election) %}
<section class="election__add-candidature">
<form action="{{url('election:candidate', election_id=election.id)}}" method="post">{{form.as_p()}}
<p><input type="submit" value="{% trans %}Candidate{% endtrans %}" /></p>
{% csrf_token %}
</form>
</section>
{%- endif %}
2016-12-21 23:32:14 +00:00
{% endblock content %}