From 7744a1865724d9b49ff1291602ff9d55c13f8ebb Mon Sep 17 00:00:00 2001 From: Stiftung Development Date: Fri, 19 Sep 2025 12:36:17 +0200 Subject: [PATCH] Fix and enhance CSV import templates - Update Destinataer template: added 8 missing fields (ist_abkoemmling, haushaltsgroesse, monatliche_bezuege, vermoegen, unterstuetzung_bestaetigt, vierteljaehrlicher_betrag, studiennachweis_erforderlich, letzter_studiennachweis) - Update Laendereien template: added 20 missing fields including property details, tenant info, contract terms, financial data, and tax information - Fix JavaScript template download functionality: correct block name from extra_js to javascript - Add comprehensive debugging and error handling for download process - Improve CSV formatting with proper quoting for text fields containing spaces - Add fallback download methods for better browser compatibility All CSV templates now include complete field sets matching current model definitions. --- app/templates/stiftung/csv_import_form.html | 83 +++++++++--- deploy-production/docker-compose.prod.yml | 140 ++++++++++++++++++++ 2 files changed, 204 insertions(+), 19 deletions(-) create mode 100644 deploy-production/docker-compose.prod.yml diff --git a/app/templates/stiftung/csv_import_form.html b/app/templates/stiftung/csv_import_form.html index cb57bfc..c7cd854 100644 --- a/app/templates/stiftung/csv_import_form.html +++ b/app/templates/stiftung/csv_import_form.html @@ -118,16 +118,16 @@
@@ -140,42 +140,87 @@ {% endblock %} -{% block extra_js %} +{% block javascript %}