44 lines
No EOL
1.7 KiB
HTML
44 lines
No EOL
1.7 KiB
HTML
<!-- templates/inventory_index.html -->
|
|
{% extends "layout.html" %}
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ breadcrumbs.breadcrumb_header(
|
|
title=title
|
|
) }}
|
|
|
|
<div class="container">
|
|
{% if not category %}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2 class="display-6 text-center">Find</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row text-center">
|
|
{{ links.category_link(endpoint = 'search', label = 'Search', icon_html = icons.search, arguments={'category': 'inventory'}) }}
|
|
{{ links.category_link(endpoint = 'list_inventory', label = "List", icon_html = icons.table) }}
|
|
</div>
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2 class="display-6 text-center mt-5">Browse</h2>
|
|
</div>
|
|
</div>
|
|
<div class="row text-center">
|
|
{{ links.category_link(endpoint = 'inventory_index', label = "By User", icon_html = icons.user, arguments = {'category': 'user'}) }}
|
|
{{ links.category_link(endpoint = 'inventory_index', label = 'By Location', icon_html = icons.map, arguments = {'category': 'location'}) }}
|
|
{{ links.category_link(endpoint = 'inventory_index', label = 'By Type', icon_html = icons.motherboard, arguments = {'category': 'type'}) }}
|
|
</div>
|
|
{% else %}
|
|
<div class="container">
|
|
{% for line in listing %}
|
|
<div class="row my-3">
|
|
{% for id, name in line %}
|
|
{{ links.category_link(endpoint = 'list_inventory', label = name, arguments = {'filter_by': category, 'id': id}) }}
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %} |