{% extends '_base.html' %} {% load helpers %} {% load form_helpers %} {% load render_table from django_tables2 %} {% block title %}Search{% endblock %} {% block content %} {% include "includes/search_bar.html" %} {% if request.GET.q %} {% if results %}
{% for obj_type in results %}
{{ obj_type.name|title_with_uppers }}
{% render_table obj_type.table 'includes/table.html' %} {% if not forloop.last %}
{% endif %} {% endfor %}
Search Results
{% else %}

No results found

{% endif %} {% else %}
Search
{% render_form form %}
{% endif %} {% endblock content %}