1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 17:02:22 +00:00
plateforme-corres2math/corres2math/templates/search/search.html

29 lines
804 B
HTML
Raw Normal View History

{% extends 'base.html' %}
2020-10-15 14:03:08 +00:00
2020-10-15 18:39:34 +00:00
{% load crispy_forms_filters highlight i18n search_results_tables django_tables2 %}
{% block content %}
2020-10-15 14:03:08 +00:00
<h2>{% trans "Search" %}</h2>
<form>
{% csrf_token %}
{{ form|crispy }}
<button type="submit" class="btn btn-primary">{% trans "Search" %}</button>
</form>
<hr>
<h3>{% trans "Results" %}</h3>
2020-10-15 14:03:08 +00:00
<div id="search-results">
{% regroup object_list by model_name as categories %}
2020-10-15 17:50:12 +00:00
{% for category in categories %}
<h4>{% trans category.grouper|capfirst %}</h4>
2020-10-15 18:39:34 +00:00
{% with table=category.list|search_table %}
{% render_table table %}
{% endwith %}
2020-10-15 14:03:08 +00:00
{% empty %}
<p>{% trans "No results found." %}</p>
2020-10-15 14:03:08 +00:00
{% endfor %}
</div>
{% endblock %}