Unify post in forms templates

This commit is contained in:
Tom Hubrecht 2020-12-20 09:43:17 +01:00
parent f8bc0c209d
commit 5f1fed991b
2 changed files with 3 additions and 3 deletions

View file

@ -132,7 +132,7 @@
{# Rajout d'une option #} {# Rajout d'une option #}
{% if election.start_date > current_time %} {% if election.start_date > current_time %}
<form action="{% url 'election.add-option' q.pk %}" method="POST"> <form action="{% url 'election.add-option' q.pk %}" method="post">
<div class="panel-block field has-addons"> <div class="panel-block field has-addons">
{% csrf_token %} {% csrf_token %}
@ -155,7 +155,7 @@
{% if election.start_date > current_time %} {% if election.start_date > current_time %}
<div class="columns is-centered" id="q_add"> <div class="columns is-centered" id="q_add">
<div class="column is-two-thirds"> <div class="column is-two-thirds">
<form action="{% url 'election.add-question' election.pk %}" method="POST"> <form action="{% url 'election.add-question' election.pk %}" method="post">
{% csrf_token %} {% csrf_token %}
<div class="field has-addons"> <div class="field has-addons">

View file

@ -13,7 +13,7 @@
<h1 class="title">{% trans "Modification d'une option" %}</h1> <h1 class="title">{% trans "Modification d'une option" %}</h1>
<hr> <hr>
<form action="" method="POST"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
{% include "elections/forms/form.html" with errors=False %} {% include "elections/forms/form.html" with errors=False %}