2022-11-01 18:09:46 -04:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
2022-11-01 23:55:07 -04:00
|
|
|
{% block title %}Home{% endblock %}
|
|
|
|
|
2022-11-01 18:09:46 -04:00
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<!-- page header -->
|
|
|
|
<header class="row">
|
|
|
|
<div class="columns twelve">
|
|
|
|
<h1>Welcome to Overseer!</h1>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
2022-11-03 20:29:52 -04:00
|
|
|
<section id="record-actions" class="row">
|
2022-11-14 10:54:44 -05:00
|
|
|
<div class="columns four">
|
2022-11-02 13:45:40 -04:00
|
|
|
<a href="/item/add">
|
2022-11-03 20:29:52 -04:00
|
|
|
<p><i class="fa-solid fa-plus"></i> Add Item</p>
|
2022-11-02 13:45:40 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2022-11-14 10:54:44 -05:00
|
|
|
<div class="columns four">
|
|
|
|
<a href="/license/add">
|
|
|
|
<p><i class="fa-solid fa-plus"></i> Add License</p>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="columns four">
|
2022-11-02 13:45:40 -04:00
|
|
|
<a href="/item/search">
|
2022-11-03 20:29:52 -04:00
|
|
|
<p><i class="fa-solid fa-search"></i> Search</p>
|
2022-11-02 13:45:40 -04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2022-11-03 20:29:52 -04:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
<section class="row">
|
2022-11-09 14:33:58 -05:00
|
|
|
<div class="columns twelve">
|
2022-11-06 01:37:56 -05:00
|
|
|
<h3>Recently updated hardware:</h3>
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Manufacturer</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Updated at</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in inventory %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="/item/{{ item.id }}">{{ item.name }}</a></td>
|
|
|
|
<td>{{ item.manufacturer }}</td>
|
|
|
|
<td>{{ item.type }}</td>
|
|
|
|
<td>{{ item.updatedAt | date("m/d/Y h:i:s A") }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-11-03 20:29:52 -04:00
|
|
|
</div>
|
2022-11-09 14:33:58 -05:00
|
|
|
</section>
|
2022-11-03 20:29:52 -04:00
|
|
|
|
2022-11-09 14:33:58 -05:00
|
|
|
<section class="row">
|
|
|
|
<div class="columns twelve">
|
2022-11-06 01:37:56 -05:00
|
|
|
<h3>Recently updated licenses:</h3>
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
2022-11-02 14:29:46 -04:00
|
|
|
<tr>
|
2022-11-06 01:37:56 -05:00
|
|
|
<th>Name</th>
|
|
|
|
<th>Manufacturer</th>
|
|
|
|
<th>Updated at</th>
|
2022-11-02 14:29:46 -04:00
|
|
|
</tr>
|
2022-11-06 01:37:56 -05:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for license in licenses %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="/license/{{ license.id }}">{{ license.name }}</a></td>
|
|
|
|
<td>{{ license.manufacturer }}</td>
|
|
|
|
<td>{{ license.updatedAt | date("m/d/Y h:i:s A") }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2022-11-02 14:29:46 -04:00
|
|
|
</section>
|
|
|
|
|
2024-05-24 12:35:01 -04:00
|
|
|
<section class="row">
|
|
|
|
<div class="columns twelve">
|
2024-05-24 12:47:57 -04:00
|
|
|
<form id="filter-form" class="u-full-width" action="/" method="GET">
|
2024-05-24 12:35:01 -04:00
|
|
|
<select id="filter-limit" name="limit">
|
2024-05-24 12:47:57 -04:00
|
|
|
<option {% if filters['limit'] == 5 %}selected{% endif %} value="5">5</option>
|
|
|
|
<option {% if filters['limit'] == 10 %}selected{% endif %} value="10">10</option>
|
|
|
|
<option {% if filters['limit'] == 20 %}selected{% endif %} value="20">20</option>
|
|
|
|
<option {% if filters['limit'] == 35 %}selected{% endif %} value="35">35</option>
|
|
|
|
<option {% if filters['limit'] == 50 %}selected{% endif %} value="50">50</option>
|
2024-05-24 12:35:01 -04:00
|
|
|
</select>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2022-11-01 18:09:46 -04:00
|
|
|
{% endblock %}
|