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

44 lines
2.6 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">
<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>
<p class="nav-label">DEINE WERKSTATT</p>
<nav aria-label="Hauptnavigation">
<a href="/bestand/"
{% if '/bestand/' in request.path %}aria-current="page"{% endif %}>▤ <span>Mein Bestand</span></a>
<a href="/drucker/"
{% if '/drucker/' in request.path %}aria-current="page"{% endif %}>▣ <span>Meine Drucker</span></a>
<p class="nav-label">GEMEINSAM</p>
<a href="/bestellung/"
{% if '/bestellung/' in request.path %}aria-current="page"{% endif %}>↗ <span>Sammelbestellung</span></a>
<a href="/katalog/"
{% if '/katalog/' in request.path %}aria-current="page"{% endif %}>◫ <span>Filamentkatalog</span></a>
{% if user.is_superuser %}<a href="/admin/">⚙ <span>Administration</span></a>{% endif %}
</nav>
<div class="sidebar-bottom">{% if user.is_authenticated %}<a class="profile-link" href="/profil/"><span class="avatar">{{ 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>{% else %}<small>Dein Filament. Euer nächstes Projekt.</small>{% endif %}</div>
</aside>
<div class="main-wrap">
<header class="topbar">
<span>Filament, gut organisiert.</span><span class="badge">MVP · v0.1</span>
</header>
<main id="main">{% for message in messages %}<div class="message {{ message.tags }}" role="status">{{ message }}</div>{% endfor %}{% block content %}{% endblock %}</main>
<footer>
Fil-A-Management <span>Privater Bestand. Gemeinsame Möglichkeiten.</span>
</footer>
</div>
</div>
</body>
</html>