47 lines
3.4 KiB
HTML
47 lines
3.4 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>
|
|
<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 %}">
|
|
<aside class="sidebar">
|
|
<a class="brand" href="/"><span class="brand-icon" aria-hidden="true">◉</span><span>Fil-A<span class="brand-small">MANAGEMENT</span></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 %}aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">↗</span><span>Sammelbestellung</span></a>
|
|
<a href="/katalog/"
|
|
{% if '/katalog/' in request.path %}aria-current="page"{% endif %}><span class="nav-icon" aria-hidden="true">◫</span><span>Filamentkatalog</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>
|