|
|
|
@@ -7,16 +7,59 @@
|
|
|
|
|
{% 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;
|
|
|
|
|
}
|
|
|
|
|
.dark .censored-text {
|
|
|
|
|
color: #888888 !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 Übersicht</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,172 +69,246 @@
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h1 class="title-professional text-4xl md:text-5xl font-bold mb-4 tracking-tight">
|
|
|
|
|
Druckanträge Übersicht
|
|
|
|
|
<h1 class="title-professional text-6xl md:text-7xl font-bold mb-8 tracking-tight">
|
|
|
|
|
Anträ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>
|
|
|
|
|
|
|
|
|
|
<!-- Action Buttons -->
|
|
|
|
|
<div class="flex flex-wrap justify-center gap-6">
|
|
|
|
|
<a href="{{ url_for('guest.guest_request_form') }}"
|
|
|
|
|
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"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span>Neuen Antrag stellen</span>
|
|
|
|
|
</a>
|
|
|
|
|
<button onclick="location.reload()"
|
|
|
|
|
class="btn-professional group px-8 py-4">
|
|
|
|
|
<svg class="w-6 h-6 mr-3 group-hover:rotate-180 transition-transform duration-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span>Aktualisieren</span>
|
|
|
|
|
</button>
|
|
|
|
|
<a href="{{ url_for('index') }}"
|
|
|
|
|
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="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"></path>
|
|
|
|
|
</svg>
|
|
|
|
|
<span>Zur Startseite</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</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="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">
|
|
|
|
|
<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 class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; margin-bottom: 3rem;">
|
|
|
|
|
<div class="flex-shrink-0 mb-8">
|
|
|
|
|
<div class="flex items-center space-x-6">
|
|
|
|
|
<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>
|
|
|
|
|
<h3 class="text-2xl font-bold text-professional-primary mb-4">
|
|
|
|
|
Mercedes-Benz Datenschutz & Transparenz
|
|
|
|
|
</h3>
|
|
|
|
|
<p class="text-professional-secondary text-lg leading-relaxed">
|
|
|
|
|
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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-1">
|
|
|
|
|
<h3 class="text-lg font-semibold text-professional-primary mb-2">
|
|
|
|
|
Datenschutz & Transparenz
|
|
|
|
|
</h3>
|
|
|
|
|
<p class="text-professional-secondary text-sm leading-relaxed">
|
|
|
|
|
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-6">
|
|
|
|
|
<div class="status-professional" style="background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--mb-primary); padding: 1.5rem; min-width: 160px;">
|
|
|
|
|
<div class="w-4 h-4 bg-blue-500 rounded-full mb-3"></div>
|
|
|
|
|
<span class="text-lg font-bold">Datenkonform</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="status-professional status-approved" style="padding: 1.5rem; min-width: 160px;">
|
|
|
|
|
<div class="status-dot status-online mb-3"></div>
|
|
|
|
|
<span class="text-lg font-bold">Anonymisiert</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="status-professional" style="background: rgba(147, 51, 234, 0.1); border-color: rgba(147, 51, 234, 0.3); color: #7c3aed; padding: 1.5rem; min-width: 160px;">
|
|
|
|
|
<div class="w-4 h-4 bg-purple-500 rounded-full mb-3"></div>
|
|
|
|
|
<span class="text-lg font-bold">Transparent</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-1 md:grid-cols-4 gap-8 mb-8 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 professional-container" style="padding: 2rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="w-12 h-12 bg-gradient-to-br from-slate-400 to-slate-600 rounded-2xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-6 h-6 text-white" 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>
|
|
|
|
|
<div class="text-4xl font-bold text-professional-primary mb-3">{{ total_requests }}</div>
|
|
|
|
|
<div class="text-xl font-semibold text-professional-secondary">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 professional-container" style="padding: 2rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="w-12 h-12 bg-gradient-to-br from-yellow-400 to-orange-500 rounded-2xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-4xl font-bold text-yellow-600 dark:text-yellow-400 mb-3">{{ pending_requests }}</div>
|
|
|
|
|
<div class="text-xl font-semibold text-professional-secondary">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 professional-container" style="padding: 2rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="w-12 h-12 bg-gradient-to-br from-green-400 to-emerald-500 rounded-2xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-4xl font-bold text-green-600 dark:text-green-400 mb-3">{{ approved_requests }}</div>
|
|
|
|
|
<div class="text-xl font-semibold text-professional-secondary">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 professional-container" style="padding: 2rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="w-12 h-12 bg-gradient-to-br from-red-400 to-red-600 rounded-2xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
|
|
|
|
|
</svg>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-4xl font-bold text-red-600 dark:text-red-400 mb-3">{{ denied_requests }}</div>
|
|
|
|
|
<div class="text-xl font-semibold text-professional-secondary">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">
|
|
|
|
|
<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 class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="text-red-500 dark:text-red-400 mb-8">
|
|
|
|
|
<div class="w-20 h-20 bg-gradient-to-br from-red-400 to-red-600 rounded-3xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-10 h-10 text-white" 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>
|
|
|
|
|
</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-professional-muted text-lg">{{ 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">
|
|
|
|
|
<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 class="professional-container animate-slide-up" style="padding: 3rem; border-radius: 2rem; text-center;">
|
|
|
|
|
<div class="text-professional-muted mb-8">
|
|
|
|
|
<div class="w-20 h-20 bg-gradient-to-br from-slate-400 to-slate-600 rounded-3xl mx-auto mb-6 flex items-center justify-center">
|
|
|
|
|
<svg class="w-10 h-10 text-white" 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>
|
|
|
|
|
</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-professional-muted mb-8 text-lg">
|
|
|
|
|
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 professional-container" style="padding: 3rem; border-radius: 2rem; border-left: 6px 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-6 lg: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 items-center space-x-6 mb-6">
|
|
|
|
|
<div class="text-2xl 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;">
|
|
|
|
|
{% if request.status == 'pending' %}
|
|
|
|
|
<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="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
|
|
|
</svg>
|
|
|
|
|
Wird geprüft
|
|
|
|
|
{% elif request.status == 'approved' %}
|
|
|
|
|
<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="M5 13l4 4L19 7"/>
|
|
|
|
|
</svg>
|
|
|
|
|
Genehmigt
|
|
|
|
|
{% elif request.status == 'denied' %}
|
|
|
|
|
<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="M6 18L18 6M6 6l12 12"/>
|
|
|
|
|
</svg>
|
|
|
|
|
Abgelehnt
|
|
|
|
|
{% 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;">
|
|
|
|
|
<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="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z"/>
|
|
|
|
|
</svg>
|
|
|
|
|
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>
|
|
|
|
|
<div class="text-professional-muted font-medium">Antragsteller</div>
|
|
|
|
|
<div class="censored-text font-mono text-professional-secondary">{{ request.name }}</div>
|
|
|
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 text-base mb-6">
|
|
|
|
|
<div class="mb-glass p-4 rounded-xl">
|
|
|
|
|
<div class="text-professional-muted font-bold mb-2">Antragsteller</div>
|
|
|
|
|
<div class="censored-text font-mono text-professional-secondary text-lg">{{ request.name }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-professional-muted font-medium">E-Mail</div>
|
|
|
|
|
<div class="censored-text font-mono text-professional-secondary">{{ request.email }}</div>
|
|
|
|
|
<div class="mb-glass p-4 rounded-xl">
|
|
|
|
|
<div class="text-professional-muted font-bold mb-2">E-Mail</div>
|
|
|
|
|
<div class="censored-text font-mono text-professional-secondary text-lg">{{ 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="mb-glass p-4 rounded-xl">
|
|
|
|
|
<div class="text-professional-muted font-bold mb-2">Drucker</div>
|
|
|
|
|
<div class="text-professional-secondary text-lg">{{ request.printer_name if request.printer_name else 'Automatisch' }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-professional-muted font-medium">Dauer</div>
|
|
|
|
|
<div class="text-professional-secondary">{{ request.duration_min }} Min</div>
|
|
|
|
|
<div class="mb-glass p-4 rounded-xl">
|
|
|
|
|
<div class="text-professional-muted font-bold mb-2">Dauer</div>
|
|
|
|
|
<div class="text-professional-secondary text-lg">{{ 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="mb-glass p-4 rounded-xl">
|
|
|
|
|
<div class="text-professional-muted font-bold mb-3">Projektbeschreibung</div>
|
|
|
|
|
<div class="censored-text font-mono text-professional-secondary text-base">{{ 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">
|
|
|
|
|
{{ request.created_at.strftime('%d.%m.%Y') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-xs text-professional-muted">
|
|
|
|
|
{{ 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">
|
|
|
|
|
<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
|
|
|
|
|
<div class="mb-glass p-6 rounded-xl text-center lg:text-right">
|
|
|
|
|
<div class="text-lg font-bold text-professional-primary mb-2">
|
|
|
|
|
{{ request.created_at.strftime('%d.%m.%Y') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="text-base text-professional-secondary">
|
|
|
|
|
{{ request.created_at.strftime('%H:%M') }} Uhr
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% if request.status == 'approved' %}
|
|
|
|
|
<div class="mt-6">
|
|
|
|
|
<div class="status-professional status-approved" style="padding: 1rem 1.5rem;">
|
|
|
|
|
<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>
|
|
|
|
|
Startbereit
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@@ -200,18 +317,18 @@
|
|
|
|
|
{% 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-secondary-professional px-10 py-5 text-lg">
|
|
|
|
|
<svg class="w-6 h-6 mr-4" 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
|
|
|
|
@@ -224,6 +341,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
|
|
|
|
@@ -232,15 +357,15 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
}
|
|
|
|
|
}, 30000);
|
|
|
|
|
|
|
|
|
|
// Live-Zeitanzeige in Header (optional)
|
|
|
|
|
function updateTime() {
|
|
|
|
|
// Live-Zeitanzeige im Browser-Tab
|
|
|
|
|
function updateTabTitle() {
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const timeString = now.toLocaleTimeString('de-DE');
|
|
|
|
|
document.title = `Druckanträge (${timeString}) - Mercedes-Benz MYP Platform`;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
updateTime();
|
|
|
|
|
setInterval(updateTime, 1000);
|
|
|
|
|
updateTabTitle();
|
|
|
|
|
setInterval(updateTabTitle, 1000);
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|