Fait marcher la recherche rapide

This commit is contained in:
Tom Hubrecht 2020-11-11 22:51:26 +01:00
parent ce839efabc
commit 7ce25c7dd7
2 changed files with 3 additions and 2 deletions

View file

@ -22,7 +22,8 @@
<a class="language english {% if get_current_language == "en" %}current-language{% endif %}" href="/en{{ request.get_full_path|slice:'3:' }}">English</a>
</div>
<form id="search-area" action='{% url "home" %}'>
<form id="search-area" method="post" action='{% url "home" %}'>
{% csrf_token %}
<input id="id_name" name="name" type="search" placeholder="Recherche Rapide">
<button type="submit">{% trans "Rechercher" %}</button>
</form>

View file

@ -6,7 +6,7 @@
<div class="content" id="content-home">
<h2>{% trans "Chercher quelqu'un·e dans l'annuaire" %}</h2>
<form method='post' action="">
<form method="post" action="">
{% csrf_token %}
<label for="id_name">{% trans "Nom/Surnom :" %}</label>
{{ form.name }}