84 lines
3.6 KiB
HTML
84 lines
3.6 KiB
HTML
{# vim: set filetype=html :#}
|
|
<!DOCTYPE html>
|
|
<!-- This file is part of inventur.
|
|
-- inventur is a simple web app using rocket to help maintain inventory data.
|
|
-- Copyright (C) 2024 Johannes Randerath
|
|
--
|
|
-- This program is free software: you can redistribute it and/or modify
|
|
-- it under the terms of the GNU Affero General Public License as published by
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU Affero General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU Affero General Public License
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
<html>
|
|
<head lang="en">
|
|
<meta name="author" content="Johannes Randerath" />
|
|
<meta charset="utf-8" />
|
|
<!-- Bootstrap css -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<!-- Bootstrap icons -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- Papaparse for csv import -->
|
|
<script src="https://unpkg.com/papaparse@latest/papaparse.min.js"></script>
|
|
<title>Inventory - {% block pagename %}{% endblock pagename %}</title>
|
|
<script type="text/javascript" src="/js/base.js"></script>
|
|
</head>
|
|
<body>
|
|
<!-- Navbar -->
|
|
<nav class='navbar navbar-expand-lg bg-body bg-body-tertiary'>
|
|
<div class='container-fluid'>
|
|
<a class='navbar-brand' href='/'>Inventory</a>
|
|
<button class='navbar-toggler' type='button' data-bs-toggle='collapse' data-bs-target='#navbarSupportedContent' aria-controls='navbarSupportedContent' aria-expanded='false' aria-label='Toggle navigation'>
|
|
<span class='navbar-toggler-icon'></span>
|
|
</button>
|
|
<div class='collapse navbar-collapse' id='navbarSupportedContent'>
|
|
<ul class='navbar-nav me-auto mb-2 mb-lg-0'>
|
|
<li class='nav-item dropdown'>
|
|
<a class='nav-link dropdown-toggle' role='button' data-bs-toggle='dropdown' aria-expanded='false'>
|
|
Choose Table
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
{% for tid in tids %}
|
|
<li class="dropdown-option"><a class="nav-link" href="/table/{{ tid }}">{{ tnames[loop.index0] }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" role="button" data-bs-toggle="modal" data-bs-target="#new_table">
|
|
<i class="bi bi-plus-lg"></i>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" role="button" data-bs-toggle="modal" data-bs-target="#import_table">
|
|
<i class="bi bi-folder2-open"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
{% block body %}{% endblock body %}
|
|
<!-- Modals -->
|
|
<!-- Base modals -->
|
|
{% include "base_modals" %}
|
|
|
|
{% block modals %}{% endblock modals %}
|
|
|
|
{% block script %}{% endblock script %}
|
|
<!-- Bootstrap -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
<!-- JQuery -->
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|
|
|