forked from DGNum/gestioCOF
Merge branch 'kerl/kfet_autocomplete_fix' into 'master'
Remets le lien pour inscrire des nouveaux comptes en K-Fêt sur la page d'autocomplétion See merge request klub-dev-ens/gestioCOF!456
This commit is contained in:
commit
0590bc3aab
3 changed files with 24 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
21
kfet/templates/kfet/search_results.html
Normal file
21
kfet/templates/kfet/search_results.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% extends "shared/search_results.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block extra_section %}
|
||||
<li class="autocomplete-header">
|
||||
{% if not results %}
|
||||
<span class="autocomplete-item">
|
||||
{% trans "Aucune correspondance trouvée" %}
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="autocomplete-item">
|
||||
{% trans "Pas dans la liste ?" %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
<li class="autocomplete-new">
|
||||
<a class="autocomplete-item" href="{% url "kfet.account.create.empty" %}">
|
||||
{% trans "Créer un compte" %}
|
||||
</a>
|
||||
</li>
|
||||
{% endblock %}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue