2019-01-08 23:40:19 +00:00
|
|
|
{% extends 'search/sidebar.html' %}
|
2017-01-15 23:07:42 +00:00
|
|
|
{% comment %}
|
|
|
|
Re2o est un logiciel d'administration développé initiallement au rezometz. Il
|
|
|
|
se veut agnostique au réseau considéré, de manière à être installable en
|
|
|
|
quelques clics.
|
|
|
|
|
|
|
|
Copyright © 2017 Gabriel Détraz
|
2019-09-29 14:02:28 +00:00
|
|
|
Copyright © 2017 Lara Kermarec
|
2017-01-15 23:07:42 +00:00
|
|
|
Copyright © 2017 Augustin Lemesle
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
{% endcomment %}
|
|
|
|
|
2016-07-02 22:27:22 +00:00
|
|
|
{% load bootstrap3 %}
|
2018-08-05 16:48:45 +00:00
|
|
|
{% load i18n %}
|
2016-07-02 22:27:22 +00:00
|
|
|
|
2018-08-05 16:48:45 +00:00
|
|
|
{% block title %}{% trans "Search results" %}{% endblock %}
|
2016-07-02 22:27:22 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if users %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="users_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among users:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=users page_arg='users_page' go_to_id='users_results' %}
|
|
|
|
{% include 'users/aff_users.html' with users_list=users.object_list %}
|
|
|
|
</div>
|
2016-07-02 22:27:22 +00:00
|
|
|
{% endif%}
|
2018-03-18 00:50:51 +00:00
|
|
|
{% if clubs %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="clubs_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among clubs:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=clubs page_arg='clubs_page' go_to_id='clubs_results' %}
|
|
|
|
{% include 'users/aff_clubs.html' with clubs_list=clubs.object_list %}
|
|
|
|
</div>
|
2018-03-18 00:50:51 +00:00
|
|
|
{% endif%}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if machines %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="machines_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among machines:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=machines page_arg='machines_page' go_to_id='machines_results' %}
|
|
|
|
{% include 'machines/aff_machines.html' with machines_list=machines.object_list %}
|
|
|
|
</div>
|
2016-07-02 22:27:22 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if factures %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="invoices_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among invoices:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=factures page_arg='factures_page' go_to_id='invoices_results' %}
|
|
|
|
{% include 'cotisations/aff_cotisations.html' with facture_list=factures.object_list %}
|
|
|
|
</div>
|
2016-07-02 22:27:22 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if whitelists %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="whitelists_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among whitelists:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=whitelists page_arg='whitelists_page' go_to_id='whitelists_results' %}
|
|
|
|
{% include 'users/aff_whitelists.html' with white_list=whitelists.object_list %}
|
|
|
|
</div>
|
2016-07-04 21:56:51 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if bans %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="bans_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among bans:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=bans page_arg='bans_page' go_to_id='bans_results' %}
|
|
|
|
{% include 'users/aff_bans.html' with ban_list=bans.object_list %}
|
|
|
|
</div>
|
2016-07-02 22:27:22 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if rooms %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="rooms_results">
|
2018-08-05 16:48:45 +00:00
|
|
|
<h2>{% trans "Results among rooms:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=rooms page_arg='rooms_page' go_to_id='rooms_results' %}
|
|
|
|
{% include 'topologie/aff_chambres.html' with room_list=rooms.object_list %}
|
2017-11-02 16:06:44 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if ports %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="ports_results">
|
2019-01-08 23:40:19 +00:00
|
|
|
<h2>{% trans "Results among ports:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=ports page_arg='ports_page' go_to_id='ports_results' %}
|
|
|
|
{% include 'topologie/aff_port.html' with port_list=ports.object_list search=True %}
|
|
|
|
</div>
|
2017-11-02 15:09:24 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if switches %}
|
2019-12-06 00:01:13 +00:00
|
|
|
<div id="switches_results">
|
2019-01-08 23:40:19 +00:00
|
|
|
<h2>{% trans "Results among switches:" %}</h2>
|
2019-12-06 00:01:13 +00:00
|
|
|
{% include 'pagination.html' with list=switches page_arg='switches_page' go_to_id='switches_results' %}
|
|
|
|
{% include 'topologie/aff_switch.html' with switch_list=switches.object_list %}
|
|
|
|
</div>
|
2016-07-06 21:53:44 +00:00
|
|
|
{% endif %}
|
2017-11-07 00:46:45 +00:00
|
|
|
{% if not users and not machines and not factures and not whitelists and not bans and not rooms and not ports and not switches %}
|
2018-08-05 16:48:45 +00:00
|
|
|
<h3>{% trans "No result" %}</h3>
|
2017-11-02 15:09:24 +00:00
|
|
|
{% else %}
|
2019-11-16 14:12:54 +00:00
|
|
|
<h6>{% blocktrans %}Only the first {{ max_result }} results are displayed in each category.{% endblocktrans %}</h6>
|
2016-07-02 23:37:58 +00:00
|
|
|
{% endif %}
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<br />
|
2016-07-02 22:27:22 +00:00
|
|
|
{% endblock %}
|