inventory/inventory/templates/base.html
2025-09-15 15:25:26 -05:00

73 lines
No EOL
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{{ title if title else "Inventory Manager" }}{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<style>
{% block style %}
{% endblock %}
</style>
</head>
<body class="pb-5">
<header>
<nav class="navbar navbar-expand-sm bg-body-tertiary border border-top-0">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('index.index') }}">
{{ title if title else "Inventory Manager" }}
</a>
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a href="{{ url_for('listing.show_list', model='inventory') }}" class="nav-link link-success fw-semibold">Inventory</a>
</li>
<li class="nav-item">
<a href="{{ url_for('listing.show_list', model='worklog') }}" class="nav-link link-success fw-semibold">Work Log</a>
</li>
<li class="nav-item">
<a href="{{ url_for('listing.show_list', model='user') }}" class="nav-link link-success fw-semibold">Users</a>
</li>
</ul>
{% block header %}
{% endblock %}
</div>
</nav>
</header>
{% block premain %}
{% endblock %}
<main class="container-fluid mt-3">
{% block main %}
{% endblock %}
</main>
{% block postmain %}
{% endblock %}
<footer class="bg-body-tertiary border border-bottom-0 position-fixed bottom-0 w-100 pb-1">
<small>
<span class="align-middle">&copy; 2025 Conrad Nelson •
<a href="/LICENSE" class="link-underline link-underline-opacity-0">AGPL-3.0-or-later</a>
<a href="https://git.kasear.net/yaro/inventory" class="link-underline link-underline-opacity-0">Source Code</a>
</span>
{% block footer %}
{% endblock %}
</small>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
{% block scriptincludes %}
{% endblock %}
<script>
document.addEventListener("DOMContentLoaded", () => {
{% block script %}
{% endblock %}
})
</script>
</body>
</html>