From 8854fc26195f0348492ea2b7710ffc358beeb2cf Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Sat, 20 Sep 2025 00:14:26 +0200 Subject: [PATCH] Enhance Destinataer functionality: inline editing and improved list view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add inline edit mode to destinataer detail view with AJAX save/cancel - Fix form validation by aligning select choices with model definitions - Update Destinataer model to make familienzweig and berufsgruppe optional - Fix StiftungsKonto integration in forms and views - Redesign destinataer list view with new column layout: * Vorname, Nachname, E-Mail, Vierteljährlicher Betrag * Letzter Studiennachweis, Unterstützung bestätigt, Aktionen - Improve form styling and user experience - Add proper field validation and error handling - Enhance UI with better badges, icons, and formattingv2_sortorderfixed_remmer --- app/stiftung/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/stiftung/views.py b/app/stiftung/views.py index 0936959..9918e36 100644 --- a/app/stiftung/views.py +++ b/app/stiftung/views.py @@ -1109,11 +1109,17 @@ def destinataer_list(request): # Sorting sort_map = { + "vorname": ["vorname"], + "nachname": ["nachname"], + "email": ["email"], + "vierteljaehrlicher_betrag": ["vierteljaehrlicher_betrag"], + "letzter_studiennachweis": ["letzter_studiennachweis"], + "unterstuetzung_bestaetigt": ["unterstuetzung_bestaetigt"], + # Keep old mappings for backward compatibility "name": ["nachname", "vorname"], "familienzweig": ["familienzweig"], "berufsgruppe": ["berufsgruppe"], "institution": ["institution"], - "email": ["email"], "foerderungen": ["total_foerderungen"], "status": ["aktiv"], }