{% extends "layout.html" %} {% block title %}{{ title }}{% endblock %} {% block content %} {{ breadcrumbs.breadcrumb_header( title=title, ) }}
{% if results['inventory']['rows'] %}
{{ tables.render_table( headers = results['inventory']['headers'], rows = results['inventory']['rows'], entry_route = 'inventory_item', title='Inventory Results', id='search-inventory' )}}
{% endif %} {% if results['users']['rows'] %}
{{ tables.render_table( headers = results['users']['headers'], rows = results['users']['rows'], entry_route = 'user', title='User Results', id='search-users' )}}
{% endif %} {% if results['worklog']['rows'] %}
{{ tables.render_table( headers = results['worklog']['headers'], rows = results['worklog']['rows'], entry_route = 'worklog_entry', title='Worklog Results', id='search-worklog' )}}
{% endif %} {% if not results['inventory']['rows'] and not results['users']['rows'] and not results['worklog']['rows'] %}
There are no results for "{{ query }}".
{% endif %}
{% endblock %} {% block script %} {% if query and (results['inventory']['rows'] or results['users']['rows'] or results['worklog']['rows']) %} const query = "{{ query|e }}"; if (query) { const instance = new Mark(document.querySelector("main")); instance.mark(query); } {% endif %} {% endblock %}