From fdf872e8d5a5006c554dcce456b4e7aea4f848bb Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Thu, 19 Sep 2024 16:34:12 -0400 Subject: [PATCH 01/20] Turned on B5 for view --- .../apps/export/templates/export/bootstrap5/export_list.html | 2 +- corehq/apps/export/views/list.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/corehq/apps/export/templates/export/bootstrap5/export_list.html b/corehq/apps/export/templates/export/bootstrap5/export_list.html index dd3fa8a23086..f9845cf02cb2 100644 --- a/corehq/apps/export/templates/export/bootstrap5/export_list.html +++ b/corehq/apps/export/templates/export/bootstrap5/export_list.html @@ -1,4 +1,4 @@ -{% extends 'hqwebapp/bootstrap3/base_section.html' %} +{% extends 'hqwebapp/bootstrap5/base_section.html' %} {% load crispy_forms_tags %} {% load i18n %} {% load hq_shared_tags %} diff --git a/corehq/apps/export/views/list.py b/corehq/apps/export/views/list.py index 3e81fcc311c8..a1a3beda7630 100644 --- a/corehq/apps/export/views/list.py +++ b/corehq/apps/export/views/list.py @@ -68,6 +68,7 @@ ExportsPermissionsManager, user_can_view_deid_exports, ) +from corehq.apps.hqwebapp.decorators import use_bootstrap5 from corehq.apps.locations.models import SQLLocation from corehq.apps.locations.permissions import ( location_restricted_response, @@ -496,7 +497,7 @@ def create_export_form(self): class BaseExportListView(BaseProjectDataView): - template_name = 'export/bootstrap3/export_list.html' + template_name = 'export/bootstrap5/export_list.html' lead_text = mark_safe(gettext_lazy( # nosec: no user input ''' Exports are a way to download data in a variety of formats (CSV, Excel, etc.) @@ -506,6 +507,7 @@ class BaseExportListView(BaseProjectDataView): page_title = gettext_lazy("Export Form Data") @method_decorator(login_and_domain_required) + @method_decorator(use_bootstrap5) def dispatch(self, request, *args, **kwargs): self.permissions = ExportsPermissionsManager(self.form_or_case, request.domain, request.couch_user) self.permissions.access_list_exports_or_404(is_deid=self.is_deid, is_odata=self.is_odata) From 007f808d785ae3df2c4c75512e52c520913a95a4 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Thu, 19 Sep 2024 16:35:25 -0400 Subject: [PATCH 02/20] Updated modal headers --- .../bulk_delete_custom_export_dialog.html | 4 +-- .../delete_custom_export_dialog.html | 4 +-- .../bootstrap5/process_deleted_questions.html | 6 ++-- .../process_deprecated_properties.html | 6 ++-- .../export_list_create_export_modal.html | 6 ++-- .../bootstrap5/feed_filter_modal.html | 6 ++-- .../odata_feed_limit_reached_modal.html | 6 ++-- .../export/partials/bootstrap5/table.html | 33 ++++--------------- 8 files changed, 20 insertions(+), 51 deletions(-) diff --git a/corehq/apps/export/templates/export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html b/corehq/apps/export/templates/export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html index 3f6fc06b352f..456a3545a17a 100644 --- a/corehq/apps/export/templates/export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html +++ b/corehq/apps/export/templates/export/dialogs/bootstrap5/bulk_delete_custom_export_dialog.html @@ -3,8 +3,7 @@