diff --git a/Web/templates/student_cards_admin.html b/Web/templates/student_cards_admin.html index 586f8fc..6d30b0c 100644 --- a/Web/templates/student_cards_admin.html +++ b/Web/templates/student_cards_admin.html @@ -18,14 +18,31 @@ align-items: center; margin-bottom: 20px; flex-wrap: wrap; - gap: 10px; + gap: 15px; + } + + /* Neu strukturiertes Layout für Formular & Import */ + .dashboard-grid { + display: grid; + grid-template-columns: 2fr 1fr; + gap: 20px; + margin-bottom: 30px; } .student-card-form { background: var(--ui-bg); padding: 20px; border-radius: 8px; - margin-bottom: 30px; + } + + .import-card { + border: 1px solid #dbe4ee; + border-radius: 8px; + padding: 20px; + background: #f8fbff; + display: flex; + flex-direction: column; + justify-content: space-between; } .form-row { @@ -35,6 +52,10 @@ margin-bottom: 15px; } + .form-row.full-width { + grid-template-columns: 1fr; + } + .form-group { display: flex; flex-direction: column; @@ -47,7 +68,8 @@ } .form-group input, - .form-group select { + .form-group select, + .form-group textarea { padding: 10px; border: 1px solid #ddd; border-radius: 4px; @@ -55,7 +77,8 @@ } .form-group input:focus, - .form-group select:focus { + .form-group select:focus, + .form-group textarea:focus { outline: none; border-color: #007bff; box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); @@ -65,14 +88,16 @@ display: flex; gap: 10px; justify-content: flex-end; + margin-top: 10px; } - .form-actions button { + .form-actions button, .form-actions a { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; + text-decoration: none; } .btn-save { @@ -126,15 +151,18 @@ .card-actions { display: flex; gap: 8px; + align-items: center; } - .btn-edit, .btn-delete { + .btn-edit, .btn-delete, .btn-export { padding: 6px 12px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; + text-decoration: none; + display: inline-block; } .btn-edit { @@ -164,9 +192,6 @@ font-weight: 600; text-decoration: none; display: inline-block; - } - - .btn-print { background: #17a2b8; color: white; } @@ -188,6 +213,7 @@ display: flex; gap: 10px; flex-wrap: wrap; + align-items: center; } .empty-state { @@ -201,6 +227,12 @@ margin: 10px 0; } + @media (max-width: 992px) { + .dashboard-grid { + grid-template-columns: 1fr; + } + } + @media (max-width: 768px) { .form-row { grid-template-columns: 1fr; @@ -222,14 +254,16 @@ .card-actions { flex-direction: column; + align-items: stretch; } }
+
-

📚 Bibliotheksausweise (Bibliothek)

+

📚 Bibliotheksausweise

@@ -239,7 +273,7 @@ {% endfor %} - +
📥 Alle Ausweise (PDF) @@ -247,93 +281,105 @@
-
-

Excel-Import Bibliotheksausweise

-

Laden Sie eine .xlsx- oder .csv-Datei hoch, zum Beispiel aus ASV (Amtliche Schuldaten). Erkannt werden automatisch Spalten wie Name, NachnameKlasse, Ausweis-ID (optional), lokales Differenzierungsmerkmal (optional aber empfohlen), Notizen (optional) und Standard-Ausleihdauer (optional).

-
- - - -
-
+ +
+ +
+

{% if edit_mode %}Ausweis bearbeiten{% else %}Neuer Bibliotheksausweis{% endif %}

- -
-

{% if edit_mode %}Ausweis bearbeiten{% else %}Neuer Bibliotheksausweis{% endif %}

- -
- {% if edit_mode %} - - - {% else %} - - {% endif %} - -
-
- - -
-
- - -
-
- - -
-
- -
-
- - -
-
- - - - - {% for cls in available_classes %} - -
-
- -
-
- - -
-
- -
+ {% if edit_mode %} - Abbrechen + + + {% else %} + {% endif %} - + +
+
+ + +
+
+ + + + + {% for cls in available_classes %} + +
+
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ {% if edit_mode %} + Abbrechen + {% endif %} + +
+ +
+ + +
+
+

Excel-Import

+

+ Laden Sie eine .xlsx- oder .csv-Datei hoch (z. B. aus ASV). Erkannt werden Name, Nachname, Klasse, Ausweis-ID, lokales Differenzierungsmerkmal, Notizen & Ausleihdauer. +

- +
+ +
+ + +
+
+
-

Registrierte Ausweise

+

Registrierte Ausweise

{% if student_cards %} @@ -360,7 +406,7 @@ - 📥 PDF + 📥 PDF @@ -386,5 +432,4 @@ // All PDF exports now go through backend routes -{% endblock %} - +{% endblock %} \ No newline at end of file