99 lines
4.3 KiB
HTML
99 lines
4.3 KiB
HTML
<html lang="en">
|
|
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
|
|
<!-- CSS only -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
{% load static %}
|
|
<link href="{% static 'fontawesomefree/css/fontawesome.css' %}" rel="stylesheet" type="text/css">
|
|
<link href="{% static 'fontawesomefree/css/solid.css' %}" rel="stylesheet" type="text/css">
|
|
<!-- JS, Popper.js, and jQuery -->
|
|
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" -->
|
|
<!-- integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" -->
|
|
<!-- crossorigin="anonymous"></script> -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
|
{% block script %}{% endblock %}
|
|
<style>
|
|
{% block style %}{% endblock %}
|
|
body {
|
|
margin-top: 10px;
|
|
}
|
|
label {
|
|
margin-right: 10px;
|
|
}
|
|
.table-borderless > tbody > tr > td,
|
|
.table-borderless > tbody > tr > th,
|
|
.table-borderless > tfoot > tr > td,
|
|
.table-borderless > tfoot > tr > th,
|
|
.table-borderless > thead > tr > td,
|
|
.table-borderless > thead > tr > th {
|
|
border: none;
|
|
background-color: rgba(0,0,0, 0.0) !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">Damn Yankee Brewing</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 mr-auto">
|
|
<li class="nav-item active">
|
|
<a class="nav-link" href="/">Home</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{% url 'yeast:batches' %}">Batches</a>
|
|
</li>
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-bs-toggle="dropdown" aria-haspopup="true"
|
|
aria-expanded="false">Brewery Operations</a>
|
|
<div class="dropdown-menu" aria-labelledby="dropdown01">
|
|
<a class="dropdown-item" href="/yeast/">Yeast</a>
|
|
<a class="dropdown-item" href="/equipment/">Equipment</a>
|
|
<a class="dropdown-item" href="/beer/">Beer</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
{% if user.is_authenticated %}
|
|
<div class="dropdown ms-auto">
|
|
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
|
{{ user.username }}
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" href="#" onclick="document.getElementById('LougoutForm').submit();">Log Out</a></li>
|
|
<li><a class="dropdown-item" href="{% url 'password_change' %}">Change Password</a></li>
|
|
{% if user.is_superuser %}
|
|
<div class="dropdown-divider"></div>
|
|
<li><a class="dropdown-item" href="{% url 'admin:index' %}">Admin</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
{% else %}
|
|
<a href="{% url 'login' %}">Log In</a>
|
|
{% endif %}
|
|
<form id="LougoutForm" action="{% url 'logout' %}" method="POST" class="form-inline my-2 my-lg-0">
|
|
{% csrf_token %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
|
|
<main role="main">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
</body>
|
|
{% block endscript %}{% endblock %}
|
|
</html>
|