From 9f000e2719a26bd929624b4a76668b44a70fe6f6 Mon Sep 17 00:00:00 2001 From: Thomas Hackner Date: Tue, 14 Jul 2026 00:56:24 +0200 Subject: [PATCH] Filterbereich entfernt, Suche + Aktionen als Toolbar zusammengefasst - Monat/Jahr-Filter geloescht (Server-Filter bleibt via URL nutzbar) - Suchfeld und die Buttons 'PDF Export' und 'Bewerbung hinzufuegen' in einer gemeinsamen Toolbar zusammengefasst, als Pill-Buttons - Tote filterForm-CSS und -JS entfernt Co-Authored-By: Claude --- public/css/styles.css | 23 ++-------- public/js/main.js | 15 ------- views/index.ejs | 99 ++++++++++--------------------------------- 3 files changed, 26 insertions(+), 111 deletions(-) diff --git a/public/css/styles.css b/public/css/styles.css index 0a30b46..f8c8619 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -414,38 +414,21 @@ button.loading::after { /* Responsive adjustments */ @media (max-width: 768px) { - /* Make filter section stack on mobile */ - #filterForm { - flex-direction: column; - align-items: stretch; - } - - #filterForm > div { - margin-bottom: 1rem; - } - - /* Adjust buttons on mobile */ - #filterForm .flex.space-x-2, - #filterForm .ml-auto, - #filterForm > div:last-child { - margin-bottom: 0 !important; - } - /* Make table scroll horizontally on mobile */ .overflow-hidden { overflow-x: auto; } - + table { min-width: 768px; } - + /* Adjust modal width on mobile */ .max-w-lg { max-width: 90vw; margin: 0 5vw; } - + .max-w-md { max-width: 90vw; margin: 0 5vw; diff --git a/public/js/main.js b/public/js/main.js index af08b0a..5b2192c 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -13,7 +13,6 @@ const pdfExportModal = document.getElementById('pdfExportModal'); // Form Elements const applicationForm = document.getElementById('applicationForm'); const pdfExportForm = document.getElementById('pdfExportForm'); -const filterForm = document.getElementById('filterForm'); // Button Elements const addApplicationBtn = document.getElementById('addApplicationBtn'); @@ -657,20 +656,6 @@ closePdfModal.addEventListener('click', () => hideModal(pdfExportModal)); cancelPdfExport.addEventListener('click', () => hideModal(pdfExportModal)); pdfExportForm.addEventListener('submit', generatePDF); -// Filter Form -document.getElementById('filterForm').addEventListener('submit', function(e) { - e.preventDefault(); - const month = document.getElementById('filterMonth').value; - const year = document.getElementById('filterYear').value; - let url = '/'; - if (month || year) { - url += '?'; - if (month) url += `month=${month}&`; - if (year) url += `year=${year}&`; - } - window.location.href = url; -}); - // Delete buttons (event delegation). Editing opens its own page (/bewerbung/:id). document.addEventListener('click', (e) => { if (e.target.closest('.delete-btn')) { diff --git a/views/index.ejs b/views/index.ejs index d172918..64cc42a 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -7,9 +7,9 @@ <%- include('partials/header') %>
- -
-
+ +
+
@@ -20,80 +20,27 @@
-
- -
-

Filter

-
-
- - -
- -
- - -
- -
- - - Zurücksetzen - -
- -
- -
- -
- -
-
+
+ + +