8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Make search-results pagination more coherent with rest of pagination style

This commit is contained in:
Jean-Romain Garnier 2019-12-06 00:15:06 +00:00 committed by root
parent 83a6dea5c9
commit 83123d9dc1

View file

@ -34,62 +34,90 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<h2>{% trans "Results among users:" %}</h2> <h2>{% trans "Results among users:" %}</h2>
{% include 'pagination.html' with list=users page_arg='users_page' go_to_id='users_results' %} {% 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 %} {% include 'users/aff_users.html' with users_list=users.object_list %}
{% include 'pagination.html' with list=users page_arg='users_page' go_to_id='users_results' %}
</div> </div>
<hr/>
<br/>
{% endif%} {% endif%}
{% if clubs %} {% if clubs %}
<div id="clubs_results"> <div id="clubs_results">
<h2>{% trans "Results among clubs:" %}</h2> <h2>{% trans "Results among clubs:" %}</h2>
{% include 'pagination.html' with list=clubs page_arg='clubs_page' go_to_id='clubs_results' %} {% 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 %} {% include 'users/aff_clubs.html' with clubs_list=clubs.object_list %}
{% include 'pagination.html' with list=clubs page_arg='clubs_page' go_to_id='clubs_results' %}
</div> </div>
<hr/>
<br/>
{% endif%} {% endif%}
{% if machines %} {% if machines %}
<div id="machines_results"> <div id="machines_results">
<h2>{% trans "Results among machines:" %}</h2> <h2>{% trans "Results among machines:" %}</h2>
{% include 'pagination.html' with list=machines page_arg='machines_page' go_to_id='machines_results' %} {% 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 %} {% include 'machines/aff_machines.html' with machines_list=machines.object_list %}
{% include 'pagination.html' with list=machines page_arg='machines_page' go_to_id='machines_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if factures %} {% if factures %}
<div id="invoices_results"> <div id="invoices_results">
<h2>{% trans "Results among invoices:" %}</h2> <h2>{% trans "Results among invoices:" %}</h2>
{% include 'pagination.html' with list=factures page_arg='factures_page' go_to_id='invoices_results' %} {% 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 %} {% include 'cotisations/aff_cotisations.html' with facture_list=factures.object_list %}
{% include 'pagination.html' with list=factures page_arg='factures_page' go_to_id='invoices_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if whitelists %} {% if whitelists %}
<div id="whitelists_results"> <div id="whitelists_results">
<h2>{% trans "Results among whitelists:" %}</h2> <h2>{% trans "Results among whitelists:" %}</h2>
{% include 'pagination.html' with list=whitelists page_arg='whitelists_page' go_to_id='whitelists_results' %} {% 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 %} {% include 'users/aff_whitelists.html' with white_list=whitelists.object_list %}
{% include 'pagination.html' with list=whitelists page_arg='whitelists_page' go_to_id='whitelists_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if bans %} {% if bans %}
<div id="bans_results"> <div id="bans_results">
<h2>{% trans "Results among bans:" %}</h2> <h2>{% trans "Results among bans:" %}</h2>
{% include 'pagination.html' with list=bans page_arg='bans_page' go_to_id='bans_results' %} {% 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 %} {% include 'users/aff_bans.html' with ban_list=bans.object_list %}
{% include 'pagination.html' with list=bans page_arg='bans_page' go_to_id='bans_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if rooms %} {% if rooms %}
<div id="rooms_results"> <div id="rooms_results">
<h2>{% trans "Results among rooms:" %}</h2> <h2>{% trans "Results among rooms:" %}</h2>
{% include 'pagination.html' with list=rooms page_arg='rooms_page' go_to_id='rooms_results' %} {% 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 %} {% include 'topologie/aff_chambres.html' with room_list=rooms.object_list %}
{% include 'pagination.html' with list=rooms page_arg='rooms_page' go_to_id='rooms_results' %}
</div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if ports %} {% if ports %}
<div id="ports_results"> <div id="ports_results">
<h2>{% trans "Results among ports:" %}</h2> <h2>{% trans "Results among ports:" %}</h2>
{% include 'pagination.html' with list=ports page_arg='ports_page' go_to_id='ports_results' %} {% 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 %} {% include 'topologie/aff_port.html' with port_list=ports.object_list search=True %}
{% include 'pagination.html' with list=ports page_arg='ports_page' go_to_id='ports_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% endif %}
{% if switches %} {% if switches %}
<div id="switches_results"> <div id="switches_results">
<h2>{% trans "Results among switches:" %}</h2> <h2>{% trans "Results among switches:" %}</h2>
{% include 'pagination.html' with list=switches page_arg='switches_page' go_to_id='switches_results' %} {% 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 %} {% include 'topologie/aff_switch.html' with switch_list=switches.object_list %}
{% include 'pagination.html' with list=switches page_arg='switches_page' go_to_id='switches_results' %}
</div> </div>
<hr/>
<br/>
{% endif %} {% 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 %} {% if not users and not machines and not factures and not whitelists and not bans and not rooms and not ports and not switches %}
<h3>{% trans "No result" %}</h3> <h3>{% trans "No result" %}</h3>