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:
+3
-20
@@ -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;
|
||||
|
||||
@@ -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