8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-10 03:46:27 +00:00
re2o/search/templates/search/index.html

103 lines
4.4 KiB
HTML
Raw Normal View History

2019-01-08 23:40:19 +00:00
{% extends 'search/sidebar.html' %}
{% 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
Copyright © 2017 Lara Kermarec
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 %}
{% 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%}
{% 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>
{% endif%}
{% 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 %}
{% 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 %}
{% 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 %}
{% 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 %}
{% 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 %}
{% 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>
{% endif %}
{% 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 %}
{% 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>
{% 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 %}