Reformat templates to fit with the rest of the Sith

This commit is contained in:
Skia
2016-12-26 00:10:41 +01:00
parent 61e67898e1
commit bf4d0693c6
3 changed files with 36 additions and 28 deletions

View File

@ -7,12 +7,13 @@
{% block content %}
{%- 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 action="{{ url('election:candidate', election_id=election.id) }}" method="post">
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="{% trans %}Candidate{% endtrans %}" /></p>
</form>
</section>
{%- else -%}
{% trans %}Candidature are closed for this election{% endtrans %}
{%- endif %}
{% endblock content %}
{% endblock content %}