Can now add candidature

This commit is contained in:
2016-12-20 23:08:47 +01:00
parent 51bb6c8472
commit 03754aba8a
3 changed files with 81 additions and 2 deletions

View File

@ -54,7 +54,9 @@
{% endfor %}
</table>
{% endif %}
<form>{{candidate_form}}</form>
<form action="{{url('election:candidate', election_id=object.id)}}" method="post">{{candidate_form}}
{% csrf_token %}
</form>
{% if object.is_candidature_active -%}
candidature
{% endif -%}