Merge branch 'thubrecht/formulaire' into 'master'

Fait marcher la recherche rapide

See merge request klub-dev-ens/annuaire!10
This commit is contained in:
Martin Pepin 2020-11-11 22:54:05 +01:00
commit a73496cd67
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 }}