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-26 22:30:13 +00:00
|
|
|
{%- if (election.can_candidate(user) and election.is_candidature_active) or (user.can_edit(election) and election.is_vote_editable) %}
|
2016-12-24 01:16:21 +00:00
|
|
|
<section class="election__add-candidature">
|
2016-12-25 23:10:41 +00:00
|
|
|
<form action="{{ url('election:candidate', election_id=election.id) }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p() }}
|
|
|
|
<p><input type="submit" value="{% trans %}Candidate{% endtrans %}" /></p>
|
2016-12-24 01:16:21 +00:00
|
|
|
</form>
|
|
|
|
</section>
|
2016-12-25 19:09:18 +00:00
|
|
|
{%- else -%}
|
|
|
|
{% trans %}Candidature are closed for this election{% endtrans %}
|
2016-12-24 01:16:21 +00:00
|
|
|
{%- endif %}
|
2016-12-25 23:10:41 +00:00
|
|
|
{% endblock content %}
|