Changed plain form action to reversed URL.

This commit is contained in:
Jean-Baptiste Lenglet 2016-12-23 01:28:55 +01:00 committed by klmp200
parent fa9e4e5dc6
commit 1a34dcdafe

View File

@ -245,7 +245,7 @@ th {
{%- endif %} {%- endif %}
</section> </section>
<section class="election__vote"> <section class="election__vote">
<form action="/election/1/vote" method="post" class="election__vote-form" name="vote-form" id="vote-form"> <form action="{{url('election:vote', election.id)}}" method="post" class="election__vote-form" name="vote-form" id="vote-form">
{% csrf_token %} {% csrf_token %}
<table> <table>
{%- set election_lists = election.election_list.all() -%} {%- set election_lists = election.election_list.all() -%}