From 9f648671f46216ff93092c663d4ad8c01d035edd Mon Sep 17 00:00:00 2001 From: Amit Phulera Date: Tue, 17 Sep 2024 09:13:34 +0300 Subject: [PATCH 01/16] update BaseExportView to use b5 templates --- corehq/apps/export/views/new.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/corehq/apps/export/views/new.py b/corehq/apps/export/views/new.py index f92c11ac1a5d..9a1c79e8c710 100644 --- a/corehq/apps/export/views/new.py +++ b/corehq/apps/export/views/new.py @@ -15,6 +15,7 @@ from memoized import memoized from corehq.apps.accounting.decorators import requires_privilege_with_fallback +from corehq.apps.hqwebapp.decorators import use_bootstrap5 from corehq.apps.reports.analytics.esaccessors import get_case_types_for_domain from dimagi.utils.web import json_response @@ -61,9 +62,10 @@ from corehq.apps.data_dictionary.models import CaseProperty +@method_decorator(use_bootstrap5, name='dispatch') class BaseExportView(BaseProjectDataView): """Base class for all create and edit export views""" - template_name = 'export/bootstrap3/customize_export_new.html' + template_name = 'export/bootstrap5/customize_export_new.html' export_type = None metric_name = None # Override is_async = True From a9303ccdf097ee710d6562c5e9320226e82470a3 Mon Sep 17 00:00:00 2001 From: Amit Phulera Date: Tue, 17 Sep 2024 09:16:25 +0300 Subject: [PATCH 02/16] update cutomize_export_new.html as per b5 recommendations --- .../bootstrap5/customize_export_new.html | 220 ++++++++---------- 1 file changed, 102 insertions(+), 118 deletions(-) diff --git a/corehq/apps/export/templates/export/bootstrap5/customize_export_new.html b/corehq/apps/export/templates/export/bootstrap5/customize_export_new.html index a2d75ce4cba2..dc251a3c36b4 100644 --- a/corehq/apps/export/templates/export/bootstrap5/customize_export_new.html +++ b/corehq/apps/export/templates/export/bootstrap5/customize_export_new.html @@ -15,10 +15,10 @@ {% initial_page_data 'export_instance' export_instance %} {% initial_page_data 'geo_properties' geo_properties %} -