2023-01-20 21:22:43 -05:00
|
|
|
{% load static %}
|
2023-04-14 01:07:35 -04:00
|
|
|
|
|
|
|
<!DOCTYPE html>
|
2024-01-30 13:34:04 -05:00
|
|
|
<html lang="en" data-bs-theme="auto">
|
2020-12-11 14:29:18 -05:00
|
|
|
<head>
|
2024-01-30 13:34:04 -05:00
|
|
|
<script src="{% static 'bootstrap-color-toggle.js' %}"></script>
|
2020-12-11 14:29:18 -05:00
|
|
|
<meta charset="utf-8">
|
2022-01-23 23:03:08 -05:00
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2020-12-11 14:29:18 -05:00
|
|
|
<!-- Bootstrap CSS -->
|
2023-01-20 21:22:43 -05:00
|
|
|
<link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">
|
2023-09-11 11:55:32 -04:00
|
|
|
<!-- Bootstrap Icons CSS -->
|
|
|
|
<link href="{% static 'bootstrap-icons.min.css' %}" rel="stylesheet">
|
2023-02-02 15:08:48 -05:00
|
|
|
<!-- Tabulator CSS -->
|
|
|
|
<link href="{% static 'tabulator_bootstrap5.min.css' %}" rel="stylesheet">
|
2022-01-23 23:03:08 -05:00
|
|
|
<title>
|
2022-01-25 00:03:52 -05:00
|
|
|
{% block title %}Claremont MakerSpace{% endblock %}
|
2022-01-23 23:03:08 -05:00
|
|
|
</title>
|
2020-12-11 14:29:18 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-06-18 15:10:51 -04:00
|
|
|
<nav class="navbar navbar-expand-sm bg-body-tertiary d-print-none">
|
2021-05-20 17:44:13 -04:00
|
|
|
<div class="container-fluid">
|
2023-04-14 01:24:36 -04:00
|
|
|
<a class="navbar-brand" href="{% url 'dashboard:dashboard' %}">Claremont MakerSpace</a>
|
2024-01-17 13:05:24 -05:00
|
|
|
<nav aria-label="breadcrumb" class="d-none d-sm-block">
|
|
|
|
<ol class="breadcrumb" style="--bs-breadcrumb-margin-bottom: 0;">
|
|
|
|
{% block breadcrumbs %}{% endblock %}
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2022-01-23 23:03:08 -05:00
|
|
|
<button class="navbar-toggler"
|
|
|
|
type="button"
|
2023-02-02 15:14:20 -05:00
|
|
|
data-bs-toggle="collapse"
|
|
|
|
data-bs-target="#user-nav"
|
2022-01-23 23:03:08 -05:00
|
|
|
aria-controls="user-nav"
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-label="Toggle navigation">
|
2021-05-20 17:44:13 -04:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div id="user-nav" class="collapse navbar-collapse justify-content-end">
|
|
|
|
<div class="navbar-nav">
|
2021-05-20 20:12:52 -04:00
|
|
|
{% block nav_extra %}{% endblock %}
|
2023-09-11 11:55:32 -04:00
|
|
|
<div class="nav-item dropdown">
|
2024-01-17 21:17:24 -05:00
|
|
|
<button class="btn btn-link nav-link dropdown-toggle d-flex align-items-center"
|
|
|
|
id="bd-theme"
|
|
|
|
type="button"
|
|
|
|
aria-expanded="false"
|
|
|
|
data-bs-toggle="dropdown"
|
|
|
|
data-bs-display="static"
|
|
|
|
aria-label="Toggle theme (auto)">
|
2023-09-11 11:55:32 -04:00
|
|
|
<i class="bi theme-icon-active bi-circle-half"></i>
|
|
|
|
<span class="d-none ms-2" id="bd-theme-text">Toggle theme</span>
|
|
|
|
</button>
|
2024-01-17 21:17:24 -05:00
|
|
|
<ul class="dropdown-menu dropdown-menu-end"
|
|
|
|
aria-labelledby="bd-theme-text">
|
2023-09-11 11:55:32 -04:00
|
|
|
<li>
|
2024-01-17 21:17:24 -05:00
|
|
|
<button type="button"
|
|
|
|
class="dropdown-item d-flex align-items-center"
|
|
|
|
data-bs-theme-value="light"
|
|
|
|
aria-pressed="false">
|
2023-09-11 11:55:32 -04:00
|
|
|
<i class="bi me-2 opacity-50 theme-icon bi-sun-fill"></i>
|
|
|
|
Light
|
|
|
|
<i class="bi ms-auto d-none bi-check2"></i>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-01-17 21:17:24 -05:00
|
|
|
<button type="button"
|
|
|
|
class="dropdown-item d-flex align-items-center"
|
|
|
|
data-bs-theme-value="dark"
|
|
|
|
aria-pressed="false">
|
2023-09-11 11:55:32 -04:00
|
|
|
<i class="bi me-2 opacity-50 theme-icon bi-moon-stars-fill"></i>
|
|
|
|
Dark
|
|
|
|
<i class="bi ms-auto d-none bi-check2"></i>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
<li>
|
2024-01-17 21:17:24 -05:00
|
|
|
<button type="button"
|
|
|
|
class="dropdown-item d-flex align-items-center active"
|
|
|
|
data-bs-theme-value="auto"
|
|
|
|
aria-pressed="true">
|
2023-09-11 11:55:32 -04:00
|
|
|
<i class="bi me-2 opacity-50 theme-icon bi-circle-half"></i>
|
|
|
|
Auto
|
|
|
|
<i class="bi ms-auto d-none bi-check2"></i>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% if user.is_staff %}
|
2022-01-23 23:03:08 -05:00
|
|
|
<a class="nav-item nav-link"
|
2022-01-25 00:03:52 -05:00
|
|
|
href="{% block admin_link %}{% url 'admin:index' %}{% endblock %}">Admin</a>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
2022-09-03 00:38:44 -04:00
|
|
|
<form method="post" action="{% url 'logout' %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button class="btn" type="submit">Logout: {{ user }}</button>
|
|
|
|
</form>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% else %}
|
2022-01-23 23:03:08 -05:00
|
|
|
<a class="nav-item nav-link"
|
2022-01-25 00:03:52 -05:00
|
|
|
href="{% url 'login' %}?next={{ request.get_full_path }}">Login</a>
|
2021-05-20 17:44:13 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-12-11 14:29:18 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2022-02-07 19:48:08 -05:00
|
|
|
{% if messages %}
|
|
|
|
<div class="messages m-3">
|
|
|
|
{% for message in messages %}
|
|
|
|
{# TODO: should use tags correctly for bootstrap alerts #}
|
2022-02-14 12:44:42 -05:00
|
|
|
<div role="alert"
|
2023-04-14 01:07:35 -04:00
|
|
|
class="alert alert-info alert-dismissible fade show {% if message.tags %}{{ message.tags }}{% endif %}">
|
2022-02-07 19:48:08 -05:00
|
|
|
{{ message }}
|
2022-02-14 12:44:42 -05:00
|
|
|
<button type="button"
|
|
|
|
class="btn-close"
|
|
|
|
data-bs-dismiss="alert"
|
|
|
|
aria-label="Close"></button>
|
2022-02-07 19:48:08 -05:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-12-11 14:29:18 -05:00
|
|
|
<div id="content" class="m-3">
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
2022-05-05 17:05:39 -04:00
|
|
|
{% block footer %}{% endblock %}
|
2020-12-11 14:29:18 -05:00
|
|
|
</body>
|
2023-09-11 11:55:32 -04:00
|
|
|
<!-- Bootstrap JS -->
|
|
|
|
<script src="{% static 'bootstrap.bundle.min.js' %}"></script>
|
|
|
|
<!-- Tabulator JS -->
|
|
|
|
<script src="{% static 'tabulator.min.js' %}"></script>
|
2024-01-17 21:17:24 -05:00
|
|
|
{% block script %}
|
|
|
|
{% endblock %}
|
2020-12-11 14:29:18 -05:00
|
|
|
</html>
|