"Update ROADMAP and styling in templates"
This commit is contained in:
parent
1fa7f88d9d
commit
5f2fa5af0c
@ -17,35 +17,47 @@ Die aktuelle Version umfasst die Grundfunktionalitäten:
|
||||
- **✅ Responsive Design**
|
||||
- **✅ Umfassende UI-Dokumentation**
|
||||
|
||||
## Kürzlich Abgeschlossen (Version 1.1)
|
||||
## Kürzlich Abgeschlossen (Version 1.2) ✅
|
||||
|
||||
### UI/UX Verbesserungen ✅
|
||||
### Sicherheits-Features ✅
|
||||
|
||||
- **Template-Helper-System**: Jinja2-Helper für Buttons, Badges, Cards, Alerts, Modals, Tabellen
|
||||
- **JavaScript-Utilities**: Toast-Nachrichten, Modal-Steuerung, Dropdown-Management, Loading-Anzeigen
|
||||
- **Status-System**: Automatische Status-Badges für Jobs und Drucker mit deutscher Übersetzung
|
||||
- **Icon-System**: Integrierte SVG-Icons für konsistente UI
|
||||
- **Filter-System**: Deutsche Datumsformatierung, Dauer-Formatierung, JSON-Encoding
|
||||
- **Demo-Seite**: Vollständige Demonstration aller UI-Komponenten unter `/demo`
|
||||
- **Dokumentation**: Umfassende UI-Komponenten-Dokumentation (`UI_COMPONENTS.md`)
|
||||
- ✅ **Rate Limiting**: Schutz vor API-Missbrauch und DDoS-Attacken
|
||||
- ✅ **Content Security Policy (CSP)**: Schutz vor XSS-Angriffen
|
||||
- ✅ **Erweiterte Security Headers**: Comprehensive security headers für alle Responses
|
||||
- ✅ **Verdächtige Aktivitäts-Erkennung**: Automatische Erkennung von SQL-Injection und anderen Bedrohungen
|
||||
- ✅ **Client-Fingerprinting**: Erweiterte Sicherheit durch Client-Identifikation
|
||||
|
||||
### Technische Verbesserungen ✅
|
||||
### Erweiterte Berechtigungen ✅
|
||||
|
||||
- **PostCSS-Integration**: Automatische CSS-Verarbeitung mit Tailwind und Autoprefixer
|
||||
- **Build-System**: NPM-Scripts für CSS-Kompilierung und Watch-Modus
|
||||
- **Komponenten-Architektur**: Modulares System für wiederverwendbare UI-Elemente
|
||||
- **Template-Integration**: Nahtlose Integration in Flask-Templates
|
||||
- ✅ **Granulare Berechtigungen**: 7 detaillierte Rollen (Guest bis Super Admin)
|
||||
- ✅ **Ressourcen-spezifische Zugriffskontrolle**: Job-, Drucker- und Benutzer-spezifische Berechtigungen
|
||||
- ✅ **Temporäre Berechtigungen**: Zeitlich begrenzte Berechtigungsüberschreibungen
|
||||
- ✅ **Permission Caching**: Performance-optimierte Berechtigungsprüfung
|
||||
- ✅ **Template-Integration**: Template-Helper für berechtigungsbasierte UI-Anzeige
|
||||
|
||||
### Erweiterte UI-Komponenten ✅
|
||||
|
||||
- ✅ **Progress-Bars**: Animierte, konfigurabr progress indicators mit verschiedenen Styles
|
||||
- ✅ **Advanced File-Upload**: Drag & Drop, Preview, Chunk-Upload, Validierung
|
||||
- ✅ **DatePicker**: Deutscher Kalender mit Validierung und Custom Events
|
||||
- ✅ **Auto-Initialisierung**: Data-Attribute-basierte Komponenten-Initialisierung
|
||||
|
||||
### Analytics & Statistiken ✅
|
||||
|
||||
- ✅ **Umfassende Analytics-Engine**: Drucker-, Job- und Benutzer-Statistiken
|
||||
- ✅ **KPI-Dashboard**: Key Performance Indicators mit Trend-Analyse
|
||||
- ✅ **Report-Generierung**: Verschiedene Report-Typen und Zeiträume
|
||||
- ✅ **Interaktive Charts**: Chart.js-basierte Visualisierungen
|
||||
- ✅ **Export-Funktionalität**: JSON, CSV, PDF, Excel-Export (Framework bereit)
|
||||
|
||||
## Geplante Features
|
||||
|
||||
### Version 1.2 (Kurzfristig)
|
||||
### Version 1.3 (Kurzfristig)
|
||||
|
||||
- Verbesserte Fehlerbehandlung und Logging
|
||||
|
||||
- [ ] Nutzungsstatistiken und Berichte
|
||||
- [ ] Feinere Berechtigungssteuerung
|
||||
- [ ] **Erweiterte UI-Komponenten**: Datepicker, File-Upload, Progress-Bars
|
||||
- [ ] **Formular-Validierung**: Client- und serverseitige Validierung mit UI-Feedback
|
||||
- [ ] **E-Mail-Benachrichtigungen**: Bei Job-Status-Änderungen und System-Events
|
||||
- [ ] **Erweiterte Formular-Validierung**: Client- und serverseitige Validierung mit UI-Feedback
|
||||
- [ ] **Multi-Format-Export**: Vollständige PDF- und Excel-Report-Generierung
|
||||
- [ ] **Zwei-Faktor-Authentifizierung**: TOTP-basierte 2FA-Implementierung
|
||||
|
||||
### Version 1.3 (Mittelfristig)
|
||||
|
||||
|
2
backend/app/static/css/tailwind.min.css
vendored
2
backend/app/static/css/tailwind.min.css
vendored
File diff suppressed because one or more lines are too long
@ -7,16 +7,56 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="bg-professional">
|
||||
<div class="bg-professional" style="background: #f8fafc !important;">
|
||||
<!-- Dark Mode Override -->
|
||||
<style>
|
||||
.dark .bg-professional {
|
||||
background: #000000 !important;
|
||||
}
|
||||
.dark .professional-hero {
|
||||
background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
|
||||
border-color: #333333 !important;
|
||||
}
|
||||
.dark .professional-container {
|
||||
background: #111111 !important;
|
||||
border-color: #333333 !important;
|
||||
}
|
||||
.dark .mb-glass {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
.dark .card-professional {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
.dark .stat-card {
|
||||
background: rgba(17, 17, 17, 0.95) !important;
|
||||
border-color: rgba(255, 255, 255, 0.1) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Professional Hero Header -->
|
||||
<div class="professional-hero hero-pattern animate-fade-in">
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-black/10 to-black/20 dark:from-black/20 dark:to-black/40"></div>
|
||||
<div class="professional-hero hero-pattern animate-fade-in" style="margin: 2rem; margin-bottom: 3rem;">
|
||||
<div class="absolute inset-0 bg-gradient-to-r from-black/10 to-black/20 dark:from-black/40 dark:to-black/60"></div>
|
||||
|
||||
<div class="relative max-w-7xl mx-auto px-6 lg:px-8 py-16 z-10">
|
||||
<!-- Status Indicator -->
|
||||
<div class="absolute top-6 right-6 flex items-center space-x-4 z-10">
|
||||
<div class="mb-glass rounded-full px-6 py-3 animate-scale-in">
|
||||
<div class="flex items-center space-x-3">
|
||||
<div class="status-dot status-online"></div>
|
||||
<span class="text-sm font-semibold text-professional-primary">Live System</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-glass rounded-full px-6 py-3 animate-scale-in">
|
||||
<span id="live-time" class="text-sm font-semibold text-professional-primary"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="relative max-w-7xl mx-auto px-6 lg:px-8 py-20 z-10">
|
||||
<div class="text-center animate-slide-up">
|
||||
<!-- Mercedes-Benz Logo -->
|
||||
<div class="inline-flex items-center justify-center w-20 h-20 mb-glass rounded-full mb-6 professional-shadow">
|
||||
<svg class="w-10 h-10 text-professional-primary" viewBox="0 0 80 80" fill="currentColor">
|
||||
<div class="inline-flex items-center justify-center w-28 h-28 mb-glass rounded-full mb-10 professional-shadow">
|
||||
<svg class="w-14 h-14 text-professional-primary" viewBox="0 0 80 80" fill="currentColor">
|
||||
<path d="M58.6,4.5C53,1.6,46.7,0,40,0c-6.7,0-13,1.6-18.6,4.5v0C8.7,11.2,0,24.6,0,40c0,15.4,8.7,28.8,21.5,35.5
|
||||
C27,78.3,33.3,80,40,80c6.7,0,12.9-1.7,18.5-4.6C71.3,68.8,80,55.4,80,40C80,24.6,71.3,11.2,58.6,4.5z M4,40
|
||||
c0-13.1,7-24.5,17.5-30.9v0C26.6,6,32.5,4.2,39,4l-4.5,32.7L21.5,46.8v0L8.3,57.1C5.6,52,4,46.2,4,40z M58.6,70.8
|
||||
@ -26,10 +66,10 @@
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<h1 class="title-professional text-4xl md:text-5xl font-bold mb-4 tracking-tight">
|
||||
<h1 class="title-professional text-6xl md:text-7xl font-bold mb-8 tracking-tight">
|
||||
Druckanträge Übersicht
|
||||
</h1>
|
||||
<p class="subtitle-professional text-lg md:text-xl max-w-3xl mx-auto leading-relaxed">
|
||||
<p class="subtitle-professional text-2xl md:text-3xl max-w-5xl mx-auto leading-relaxed mb-12">
|
||||
Transparente Übersicht aller eingereichten Druckanträge mit Datenschutz-konformer Darstellung
|
||||
</p>
|
||||
</div>
|
||||
@ -37,100 +77,109 @@
|
||||
</div>
|
||||
|
||||
<!-- Main Content -->
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-8 relative z-10 pb-16">
|
||||
<div class="max-w-7xl mx-auto px-6 lg:px-8 -mt-12 relative z-10" style="margin-bottom: 4rem;">
|
||||
|
||||
<!-- Info Banner -->
|
||||
<div class="alert-professional alert-info mb-8 animate-slide-up">
|
||||
<div class="alert-professional alert-info animate-slide-up" style="border-radius: 2rem; padding: 2.5rem; margin-bottom: 3rem;">
|
||||
<div class="flex-shrink-0">
|
||||
<div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-2xl flex items-center justify-center">
|
||||
<svg class="h-6 w-6 text-white" fill="currentColor" viewBox="0 0 20 20">
|
||||
<div class="w-16 h-16 bg-gradient-to-br from-blue-500 to-indigo-600 rounded-3xl flex items-center justify-center">
|
||||
<svg class="h-8 w-8 text-white" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1">
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">
|
||||
<div class="flex-1 ml-8">
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">
|
||||
Datenschutz & Transparenz
|
||||
</h3>
|
||||
<p class="text-professional-secondary text-sm leading-relaxed">
|
||||
<p class="text-lg text-professional-secondary leading-relaxed mb-6">
|
||||
Diese Übersicht zeigt alle eingereichten Druckanträge in anonymisierter Form. Persönliche Daten sind durch "***" zensiert, um die Privatsphäre zu schützen und gleichzeitig Transparenz über den Bearbeitungsstand zu gewährleisten.
|
||||
</p>
|
||||
<div class="mt-3 flex flex-wrap gap-2">
|
||||
<span class="status-professional" style="background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--mb-primary);">Datenkonform</span>
|
||||
<span class="status-professional status-approved">Anonymisiert</span>
|
||||
<span class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed;">Transparent</span>
|
||||
<div class="flex flex-wrap gap-4">
|
||||
<span class="status-professional" style="background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--mb-primary); min-width: 120px; padding: 1rem;">
|
||||
<div class="w-3 h-3 bg-blue-500 rounded-full"></div>
|
||||
<span class="font-bold">Datenkonform</span>
|
||||
</span>
|
||||
<span class="status-professional status-approved" style="min-width: 120px; padding: 1rem;">
|
||||
<div class="status-dot status-online"></div>
|
||||
<span class="font-bold">Anonymisiert</span>
|
||||
</span>
|
||||
<span class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed; min-width: 120px; padding: 1rem;">
|
||||
<div class="w-3 h-3 bg-purple-500 rounded-full"></div>
|
||||
<span class="font-bold">Transparent</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Statistics Cards -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8 animate-slide-up">
|
||||
<div class="grid grid-cols-2 lg:grid-cols-4 gap-6 mb-12 animate-slide-up">
|
||||
{% set total_requests = requests|length %}
|
||||
{% set pending_requests = requests|selectattr("status", "equalto", "pending")|list|length %}
|
||||
{% set approved_requests = requests|selectattr("status", "equalto", "approved")|list|length %}
|
||||
{% set denied_requests = requests|selectattr("status", "equalto", "denied")|list|length %}
|
||||
|
||||
<div class="stat-card">
|
||||
<div class="stat-number">{{ total_requests }}</div>
|
||||
<div class="stat-label">Gesamt</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-professional-accent mb-3">{{ total_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Gesamt</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-yellow-600 dark:text-yellow-400">{{ pending_requests }}</div>
|
||||
<div class="stat-label">Prüfung</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-yellow-600 dark:text-yellow-400 mb-3">{{ pending_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Prüfung</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-green-600 dark:text-green-400">{{ approved_requests }}</div>
|
||||
<div class="stat-label">Genehmigt</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-green-600 dark:text-green-400 mb-3">{{ approved_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Genehmigt</div>
|
||||
</div>
|
||||
<div class="stat-card">
|
||||
<div class="stat-number text-red-600 dark:text-red-400">{{ denied_requests }}</div>
|
||||
<div class="stat-label">Abgelehnt</div>
|
||||
<div class="stat-card mb-glass" style="padding: 2.5rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-4xl lg:text-5xl font-bold text-red-600 dark:text-red-400 mb-3">{{ denied_requests }}</div>
|
||||
<div class="text-base lg:text-lg font-semibold text-professional-primary">Abgelehnt</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Requests List -->
|
||||
{% if error %}
|
||||
<div class="professional-container p-8 text-center animate-slide-up">
|
||||
<div class="text-red-500 dark:text-red-400 mb-4">
|
||||
<svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-red-500 dark:text-red-400 mb-6">
|
||||
<svg class="w-20 h-20 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">Fehler beim Laden</h3>
|
||||
<p class="text-professional-muted">{{ error }}</p>
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">Fehler beim Laden</h3>
|
||||
<p class="text-lg text-professional-muted">{{ error }}</p>
|
||||
</div>
|
||||
{% elif requests|length == 0 %}
|
||||
<div class="professional-container p-8 text-center animate-slide-up">
|
||||
<div class="text-professional-muted mb-4">
|
||||
<svg class="w-16 h-16 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
||||
<div class="text-professional-muted mb-6">
|
||||
<svg class="w-20 h-20 mx-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold text-professional-primary mb-2">Keine Druckanträge</h3>
|
||||
<p class="text-professional-muted mb-4">
|
||||
<h3 class="text-2xl font-bold text-professional-primary mb-4">Keine Druckanträge</h3>
|
||||
<p class="text-lg text-professional-muted mb-8">
|
||||
Derzeit sind keine Druckanträge vorhanden.
|
||||
</p>
|
||||
<a href="{{ url_for('guest.guest_request_form') }}"
|
||||
class="btn-professional">
|
||||
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-professional group px-8 py-4">
|
||||
<svg class="w-6 h-6 mr-3 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
|
||||
</svg>
|
||||
Ersten Antrag stellen
|
||||
</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="space-y-4 animate-slide-up">
|
||||
<div class="space-y-6 animate-slide-up">
|
||||
{% for request in requests %}
|
||||
<div class="card-professional {{ request.status }}" style="border-left: 4px solid {% if request.status == 'pending' %}#f59e0b{% elif request.status == 'approved' %}#10b981{% elif request.status == 'denied' %}#ef4444{% endif %};">
|
||||
<div class="flex flex-col lg:flex-row lg:items-center lg:justify-between space-y-4 lg:space-y-0">
|
||||
<div class="card-professional mb-glass {{ request.status }}" style="border-left: 6px solid {% if request.status == 'pending' %}#f59e0b{% elif request.status == 'approved' %}#10b981{% elif request.status == 'denied' %}#ef4444{% endif %}; padding: 2.5rem; border-radius: 2rem;">
|
||||
<div class="flex flex-col xl:flex-row xl:items-center xl:justify-between space-y-6 xl:space-y-0">
|
||||
|
||||
<!-- Left Section: Request Info -->
|
||||
<div class="flex-1">
|
||||
<div class="flex items-center space-x-3 mb-3">
|
||||
<div class="text-lg font-bold text-professional-primary">
|
||||
<div class="flex flex-wrap items-center gap-4 mb-6">
|
||||
<div class="text-2xl lg:text-3xl font-bold text-professional-primary">
|
||||
#{{ request.id }}
|
||||
</div>
|
||||
<div class="status-professional {% if request.status == 'pending' %}status-pending{% elif request.status == 'approved' %}status-approved{% elif request.status == 'denied' %}status-denied{% endif %}">
|
||||
<div class="status-professional {% if request.status == 'pending' %}status-pending{% elif request.status == 'approved' %}status-approved{% elif request.status == 'denied' %}status-denied{% endif %}" style="padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;">
|
||||
{% if request.status == 'pending' %}
|
||||
Wird geprüft
|
||||
{% elif request.status == 'approved' %}
|
||||
@ -140,52 +189,52 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if request.job_status %}
|
||||
<div class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed;">
|
||||
<div class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 700;">
|
||||
Druckstatus: {{ request.job_status|title }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 text-sm">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 text-base lg:text-lg">
|
||||
<div>
|
||||
<div class="text-professional-muted font-medium">Antragsteller</div>
|
||||
<div class="text-professional-muted font-bold mb-2">Antragsteller</div>
|
||||
<div class="censored-text font-mono text-professional-secondary">{{ request.name }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-medium">E-Mail</div>
|
||||
<div class="text-professional-muted font-bold mb-2">E-Mail</div>
|
||||
<div class="censored-text font-mono text-professional-secondary">{{ request.email }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-medium">Drucker</div>
|
||||
<div class="text-professional-secondary">{{ request.printer_name }}</div>
|
||||
<div class="text-professional-muted font-bold mb-2">Drucker</div>
|
||||
<div class="text-professional-secondary font-semibold">{{ request.printer_name }}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="text-professional-muted font-medium">Dauer</div>
|
||||
<div class="text-professional-secondary">{{ request.duration_min }} Min</div>
|
||||
<div class="text-professional-muted font-bold mb-2">Dauer</div>
|
||||
<div class="text-professional-secondary font-semibold">{{ request.duration_min }} Min</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if request.reason %}
|
||||
<div class="mt-3">
|
||||
<div class="text-professional-muted font-medium text-sm">Projektbeschreibung</div>
|
||||
<div class="censored-text font-mono text-professional-secondary text-sm">{{ request.reason }}</div>
|
||||
<div class="mt-6">
|
||||
<div class="text-professional-muted font-bold text-base lg:text-lg mb-3">Projektbeschreibung</div>
|
||||
<div class="censored-text font-mono text-professional-secondary text-base lg:text-lg">{{ request.reason }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Right Section: Timestamp and Actions -->
|
||||
<div class="lg:text-right">
|
||||
<div class="text-sm text-professional-muted mb-2">
|
||||
<div class="xl:text-right xl:ml-8">
|
||||
<div class="text-lg text-professional-muted mb-2">
|
||||
{{ request.created_at.strftime('%d.%m.%Y') }}
|
||||
</div>
|
||||
<div class="text-xs text-professional-muted">
|
||||
<div class="text-base text-professional-muted mb-4">
|
||||
{{ request.created_at.strftime('%H:%M') }} Uhr
|
||||
</div>
|
||||
|
||||
{% if request.status == 'approved' %}
|
||||
<div class="mt-3">
|
||||
<div class="status-professional status-approved">
|
||||
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="mt-4">
|
||||
<div class="status-professional status-approved" style="padding: 1.5rem; font-size: 1.1rem; font-weight: 700;">
|
||||
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
||||
</svg>
|
||||
Bereit
|
||||
@ -200,21 +249,21 @@
|
||||
{% endif %}
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<div class="mt-12 text-center animate-slide-up">
|
||||
<div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6">
|
||||
<div class="mt-16 text-center animate-slide-up">
|
||||
<div class="flex flex-col sm:flex-row items-center justify-center space-y-6 sm:space-y-0 sm:space-x-8">
|
||||
<a href="{{ url_for('guest.guest_request_form') }}"
|
||||
class="btn-professional">
|
||||
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-professional group px-10 py-5 text-lg">
|
||||
<svg class="w-6 h-6 mr-4 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6v6m0 0v6m0-6h6m-6 0H6"/>
|
||||
</svg>
|
||||
Neuen Antrag stellen
|
||||
</a>
|
||||
<a href="{{ url_for('index') }}"
|
||||
class="btn-secondary-professional">
|
||||
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
class="btn-professional group px-10 py-5 text-lg">
|
||||
<svg class="w-6 h-6 mr-4 group-hover:scale-110 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
|
||||
</svg>
|
||||
← Zur Startseite
|
||||
Zur Startseite
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -224,6 +273,14 @@
|
||||
<!-- Auto-Refresh Script -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Live Time Update
|
||||
function updateLiveTime() {
|
||||
const now = new Date();
|
||||
document.getElementById('live-time').textContent = now.toLocaleTimeString('de-DE');
|
||||
}
|
||||
updateLiveTime();
|
||||
setInterval(updateLiveTime, 1000);
|
||||
|
||||
// Auto-Refresh alle 30 Sekunden
|
||||
setInterval(function() {
|
||||
// Nur refreshen wenn Seite sichtbar ist
|
||||
|
Loading…
x
Reference in New Issue
Block a user