index.html 1.59 KB
Newer Older
Dalahro's avatar
Dalahro committed
1
{% extends "search/sidebar.html" %}
Dalahro's avatar
Dalahro committed
2 3
{% load bootstrap3 %}

root's avatar
root committed
4
{% block title %}Résultats de la recherche{% endblock %}
Dalahro's avatar
Dalahro committed
5 6 7 8

{% block content %}
    {% if users_list %}
    <h2>Résultats dans les utilisateurs</h2>
root's avatar
root committed
9
        {% include "users/aff_users.html" with users_list=users_list %}
Dalahro's avatar
Dalahro committed
10
    {% endif%}
11
    {% if interfaces_list %}
Dalahro's avatar
Dalahro committed
12
    <h2>Résultats dans les machines : </h2>
13
        {% include "machines/aff_machines.html" with interfaces_list=interfaces_list %}
Dalahro's avatar
Dalahro committed
14 15 16
    {% endif %}
    {% if facture_list %}
    <h2>Résultats dans les factures : </h2>
root's avatar
root committed
17
        {% include "cotisations/aff_cotisations.html" with facture_list=facture_list %}
Dalahro's avatar
Dalahro committed
18
    {% endif %}
Dalahro's avatar
Dalahro committed
19 20 21 22
    {% if white_list %}
    <h2>Résultats dans les accès à titre gracieux : </h2>
        {% include "users/aff_whitelists.html" with white_list=white_list %}
    {% endif %}
Dalahro's avatar
Dalahro committed
23 24
    {% if ban_list %}
    <h2>Résultats dans les banissements : </h2>
root's avatar
root committed
25
        {% include "users/aff_bans.html" with ban_list=ban_list %}
Dalahro's avatar
Dalahro committed
26
    {% endif %}
Dalahro's avatar
Dalahro committed
27 28 29 30 31 32 33 34
    {% if switch_list %}
    <h2>Résultats dans les switchs : </h2>
        {% include "topologie/aff_switch.html" with switch_list=switch_list %}
    {% endif %}
    {% if port_list %}
    <h2>Résultats dans les ports : </h2>
        {% include "topologie/aff_port.html" with port_list=port_list %}
    {% endif %}
35
    {% if not ban_list and not interfaces_list and not users_list and not facture_list and not white_list and not port_list and not switch_list%}
Dalahro's avatar
Dalahro committed
36 37
        <h3>Aucun résultat</h3>
    {% endif %}
38
    <h6>(Seulement les 15 premiers résultats sont affichés dans chaque catégorie)</h6>
Dalahro's avatar
Dalahro committed
39 40 41
    <br />
    <br />
    <br />
Dalahro's avatar
Dalahro committed
42 43
{% endblock %}