forked from DGNum/gestioCOF
56 lines
1.6 KiB
HTML
56 lines
1.6 KiB
HTML
{% load utils %}
|
|
|
|
<ul>
|
|
{% if members %}
|
|
<li class="autocomplete-header">Membres</li>
|
|
{% for user in members %}
|
|
{% if forloop.counter < 5 %}
|
|
<li class="autocomplete-value">
|
|
<a href="{% url "user-registration" user.username %}">
|
|
{{ user|highlight_user:q }}
|
|
</a>
|
|
</li>
|
|
{% elif forloop.counter == 5 %}
|
|
<li class="autocomplete-more">...</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if others %}
|
|
<li class="autocomplete-header">Non-membres</li>
|
|
{% for user in others %}
|
|
{% if forloop.counter < 5 %}
|
|
<li class="autocomplete-value">
|
|
<a href="{% url "user-registration" user.username %}">
|
|
{{ user|highlight_user:q }}
|
|
</a>
|
|
</li>
|
|
{% elif forloop.counter == 5 %}
|
|
<li class="autocomplete-more">...</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if clippers %}
|
|
<li class="autocomplete-header">Utilisateurs <tt>clipper</tt></li>
|
|
{% for clipper in clippers %}
|
|
{% if forloop.counter < 5 %}
|
|
<li class="autocomplete-value">
|
|
<a href="{% url "clipper-registration" clipper.clipper clipper.fullname %}">
|
|
{{ clipper|highlight_clipper:q }}
|
|
</a>
|
|
</li>
|
|
{% elif forloop.counter == 5 %}
|
|
<li class="autocomplete-more">...</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if total %}
|
|
<li class="autocomplete-header">Pas dans la liste ?</li>
|
|
{% else %}
|
|
<li class="autocomplete-header">Aucune correspondance trouvée</li>
|
|
{% endif %}
|
|
|
|
<li><a href="{% url "empty-registration" %}">Créer un compte</a></li>
|
|
</ul>
|