125 lines
5.4 KiB
HTML
125 lines
5.4 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">
|
|
<link rel="stylesheet" href="/css/base.css" type="text/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 rel="script" type="text/javascript" src="/js/base.js"></script>
|
|
</head>
|
|
<body class="d-flex flex-column min-vh-100">
|
|
<!-- 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 class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
{{ username }}
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end px-2">
|
|
<li class="dropdown-option"><a class="nav-link" href="https://ldap.randerath.eu/realms/master/account">Account</a></li>
|
|
<li class="dropdown-option"><a class="nav-link" href="/logout">Logout</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div id="content" class="mx-3">
|
|
{% block body %}{% endblock body %}
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<div class="container mt-auto">
|
|
<footer class="d-flex flex-wrap border-top py-3 my-4 justify-content-between align-items-center">
|
|
<p class="col-md-4 mb-0 text-body-secondary">© 2024 Johannes Randerath.</p>
|
|
<a class="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-body-emphasis text-decoration-none" href="http://u.fsf.org/16e"><img src="https://static.fsf.org/nosvn/images/badges/fsfs_icons_beige-bg.png" width="100" alt="Free Software, Free Society"></a>
|
|
<ul class="nav col-md-4 justify-content-end">
|
|
<li class="nav-item">
|
|
<a class="nav-link text-body-secondary px-2" href="/">
|
|
Home
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link text-body-secondary px-2" href="https://gitea.randerath.eu/johannes/Inventur/releases/tag/v0.1">
|
|
Source
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link text-body-secondary px-2" href="/txt/COPYING">
|
|
License
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link text-body-secondary px-2" href="https://www.eff.org">
|
|
Internet Privacy
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</footer>
|
|
</div>
|
|
<!-- 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>
|
|
|