Files
Fil-A-Management/templates/base.html
T

52 lines
4.0 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{% block title %}Fil-A-Management{% endblock %}</title>
<script src="{% static 'filament/theme.js' %}"></script>
<link rel="stylesheet" href="{% static 'filament/app.css' %}">
<script src="{% static 'filament/catalog.js' %}" defer></script>
</head>
<body>
<a class="skip" href="#main">Zum Inhalt springen</a>
<div class="shell{% if not user.is_authenticated %} shell--guest{% endif %}">
<button class="theme-toggle" type="button" aria-label="Dunkelmodus" aria-pressed="false" data-theme-toggle hidden>
<span class="theme-moon" aria-hidden="true">☾</span>
<span class="theme-sun" aria-hidden="true">☀</span>
</button>
<aside class="sidebar">
<a class="brand" href="/"><span class="brand-icon" aria-hidden="true">◉</span><span>Fil-A-Management</span></a>
{% if user.is_authenticated %}
<p class="nav-label">DEINE WERKSTATT</p>
<nav aria-label="Hauptnavigation">
<a href="{% url 'inventory' %}"
{% if '/bestand/' in request.path and request.resolver_match.url_name != 'shared_inventory' %}aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">▤</span><span>Mein Bestand</span></a>
{% if show_shared_inventory %}
<a href="{% url 'shared_inventory' %}"{% if request.resolver_match.url_name == 'shared_inventory' %} aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">↗</span><span>Geteilter Bestand</span></a>
{% endif %}
<a href="{% url 'profile' %}"
{% if '/profil/' in request.path or '/drucker/' in request.path %}aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">▣</span><span>Mein Profil</span></a>
<p class="nav-label">GEMEINSAM</p>
<a href="/bestellung/"
{% if '/bestellung/' in request.path and '/bestellung/historie/' not in request.path %}aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">↗</span><span>Sammelbestellung</span></a>
<a href="{% url 'order_history' %}"{% if '/bestellung/historie/' in request.path %} aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">◫</span><span>Bestellhistorie</span></a>
<a href="{% url 'shared_models' %}"{% if '/modelle/' in request.path %} aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">◇</span><span>Modelldatenbank</span></a>
<a href="{% url 'feedback' %}"{% if request.resolver_match.url_name == 'feedback' %} aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">✉</span><span>Feedback</span></a>
{% if user.is_superuser %}<a href="/admin/"><span class="nav-icon" aria-hidden="true">⚙</span><span>Administration</span></a>{% endif %}
</nav>
<div class="sidebar-bottom"><a class="profile-link" href="/profil/"{% if request.path == '/profil/' %} aria-current="page"{% endif %}><span class="avatar" aria-hidden="true">{{ user.username|first|upper }}</span><span><strong>{{ user.username }}</strong><small>Mein Profil</small></span></a>
<form action="{% url 'logout' %}" method="post">{% csrf_token %}<button class="logout" type="submit">Abmelden</button></form></div>
{% endif %}
</aside>
<div class="main-wrap">
<main id="main">
{% for message in messages %}<div class="message {{ message.tags }}" role="status">{{ message }}</div>{% endfor %}
{% block content %}{% endblock %}
</main>
</div>
</div>
</body>
</html>