Intern: Handy-Menü und waagerecht scrollende Tabellen
- ☰-Knopf mit ausklappbarem Menü (Offcanvas) auf dem Handy, Menüpunkte als gemeinsamer Baustein für Seitenleiste und Handy-Menü - table-responsive für Folgenliste, Team und Kategorien - 2 neue Tests (102 insgesamt), Changelog aktualisiert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1666e06e92
commit
90cec71283
7 files changed
+87
-36
No files matched your search
@@ -0,0 +1,33 @@
|
||||
{# Menüpunkte des Intern-Bereichs: am PC in der Seitenleiste, auf dem Handy im ausklappbaren Menü #}
|
||||
<ul class="nav flex-column text-start">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'dashboard' %}active{% endif %}" href="{% url 'intern:dashboard' %}">
|
||||
📊 Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'folge_neu' %}active{% endif %}" href="{% url 'intern:folge_neu' %}">
|
||||
➕ Folge hinzufügen
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'folge_liste' %}active{% endif %}" href="{% url 'intern:folge_liste' %}">
|
||||
📁 Folgen Übersicht
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'team_liste' %}active{% endif %}" href="{% url 'intern:team_liste' %}">
|
||||
👥 Team bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'kategorie_liste' %}active{% endif %}" href="{% url 'intern:kategorie_liste' %}">
|
||||
🏷️ Kategorien
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'analyse' %}active{% endif %}" href="{% url 'intern:analyse' %}">
|
||||
🔍 Datenanalyse
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -15,6 +15,8 @@
|
||||
.nav-link:hover { color: white; background: rgba(255,255,255,.1); }
|
||||
.nav-link.active { color: white; background: #0d6efd; }
|
||||
.top-navbar { background: white; border-bottom: 1px solid #dee2e6; padding: 10px 20px; }
|
||||
/* Ausklappbares Menü auf dem Handy im Stil der Seitenleiste */
|
||||
.offcanvas.intern-menu { background: #212529; color: white; max-width: 280px; }
|
||||
/* Animation für sanftes Ausblenden der Nachrichten */
|
||||
.alert { transition: opacity 0.5s ease-out; }
|
||||
</style>
|
||||
@@ -25,49 +27,35 @@
|
||||
<div class="row">
|
||||
<nav class="col-md-3 col-lg-2 d-none d-md-block sidebar p-3 text-center">
|
||||
<h4 class="mb-4 py-3 border-bottom text-white">GD INTERN</h4>
|
||||
<ul class="nav flex-column text-start">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'dashboard' %}active{% endif %}" href="{% url 'intern:dashboard' %}">
|
||||
📊 Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'folge_neu' %}active{% endif %}" href="{% url 'intern:folge_neu' %}">
|
||||
➕ Folge hinzufügen
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'folge_liste' %}active{% endif %}" href="{% url 'intern:folge_liste' %}">
|
||||
📁 Folgen Übersicht
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'team_liste' %}active{% endif %}" href="{% url 'intern:team_liste' %}">
|
||||
👥 Team bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'kategorie_liste' %}active{% endif %}" href="{% url 'intern:kategorie_liste' %}">
|
||||
🏷️ Kategorien
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {% if request.resolver_match.url_name == 'analyse' %}active{% endif %}" href="{% url 'intern:analyse' %}">
|
||||
🔍 Datenanalyse
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% include 'intern/_menu.html' %}
|
||||
<div class="mt-5 pt-5 border-top small opacity-50">
|
||||
Genial Daneben Archiv <br> Copyright 2026
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="offcanvas offcanvas-start intern-menu d-md-none" tabindex="-1" id="intern-menu" aria-labelledby="intern-menu-titel">
|
||||
<div class="offcanvas-header border-bottom border-secondary">
|
||||
<h2 class="offcanvas-title h5" id="intern-menu-titel">GD INTERN</h2>
|
||||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas" aria-label="Menü schließen"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
{% include 'intern/_menu.html' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 col-lg-10 p-0">
|
||||
<header class="top-navbar d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small text-uppercase fw-bold">Verwaltungspanel</span>
|
||||
<header class="top-navbar d-flex justify-content-between align-items-center gap-2">
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
{# Auf dem Handy ist die Seitenleiste ausgeblendet: Menü zum Ausklappen #}
|
||||
<button class="btn btn-sm btn-outline-dark d-md-none" type="button" data-bs-toggle="offcanvas"
|
||||
data-bs-target="#intern-menu" aria-controls="intern-menu" aria-label="Menü öffnen">
|
||||
<i class="bi bi-list" aria-hidden="true"></i>
|
||||
</button>
|
||||
<span class="text-muted small text-uppercase fw-bold">Verwaltungspanel</span>
|
||||
</div>
|
||||
<div class="d-flex align-items-center">
|
||||
{% if user.is_authenticated %}
|
||||
<span class="me-3 text-dark small">Eingeloggt als: <strong>{{ user.username }}</strong></span>
|
||||
<span class="me-3 text-dark small d-none d-sm-inline">Eingeloggt als: <strong>{{ user.username }}</strong></span>
|
||||
<form action="{% url 'admin:logout' %}" method="post" class="d-inline">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-outline-danger btn-sm">Abmelden</button>
|
||||
@@ -84,7 +72,7 @@
|
||||
{% for message in messages %}
|
||||
<div class="alert alert-{{ message.tags }} alert-dismissible fade show shadow-sm border-start border-4 {% if message.tags == 'success' %}border-success text-dark{% else %}border-warning text-dark{% endif %}" role="alert">
|
||||
{% if message.tags == 'success' %}✅{% else %}⚠️{% endif %} {{ message }}
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Schließen"></button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
<div class="card shadow-sm border-0">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
@@ -98,6 +99,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer text-muted small">
|
||||
In diesem Jahr eingetragene Folgen: <span class="fw-bold">{{ jahr.list|length }}</span>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<div class="col-md-8">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
@@ -56,6 +57,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<div class="col-md-8">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
@@ -54,6 +55,7 @@
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user