87 lines
4.4 KiB
HTML
87 lines
4.4 KiB
HTML
{% load static form_tags %}<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% settings_value "PRODUCT_INFO" %} - {% block title %}TITLE SETZEN{% endblock %}</title>
|
|
<meta name="description" content="carom billard management">
|
|
<meta name="author" content="Robert Einsle <robert@einsle.de>">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<link rel="shortcut icon" type="image/x-icon" href="{% static 'img/billiard.ico' %}">
|
|
{% block header %}
|
|
{% endblock %}
|
|
<!-- Bootstrap -->
|
|
<link href="https://fonts.googleapis.com/css?family=Peralta" rel="stylesheet">
|
|
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet" type="text/css">
|
|
<link href="{% static 'css/billard.css' %}" rel="stylesheet" type="text/css">
|
|
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script src="{% static 'js/html5shiv.min.js' %}"></script>
|
|
<script src="{% static 'js/respond.min.js' %}" type="text/javascript"></script>
|
|
<![endif]-->
|
|
{% block stylesheet %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% block body %}
|
|
<div class="wrapper">
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="{% url 'index' %}">{% settings_value "PRODUCT_INFO" %}</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="navbarSupportetContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{% url 'billard:location_index' %}">Standorte</a>
|
|
</li>
|
|
{% if user.is_authenticated %}
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" id="userMenu" role="button"
|
|
data-bs-toggle="dropdown" aria-expanded="false">
|
|
{{ user.username }}
|
|
</a>
|
|
<ul class="dropdown-menu" aria-labelledby="userMenu">
|
|
<li><a class="dropdown-item" href="{% url 'billard:my_account' %}">My account</a>
|
|
</li>
|
|
{% if user.is_superuser %}
|
|
<li><a class="dropdown-item" href="{% url 'admin:index' %}">Administration</a>
|
|
</li>
|
|
{% endif %}
|
|
<li><a class="dropdown-item" href="#">{% settings_value "PRODUCT_VERSION" %}</a>
|
|
</li>
|
|
<li><a class="dropdown-item" href="{% url 'logout' %}">Logout</a></li>
|
|
</ul>
|
|
</li>
|
|
{% else %}
|
|
<form class="form-inline ml-auto">
|
|
<a href="{% url 'login' %}" class="btn btn-outline-secondary">Log in</a>
|
|
</form>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div class="container-fluid">
|
|
<ol class="breadcrumb my-4">
|
|
{% block breadcrumb %}
|
|
{% endblock breadcrumb %}
|
|
</ol>
|
|
{% block content %}
|
|
{% endblock content %}
|
|
</div>
|
|
<div class="push"></div>
|
|
</div>
|
|
{% endblock body %}
|
|
<script src="{% static 'js/jquery-3.6.0.min.js' %}" type="text/javascript"></script>
|
|
<script src="{% static 'js/popper.min.js' %}" type="text/javascript"></script>
|
|
<script src="{% static 'js/bootstrap.min.js' %}" type="text/javascript"></script>
|
|
<script src="{% static 'js/carom.js' %}" type="text/javascript"></script>
|
|
{% block js %}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|