From 3da0a613f71b0f04816d9a6f5688dcc8394ca4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 7 Sep 2020 11:32:28 +0200 Subject: [PATCH 1/2] =?UTF-8?q?K-F=C3=AAt=20autocompletion=20shows=20the?= =?UTF-8?q?=20'new=20user'=20=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/templates/kfet/search_results.html | 21 +++++++++++++++++++++ kfet/views.py | 1 + 2 files changed, 22 insertions(+) create mode 100644 kfet/templates/kfet/search_results.html diff --git a/kfet/templates/kfet/search_results.html b/kfet/templates/kfet/search_results.html new file mode 100644 index 00000000..d1ee70ac --- /dev/null +++ b/kfet/templates/kfet/search_results.html @@ -0,0 +1,21 @@ +{% extends "shared/search_results.html" %} +{% load i18n %} + +{% block extra_section %} +
  • + {% if not results %} + + {% trans "Aucune correspondance trouvée" %} + + {% else %} + + {% trans "Pas dans la liste ?" %} + + {% endif %} +
  • +
  • + + {% trans "Créer un compte" %} + +
  • +{% endblock %} diff --git a/kfet/views.py b/kfet/views.py index 0f77d6f1..3a3c8cd0 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -2596,6 +2596,7 @@ class ArticleStatSales(ScaleMixin, JSONDetailView): class AccountCreateAutocompleteView(PermissionRequiredMixin, AutocompleteView): + template_name = "kfet/search_results.html" permission_required = "kfet.is_team" search_composer = kfet_autocomplete From 3286ad09df59ab16f60dec41b5bb49f0f5c2e441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 7 Sep 2020 11:35:25 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 136eb1d3..b38c9102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,8 @@ adhérents ni des cotisations. ## Upcoming -... +- Correction de bug en K-Fêt : le lien pour créer un nouveau compte exté apparaît + à nouveau dans l'autocomplétion ## Version 0.7.1 - 05/09/2020