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 <noreply@anthropic.com>
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user