network_inventory/src/core/templates/core/base.html

58 lines
1.9 KiB
HTML
Raw Normal View History

2021-12-11 14:22:24 +01:00
{% load django_htmx %}
2021-12-21 17:51:57 +01:00
{% load static %}
2017-12-25 00:37:31 +01:00
<!DOCTYPE html>
2020-02-25 20:25:20 +01:00
<html lang="en">
2021-12-10 18:56:56 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" type="text/css" href="{% static 'core/css/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'core/css/material-icons.css' %}">
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="{% static 'core/img/favicon.ico' %}" />
<title>Network Inventory</title>
</head>
2021-12-11 14:22:24 +01:00
2017-12-25 00:37:31 +01:00
<body>
2020-02-25 20:25:40 +01:00
<div class="container">
<a href="{% url 'customers' %}">Home</a> |
<a href="{% url 'warranties' %}">Warranties</a> |
{% if request.user.is_superuser %}
<a href="{% url 'all_computers' %}">All Computers</a> |
{% endif %}
{% if user.is_authenticated %}
<a href="{% url 'logout' %}">Logout</a> |
{% else %}
2021-12-10 18:56:56 +01:00
<a href="{% url 'login' %}">Login</a> |
2020-02-25 20:25:40 +01:00
{% endif %}
<h1>{% block section_title %}Device Inventory{% endblock %}</h1>
{% block content %}{% endblock %}
<footer>
{% block footer %}
2020-02-29 11:47:00 +01:00
<div class="row mt-3">
2020-02-29 11:50:09 +01:00
<p class="copyright">Created by Andreas Zweili licensed under GPLv3.0</p>
2020-02-29 11:47:00 +01:00
</div>
2020-02-25 20:25:40 +01:00
{% endblock %}
</footer>
</div>
2021-12-21 17:51:57 +01:00
<script src="{% static 'core/js/htmx.js' %}"></script>
{% django_htmx_script %}
<script>
function closeModal() {
var container = document.getElementById("htmx-modal-position")
var backdrop = document.getElementById("modal-backdrop")
var modal = document.getElementById("modal")
modal.classList.remove("show")
backdrop.classList.remove("show")
setTimeout(function () {
container.removeChild(backdrop)
container.removeChild(modal)
}, 200)
}
</script>
2017-12-27 17:50:25 +01:00
</body>
2021-12-11 14:22:24 +01:00
2017-12-25 00:37:31 +01:00
</html>