"Update template files and add windows fixes"

This commit is contained in:
2025-05-29 12:54:24 +02:00
parent 5707d577cc
commit ad92d3d978
7 changed files with 443 additions and 98 deletions

View File

@@ -251,7 +251,7 @@
<div class="flex justify-between items-center mb-8">
<div>
<h3 id="modalTitle" class="text-2xl font-bold text-slate-900 dark:text-white mb-2">
Neuen Produktionsauftrag erstellen
Neuen Produktionsauftrag erstellen
</h3>
<p class="text-slate-600 dark:text-slate-400">Planen Sie Ihren nächsten 3D-Druckauftrag mit Präzision</p>
</div>
@@ -269,7 +269,7 @@
<!-- Titel -->
<div class="md:col-span-2">
<label for="eventTitle" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
📝 Auftrags-Bezeichnung
Auftrags-Bezeichnung
</label>
<input type="text" id="eventTitle" name="title" required
class="w-full px-6 py-4 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300"
@@ -279,7 +279,7 @@
<!-- Beschreibung -->
<div class="md:col-span-2">
<label for="eventDescription" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
📋 Detaillierte Beschreibung
Detaillierte Beschreibung
</label>
<textarea id="eventDescription" name="description" rows="3"
class="w-full px-6 py-4 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300 resize-none"
@@ -289,14 +289,14 @@
<!-- Drucker -->
<div>
<label for="eventPrinter" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
🏭 Produktionseinheit
Produktionseinheit
</label>
<div class="relative">
<select id="eventPrinter" name="printerId" required
class="appearance-none w-full px-6 py-4 pr-12 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300 cursor-pointer">
<option value="">Drucker auswählen</option>
{% for printer in printers %}
<option value="{{ printer.id }}">{{ printer.name }} {% if printer.location %}📍 {{ printer.location }}{% endif %}</option>
<option value="{{ printer.id }}">{{ printer.name }} {% if printer.location %}({{ printer.location }}){% endif %}</option>
{% endfor %}
</select>
<div class="absolute inset-y-0 right-0 flex items-center pr-4 pointer-events-none">
@@ -310,14 +310,14 @@
<!-- Priorität -->
<div>
<label for="eventPriority" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
Prioritätsstufe
Prioritätsstufe
</label>
<div class="relative">
<select id="eventPriority" name="priority"
class="appearance-none w-full px-6 py-4 pr-12 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300 cursor-pointer">
<option value="normal">🔵 Standard</option>
<option value="high">🟡 Hoch</option>
<option value="urgent">🔴 Dringend</option>
<option value="normal">Standard</option>
<option value="high">Hoch</option>
<option value="urgent">Dringend</option>
</select>
<div class="absolute inset-y-0 right-0 flex items-center pr-4 pointer-events-none">
<svg class="h-5 w-5 text-slate-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -330,7 +330,7 @@
<!-- Start-Zeit -->
<div>
<label for="eventStart" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
🕐 Produktionsstart
Produktionsstart
</label>
<input type="datetime-local" id="eventStart" name="start" required
class="w-full px-6 py-4 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300">
@@ -339,7 +339,7 @@
<!-- End-Zeit -->
<div>
<label for="eventEnd" class="block text-sm font-semibold text-slate-700 dark:text-slate-300 mb-3">
🏁 Produktionsende
Produktionsende
</label>
<input type="datetime-local" id="eventEnd" name="end" required
class="w-full px-6 py-4 border border-slate-200 dark:border-slate-600 rounded-2xl bg-white/90 dark:bg-slate-700/90 backdrop-blur-sm text-slate-800 dark:text-white focus:ring-4 focus:ring-blue-500/25 focus:border-blue-500 transition-all duration-300">
@@ -354,11 +354,11 @@
</button>
<button type="submit"
class="px-8 py-3 bg-gradient-to-r from-blue-500 to-blue-600 text-white rounded-2xl hover:from-blue-600 hover:to-blue-700 transition-all duration-300 shadow-lg hover:shadow-xl font-medium">
💾 Auftrag speichern
Auftrag speichern
</button>
<button type="button" id="deleteEventBtn" onclick="deleteEvent()" style="display: none;"
class="px-8 py-3 bg-gradient-to-r from-red-500 to-red-600 text-white rounded-2xl hover:from-red-600 hover:to-red-700 transition-all duration-300 shadow-lg hover:shadow-xl font-medium">
🗑️ Löschen
Löschen
</button>
</div>
</form>
@@ -446,7 +446,7 @@ document.addEventListener('DOMContentLoaded', function() {
if (canEdit) {
// Edit existing event
openCreateEventModal();
document.getElementById('modalTitle').textContent = 'Produktionsauftrag bearbeiten';
document.getElementById('modalTitle').textContent = 'Produktionsauftrag bearbeiten';
document.getElementById('eventId').value = info.event.id;
document.getElementById('eventTitle').value = info.event.title;
document.getElementById('eventDescription').value = info.event.extendedProps.description || '';