inventory/inventory/templates/base.html
2020-12-22 04:27:57 +01:00

29 lines
No EOL
722 B
HTML

{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" content="text/css" href="{% static 'inventory/css/main.css' %}">
{% block head %}{% endblock %}
</head>
<body>
<nav>
<h2>
{% block header_bar %}
{% endblock %}
</h2>
{% if user.is_authenticated %}
<form method="POST" action="{% url "logout" %}">
{% csrf_token %}
<button><img class="icon" src="{% static "inventory/img/logout.svg" %}"> Logout</button>
</form>
{% endif %}
</nav>
<main>
{% block content %}
{% endblock %}
</main>
</body>
</html>