From 6091b9833a2575882ce2e39d9b262bfbe7d1d70e Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 30 Apr 2024 17:59:39 -0400 Subject: [PATCH 01/91] Switched views to B5 --- corehq/apps/cloudcare/views.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/corehq/apps/cloudcare/views.py b/corehq/apps/cloudcare/views.py index d60ec2051ac7..6a9f139804c7 100644 --- a/corehq/apps/cloudcare/views.py +++ b/corehq/apps/cloudcare/views.py @@ -74,7 +74,7 @@ from corehq.apps.groups.models import Group from corehq.apps.hqwebapp.decorators import ( use_bootstrap5, - use_daterangepicker, + use_tempusdominus, waf_allow, ) from corehq.apps.hqwebapp.templatetags.hq_shared_tags import can_use_restore_as @@ -100,7 +100,8 @@ class FormplayerMain(View): urlname = 'formplayer_main' @xframe_options_sameorigin - @use_daterangepicker + @use_bootstrap5 + @use_tempusdominus @method_decorator(require_cloudcare_access) @method_decorator(requires_privilege_for_commcare_user(privileges.CLOUDCARE)) def dispatch(self, request, *args, **kwargs): @@ -214,7 +215,7 @@ def _default_lang(): } return set_cookie( - render(request, "cloudcare/bootstrap3/formplayer_home.html", context) + render(request, "cloudcare/bootstrap5/formplayer_home.html", context) ) @@ -231,17 +232,18 @@ def wrap_get_current_app_doc(self, domain, username, app_id): return get_current_app_doc(domain, app_id) +@method_decorator(use_bootstrap5, name='dispatch') +@method_decorator(use_tempusdominus, name='dispatch') class PreviewAppView(TemplateView): - template_name = 'cloudcare/bootstrap3/preview_app.html' + template_name = 'cloudcare/bootstrap5/preview_app.html' urlname = 'preview_app' - @use_daterangepicker @xframe_options_sameorigin def get(self, request, *args, **kwargs): mobile_ucr_count = get_mobile_ucr_count(request.domain) if should_restrict_web_apps_usage(request.domain, mobile_ucr_count): context = BlockWebAppsView.get_context_for_ucr_limit_error(request.domain, mobile_ucr_count) - return render(request, 'cloudcare/bootstrap3/block_preview_app.html', context) + return render(request, 'cloudcare/bootstrap5/block_preview_app.html', context) app = get_app(request.domain, kwargs.pop('app_id')) return self.render_to_response({ 'app': _format_app_doc(app.to_json()), @@ -357,7 +359,7 @@ def post(self, request, domain): readable_form = readable.get_readable_form_data(form_data_json, pretty_questions) rendered_readable_form = render_to_string( - 'reports/form/partials/bootstrap3/readable_form.html', + 'reports/form/partials/bootstrap5/readable_form.html', {'questions': readable_form} ) @@ -562,6 +564,7 @@ def _fail(error): return HttpResponseRedirect(reverse(FormplayerMain.urlname, args=[domain]) + "#" + cloudcare_state) +@method_decorator(use_bootstrap5, name='dispatch') class BlockWebAppsView(BaseDomainView): urlname = 'block_web_apps' From a35f80428f4efc40c74516f1185aebdfa9ddca45 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 3 Apr 2024 12:40:41 -0400 Subject: [PATCH 02/91] Updated javascript dependencies and added TODOs This is basically the result of running the bootstrap migration tool. --- .../static/cloudcare/js/debugger/debugger.js | 2 +- .../static/cloudcare/js/form_entry/entries.js | 2 +- .../static/cloudcare/js/form_entry/form_ui.js | 2 ++ .../static/cloudcare/js/formplayer/app.js | 1 + .../cloudcare/js/formplayer/menus/controller.js | 1 + .../static/cloudcare/js/formplayer/menus/views.js | 2 +- .../cloudcare/js/formplayer/menus/views/query.js | 15 ++++++++++----- .../static/cloudcare/js/formplayer/utils/utils.js | 3 ++- .../apps/cloudcare/static/cloudcare/js/utils.js | 14 ++++++++++---- 9 files changed, 29 insertions(+), 13 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/debugger/debugger.js b/corehq/apps/cloudcare/static/cloudcare/js/debugger/debugger.js index 4a86a56fc38a..d70377527f14 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/debugger/debugger.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/debugger/debugger.js @@ -6,7 +6,7 @@ hqDefine('cloudcare/js/debugger/debugger', [ 'clipboard/dist/clipboard', 'ace-builds/src-min-noconflict/ace', 'analytix/js/kissmetrix', - 'reports/js/bootstrap3/readable_form', + 'reports/js/bootstrap5/readable_form', 'hqwebapp/js/atwho', // $.atwho 'ace-builds/src-min-noconflict/mode-json', 'ace-builds/src-min-noconflict/mode-xml', diff --git a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js index f3e704619f37..b8891f35e039 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js @@ -14,7 +14,7 @@ hqDefine("cloudcare/js/form_entry/entries", [ 'cloudcare/js/form_entry/utils', 'signature_pad/dist/signature_pad.umd.min', 'mapbox.js/dist/mapbox.uncompressed', - 'hqwebapp/js/bootstrap3/knockout_bindings.ko', // fadeVisible + 'hqwebapp/js/bootstrap5/knockout_bindings.ko', // fadeVisible 'cloudcare/js/formplayer/utils/calendar-picker-translations', // EthiopianDateEntry 'select2/dist/js/select2.full.min', ], function ( diff --git a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js index 1f214574dc1c..e04e41782b1d 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js @@ -623,11 +623,13 @@ hqDefine("cloudcare/js/form_entry/form_ui", [ $(document).on("click", ".help-text-trigger", function (event) { event.preventDefault(); var container = $(event.currentTarget).closest(".caption"); + // todo B5: update to use B5 modal container.find(".modal").modal('show'); }); $(document).on("click", ".unsupported-question-type-trigger", function (event) { var container = $(event.currentTarget).closest(".widget"); + // todo B5: update to use B5 modal container.find(".modal").modal('show'); }); }; diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js index b63d64165d53..b725d857019a 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js @@ -130,6 +130,7 @@ hqDefine("cloudcare/js/formplayer/app", [ $('#webforms-nav').html(""); $('#cloudcare-debugger').html(""); $('.atwho-container').remove(); + // todo B5: update to use B5 modal $('#case-detail-modal').modal('hide'); }); diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js index b502e4ea982b..24551f71ef3b 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js @@ -255,6 +255,7 @@ hqDefine("cloudcare/js/formplayer/menus/controller", [ $('#case-detail-modal').find('.js-detail-tabs').html(tabListView.render().el); $('#case-detail-modal').find('.js-detail-content').html(contentView.render().el); $('#case-detail-modal').find('.js-detail-footer-content').html(detailFooterView.render().el); + // todo B5: update to use B5 modal $('#case-detail-modal').modal('show'); }; diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js index 1e342ec36f7d..3560b0bc396b 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views.js @@ -854,7 +854,7 @@ hqDefine("cloudcare/js/formplayer/menus/views", [ if (this.selectedCaseIds.length > this.maxSelectValue) { let errorMessage = _.template(gettext("You have selected more than the maximum selection limit " + "of <%- value %> . Please uncheck some values to continue."))({ value: this.maxSelectValue }); - hqRequire(["hqwebapp/js/bootstrap3/alert_user"], function (alertUser) { + hqRequire(["hqwebapp/js/bootstrap5/alert_user"], function (alertUser) { alertUser.alert_user(errorMessage, 'danger'); }); } diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js index bb9af94a8795..8b28de918abf 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js @@ -7,6 +7,7 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ 'backbone.marionette', 'moment', 'hqwebapp/js/initial_page_data', + 'hqwebapp/js/tempus_dominus', 'hqwebapp/js/toggles', 'analytix/js/kissmetrix', 'cloudcare/js/markdown', @@ -17,8 +18,7 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ 'cloudcare/js/formplayer/constants', 'cloudcare/js/formplayer/menus/collections', 'cloudcare/js/formplayer/utils/utils', - 'hqwebapp/js/bootstrap3/hq.helpers', // needed for hqHelp - 'bootstrap-daterangepicker/daterangepicker', // needed for $.daterangepicker + 'hqwebapp/js/bootstrap5/hq.helpers', // needed for hqHelp 'cloudcare/js/formplayer/menus/api', // needed for app:select:menus 'select2/dist/js/select2.full.min', ], function ( @@ -29,6 +29,7 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ Marionette, moment, initialPageData, + hqTempusDominus, toggles, kissmetrics, markdown, @@ -379,7 +380,7 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ self.model.set('searchForBlank', false); sessionStorage.removeItem('geocoderValues'); if (self.ui.date.length) { - self.ui.date.data("DateTimePicker").clear(); + self.ui.date.data("DateTimePicker").clear(); // todo B5 } self._render(); FormplayerFrontend.trigger('clearNotifications'); @@ -476,20 +477,24 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ this.ui.hqHelp.hqHelp({placement: 'auto ' + fallback}); } cloudcareUtils.initDatePicker(this.ui.date, this.model.get('value')); - this.ui.dateRange.daterangepicker({ + // todo B5: move to tempus dominus + //hqTempusDominus.createDateRangePicker(this.ui.dateRange); + /*this.ui.dateRange.daterangepicker({ locale: { format: dateFormat, separator: separator, }, autoUpdateInput: false, "autoApply": true, - }); + });*/ this.ui.dateRange.attr("placeholder", dateFormat + separator + dateFormat); let separatorChars = _.unique(separator).join(""); this.ui.dateRange.attr("pattern", "^[\\d\\/\\-" + separatorChars + "]*$"); + // todo B5: replace/remove this.ui.dateRange.on('cancel.daterangepicker', function () { $(this).val('').trigger('change'); }); + // todo B5: replace/remove this.ui.dateRange.on('apply.daterangepicker', function (ev, picker) { $(this).val(picker.startDate.format(dateFormat) + separator + picker.endDate.format(dateFormat)).trigger('change'); }); diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js index 387d5a764e98..6b95feb829bc 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js @@ -6,7 +6,7 @@ hqDefine("cloudcare/js/formplayer/utils/utils", [ 'DOMPurify/dist/purify.min', 'hqwebapp/js/initial_page_data', 'hqwebapp/js/toggles', - "cloudcare/js/formplayer/constants" + "cloudcare/js/formplayer/constants", ], function ( $, _, @@ -51,6 +51,7 @@ hqDefine("cloudcare/js/formplayer/utils/utils", [ $confirmationButton.on('click.confirmationModal', function (e) { options.onConfirm(e); }); + // todo B5: update to use B5 modal $modal.modal('show'); }; diff --git a/corehq/apps/cloudcare/static/cloudcare/js/utils.js b/corehq/apps/cloudcare/static/cloudcare/js/utils.js index e064655f7d46..77442f482dd3 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/utils.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/utils.js @@ -5,19 +5,20 @@ hqDefine('cloudcare/js/utils', [ 'backbone.marionette', 'moment', 'hqwebapp/js/initial_page_data', + 'hqwebapp/js/tempus_dominus', "hqwebapp/js/toggles", "cloudcare/js/formplayer/constants", "cloudcare/js/formplayer/layout/views/progress_bar", 'nprogress/nprogress', 'sentry_browser', "cloudcare/js/formplayer/users/models", - 'eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min', // for $.datetimepicker ], function ( $, _, Marionette, moment, initialPageData, + hqTempusDominus, toggles, constants, ProgressBar, @@ -389,7 +390,9 @@ hqDefine('cloudcare/js/utils', [ return; } - $el.datetimepicker({ + // todo B5: move to tempus dominus + //hqTempusDominus.createDatePicker($el); + /*$el.datetimepicker({ date: selectedDate, useCurrent: false, showClear: true, @@ -409,6 +412,7 @@ hqDefine('cloudcare/js/utils', [ $el.on("focusout", $el.data("DateTimePicker").hide); $el.attr("placeholder", dateFormat); $el.attr("pattern", "[0-9\-/]+"); // eslint-disable-line no-useless-escape + */ }; var initTimePicker = function ($el, selectedTime, timeFormat) { @@ -417,7 +421,9 @@ hqDefine('cloudcare/js/utils', [ } let date = moment(selectedTime, timeFormat); - $el.datetimepicker({ + // todo B5: move to tempus dominus + //hqTempusDominus.createTimePicker($el); + /*$el.datetimepicker({ date: date.isValid() ? date : null, format: timeFormat, useStrict: true, @@ -428,7 +434,7 @@ hqDefine('cloudcare/js/utils', [ tooltips: dateTimePickerTooltips, }); - $el.on("focusout", $el.data("DateTimePicker").hide); + $el.on("focusout", $el.data("DateTimePicker").hide);*/ }; var smallScreenIsEnabled = function () { From 2ae03a9774b612eecde8441ad51b2cfc051c8413 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 14 May 2024 14:27:26 -0400 Subject: [PATCH 03/91] Updated modals --- .../cloudcare/static/cloudcare/js/form_entry/form_ui.js | 8 ++++---- .../apps/cloudcare/static/cloudcare/js/formplayer/app.js | 5 +++-- .../static/cloudcare/js/formplayer/menus/controller.js | 6 +++--- .../static/cloudcare/js/formplayer/utils/utils.js | 5 +++-- .../partials/form_entry/bootstrap5/entry_unsupported.html | 5 ++--- .../partials/form_entry/bootstrap5/question.html | 8 ++++---- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js index e04e41782b1d..1d7117ddfd53 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/form_ui.js @@ -5,6 +5,7 @@ hqDefine("cloudcare/js/form_entry/form_ui", [ 'underscore', 'DOMPurify/dist/purify.min', 'hqwebapp/js/toggles', + 'es6!hqwebapp/js/bootstrap5_loader', 'cloudcare/js/markdown', 'cloudcare/js/utils', 'cloudcare/js/form_entry/const', @@ -17,6 +18,7 @@ hqDefine("cloudcare/js/form_entry/form_ui", [ _, DOMPurify, toggles, + bootstrap, markdown, cloudcareUtils, constants, @@ -623,14 +625,12 @@ hqDefine("cloudcare/js/form_entry/form_ui", [ $(document).on("click", ".help-text-trigger", function (event) { event.preventDefault(); var container = $(event.currentTarget).closest(".caption"); - // todo B5: update to use B5 modal - container.find(".modal").modal('show'); + bootstrap.Modal.getOrCreateInstance(container.find(".modal")).show(); }); $(document).on("click", ".unsupported-question-type-trigger", function (event) { var container = $(event.currentTarget).closest(".widget"); - // todo B5: update to use B5 modal - container.find(".modal").modal('show'); + bootstrap.Modal.getOrCreateInstance(container.find(".modal")).show(); }); }; diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js index b725d857019a..b00be20f89a1 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/app.js @@ -9,6 +9,7 @@ hqDefine("cloudcare/js/formplayer/app", [ 'backbone', 'backbone.marionette', 'markdown-it/dist/markdown-it', + 'es6!hqwebapp/js/bootstrap5_loader', 'hqwebapp/js/initial_page_data', 'analytix/js/appcues', 'analytix/js/google', @@ -30,6 +31,7 @@ hqDefine("cloudcare/js/formplayer/app", [ Backbone, Marionette, markdowner, + bootstrap, initialPageData, appcues, GGAnalytics, @@ -130,8 +132,7 @@ hqDefine("cloudcare/js/formplayer/app", [ $('#webforms-nav').html(""); $('#cloudcare-debugger').html(""); $('.atwho-container').remove(); - // todo B5: update to use B5 modal - $('#case-detail-modal').modal('hide'); + bootstrap.Modal.getOrCreateInstance($('#case-detail-modal')).hide(); }); FormplayerFrontend.getChannel().reply('clearMenu', function () { diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js index 24551f71ef3b..f58904708bcc 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/controller.js @@ -4,6 +4,7 @@ hqDefine("cloudcare/js/formplayer/menus/controller", [ 'underscore', 'backbone', 'DOMPurify/dist/purify.min', + 'es6!hqwebapp/js/bootstrap5_loader', 'hqwebapp/js/initial_page_data', 'hqwebapp/js/toggles', 'cloudcare/js/markdown', @@ -21,6 +22,7 @@ hqDefine("cloudcare/js/formplayer/menus/controller", [ _, Backbone, DOMPurify, + bootstrap, initialPageData, toggles, markdown, @@ -255,9 +257,7 @@ hqDefine("cloudcare/js/formplayer/menus/controller", [ $('#case-detail-modal').find('.js-detail-tabs').html(tabListView.render().el); $('#case-detail-modal').find('.js-detail-content').html(contentView.render().el); $('#case-detail-modal').find('.js-detail-footer-content').html(detailFooterView.render().el); - // todo B5: update to use B5 modal - $('#case-detail-modal').modal('show'); - + bootstrap.Modal.getOrCreateInstance($('#case-detail-modal')).show(); }; var getDetailList = function (detailObject) { diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js index 6b95feb829bc..5a5d413cccf9 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/utils/utils.js @@ -4,6 +4,7 @@ hqDefine("cloudcare/js/formplayer/utils/utils", [ 'underscore', 'backbone', 'DOMPurify/dist/purify.min', + 'es6!hqwebapp/js/bootstrap5_loader', 'hqwebapp/js/initial_page_data', 'hqwebapp/js/toggles', "cloudcare/js/formplayer/constants", @@ -12,6 +13,7 @@ hqDefine("cloudcare/js/formplayer/utils/utils", [ _, Backbone, DOMPurify, + bootstrap, initialPageData, toggles, constants @@ -51,8 +53,7 @@ hqDefine("cloudcare/js/formplayer/utils/utils", [ $confirmationButton.on('click.confirmationModal', function (e) { options.onConfirm(e); }); - // todo B5: update to use B5 modal - $modal.modal('show'); + bootstrap.Modal.getOrCreateInstance($modal).show(); }; Utils.encodedUrlToObject = function (encodedUrl) { diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html index 8f56dc4f4a55..b5cd5caded9d 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html @@ -1,3 +1,4 @@ +{% load hq_shared_tags %} {% load i18n %} From 7921e409431e0856154c31285c62de34dec839e4 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:20:21 -0400 Subject: [PATCH 11/91] Removed B3 files --- Gruntfile.js | 2 - .../bootstrap3/block_preview_app.html | 10 - .../cloudcare/bootstrap3/formplayer_home.html | 135 ------------ .../cloudcare/bootstrap3/preview_app.html | 82 ------- .../bootstrap3/preview_app_base.html | 95 -------- .../partials/bootstrap3/all_templates.html | 70 ------ .../partials/bootstrap3/case_detail.html | 66 ------ .../bootstrap3/confirmation_modal.html | 22 -- .../partials/bootstrap3/debugger.html | 204 ------------------ .../bootstrap3/new_app_version_modal.html | 36 ---- .../partials/bootstrap3/pagination.html | 108 ---------- .../partials/bootstrap3/progress.html | 20 -- .../partials/bootstrap3/settings_view.html | 47 ---- .../partials/case_list/bootstrap3/item.html | 25 --- .../partials/case_list/bootstrap3/list.html | 79 ------- .../case_list/bootstrap3/menu_header.html | 25 --- .../multi_select_continue_button.html | 11 - .../case_list/bootstrap3/search_controls.html | 28 --- .../case_list/bootstrap3/table_container.html | 31 --- .../bootstrap3/tile_grouped_item.html | 58 ----- .../case_list/bootstrap3/tile_item.html | 30 --- .../form_entry/bootstrap3/entry_button.html | 5 - .../bootstrap3/entry_choice_label.html | 30 --- .../form_entry/bootstrap3/entry_date.html | 7 - .../form_entry/bootstrap3/entry_datetime.html | 6 - .../form_entry/bootstrap3/entry_dropdown.html | 13 -- .../bootstrap3/entry_ethiopian_date.html | 6 - .../form_entry/bootstrap3/entry_file.html | 23 -- .../form_entry/bootstrap3/entry_geo.html | 36 ---- .../bootstrap3/entry_multidropdown.html | 12 -- .../form_entry/bootstrap3/entry_password.html | 10 - .../form_entry/bootstrap3/entry_select.html | 30 --- .../bootstrap3/entry_signature.html | 24 --- .../form_entry/bootstrap3/entry_str.html | 12 -- .../form_entry/bootstrap3/entry_text.html | 12 -- .../form_entry/bootstrap3/entry_time.html | 6 - .../bootstrap3/entry_unsupported.html | 27 --- .../partials/form_entry/bootstrap3/form.html | 72 ------- .../bootstrap3/grouped_element_tile_row.html | 5 - .../bootstrap3/help_multimedia.html | 23 -- .../form_entry/bootstrap3/multimedia.html | 24 --- .../form_entry/bootstrap3/question.html | 138 ------------ .../bootstrap3/repeat_juncture.html | 30 --- .../form_entry/bootstrap3/sub_group.html | 87 -------- .../partials/grid_view/bootstrap3/grid.html | 55 ----- .../bootstrap3/landing_page_app.html | 17 -- .../partials/grid_view/bootstrap3/row.html | 12 -- .../grid_view/bootstrap3/single_app.html | 58 ----- .../partials/menu/bootstrap3/audio.html | 24 --- .../partials/menu/bootstrap3/badge.html | 11 - .../partials/menu/bootstrap3/breadcrumbs.html | 15 -- .../partials/menu/bootstrap3/dropdown.html | 24 --- .../partials/menu/bootstrap3/grid.html | 10 - .../partials/menu/bootstrap3/grid_item.html | 30 --- .../partials/menu/bootstrap3/list.html | 11 - .../partials/query/bootstrap3/group.html | 16 -- .../partials/query/bootstrap3/item.html | 97 --------- .../partials/query/bootstrap3/list.html | 40 ---- .../partials/sessions/bootstrap3/list.html | 36 ---- .../partials/users/bootstrap3/restore_as.html | 33 --- .../cloudcare/spec/bootstrap3/mocha.html | 21 -- .../spec/form_entry/bootstrap3/mocha.html | 19 -- .../tests/utils/test_bootstrap_changes.py | 2 - 63 files changed, 2353 deletions(-) delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/bootstrap3/block_preview_app.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/bootstrap3/formplayer_home.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app_base.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/all_templates.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/case_detail.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/confirmation_modal.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/debugger.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/new_app_version_modal.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/pagination.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/progress.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/settings_view.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/item.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/list.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/menu_header.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/multi_select_continue_button.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/search_controls.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/table_container.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_grouped_item.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_item.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_button.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_choice_label.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_date.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_datetime.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_dropdown.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_ethiopian_date.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_file.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_geo.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_multidropdown.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_password.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_select.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_signature.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_str.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_text.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_time.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_unsupported.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/form.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/grouped_element_tile_row.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/help_multimedia.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/multimedia.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/question.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/repeat_juncture.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/sub_group.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/grid.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/landing_page_app.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/row.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/single_app.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/audio.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/badge.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/breadcrumbs.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/dropdown.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid_item.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/list.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/group.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/item.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/list.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap3/list.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap3/restore_as.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap3/mocha.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap3/mocha.html diff --git a/Gruntfile.js b/Gruntfile.js index 6f526ce96a47..dde6ef09b484 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -34,9 +34,7 @@ module.exports = function (grunt) { 'reports_core/choiceListUtils', 'locations', 'userreports', - 'cloudcare/bootstrap3', 'cloudcare/bootstrap5', - 'cloudcare/form_entry/bootstrap3', 'cloudcare/form_entry/bootstrap5', 'hqwebapp/bootstrap3', 'hqwebapp/bootstrap5', diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/block_preview_app.html b/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/block_preview_app.html deleted file mode 100644 index 16b55ca8707a..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/block_preview_app.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "cloudcare/bootstrap3/preview_app_base.html" %} -{% load hq_shared_tags %} -{% load compress %} -{% load i18n %} - -{% block body %} -
-

{{ error_message }}

-
-{% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/formplayer_home.html b/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/formplayer_home.html deleted file mode 100644 index 688aff40eb09..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/formplayer_home.html +++ /dev/null @@ -1,135 +0,0 @@ -{% extends 'hqwebapp/bootstrap3/base_navigation.html' %} -{% load i18n %} -{% load hq_shared_tags %} -{% load compress %} - -{% block title %} - {% trans "Web Apps" %} -{% endblock %} - -{% block page_title %}{% endblock %} - -{% block head %} - {{ block.super }} - - - - - - -{% endblock %} - -{% block navigation %}{{ block.super }} - -{% endblock navigation %} - -{% block stylesheets %} - {% compress css %} - - - - {% endcompress %} - {% compress css %} - - - - {% endcompress %} -{% endblock %} - -{% requirejs_main "cloudcare/js/formplayer/main" %} - -{% block js %} {{ block.super }} - {% include "cloudcare/partials/dependencies.html" %} -{% endblock %} - -{% block content %} - - {% initial_page_data 'apps' apps %} - {% initial_page_data 'domain_is_on_trial' domain_is_on_trial %} - {% initial_page_data 'debugger_enabled' request.couch_user.can_edit_data %} - {% initial_page_data 'domain' domain %} - {% initial_page_data 'environment' environment %} - {% initial_page_data 'formplayer_url' formplayer_url %} - {% initial_page_data 'language' language %} - {% initial_page_data 'mapbox_access_token' mapbox_access_token %} - {% initial_page_data 'default_geocoder_location' default_geocoder_location %} - {% initial_page_data 'username' username %} - {% initial_page_data 'has_geocoder_privs' has_geocoder_privs %} - {% initial_page_data 'dialer_enabled' integrations.dialer_enabled %} - {% initial_page_data 'gaen_otp_enabled' integrations.gaen_otp_enabled %} - {% initial_page_data 'hmac_root_url' integrations.hmac_root_url %} - {% initial_page_data 'hmac_api_key' integrations.hmac_api_key %} - {% initial_page_data 'hmac_hashed_secret' integrations.hmac_hashed_secret %} - {% initial_page_data 'sentry' sentry %} - {% initial_page_data 'valid_multimedia_extensions_map' valid_multimedia_extensions_map %} - {% initial_page_data 'lang_code_name_mapping' lang_code_name_mapping %} - {% registerurl 'list_case_exports' request.domain %} - {% registerurl 'list_form_exports' request.domain %} - {% registerurl 'case_data' request.domain '---' %} - {% registerurl 'render_form_data' request.domain '---' %} - {% registerurl 'report_formplayer_error' request.domain %} - {% registerurl 'report_sentry_error' request.domain %} - {% registerurl 'dialer_view' request.domain %} - {% registerurl 'api_histogram_metrics' request.domain %} - {% if integrations.gaen_otp_enabled %} - {% registerurl 'gaen_otp_view' request.domain %} - {% endif %} - - - -
-
- -
- - {% if request.couch_user.can_edit_data %} -
- {% endif %} -
- {% if not request.session.secure_session %} - {% include 'hqwebapp/includes/inactivity_modal_data.html' %} - {% endif %} - {% include 'cloudcare/partials/bootstrap3/confirmation_modal.html' %} - {% include 'cloudcare/partials/bootstrap3/new_app_version_modal.html' %} - {% include 'cloudcare/partials/bootstrap3/all_templates.html' %} - -{% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app.html b/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app.html deleted file mode 100644 index ae0e8bfb2056..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "cloudcare/bootstrap3/preview_app_base.html" %} -{% load hq_shared_tags %} -{% load compress %} - -{% block css %} - {% compress css %} - - - {% endcompress %} -{% endblock %} - -{% block body %} - {% block csrf_token_block %} - - {% endblock %} - - {% initial_page_data 'allowed_host' request.get_host %} - {% initial_page_data 'app' app %} - {% initial_page_data 'debugger_enabled' request.couch_user.can_edit_data %} - {% initial_page_data 'domain' request.domain %} - {% initial_page_data 'environment' environment %} - {% initial_page_data 'formplayer_url' formplayer_url %} - {% initial_page_data 'is_dimagi' request.couch_user.is_dimagi %} - {% initial_page_data 'language' request.user.language|default:'en' %} - {% initial_page_data 'mapbox_access_token' mapbox_access_token %} - {% initial_page_data 'default_geocoder_location' default_geocoder_location %} - {% initial_page_data 'has_geocoder_privs' has_geocoder_privs %} - {% initial_page_data 'username' request.user.username %} - {% initial_page_data 'dialer_enabled' integrations.dialer_enabled %} - {% initial_page_data 'gaen_otp_enabled' integrations.gaen_otp_enabled %} - {% initial_page_data 'hmac_root_url' integrations.hmac_root_url %} - {% initial_page_data 'hmac_api_key' integrations.hmac_api_key %} - {% initial_page_data 'hmac_hashed_secret' integrations.hmac_hashed_secret %} - {% initial_page_data 'secure_cookies' secure_cookies %} - {% initial_page_data 'sentry' sentry %} - {% initial_page_data 'valid_multimedia_extensions_map' valid_multimedia_extensions_map %} - {% registerurl 'list_case_exports' request.domain %} - {% registerurl 'list_form_exports' request.domain %} - {% registerurl 'login_new_window' %} - {% registerurl 'case_data' request.domain '---' %} - {% registerurl 'render_form_data' request.domain '---' %} - {% registerurl 'report_formplayer_error' request.domain %} - {% registerurl 'report_sentry_error' request.domain %} - {% registerurl 'dialer_view' request.domain %} - {% if integrations.gaen_otp_enabled %} - {% registerurl 'gaen_otp_view' request.domain %} - {% endif %} - -
- -{% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app_base.html b/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app_base.html deleted file mode 100644 index d39db32d4175..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap3/preview_app_base.html +++ /dev/null @@ -1,95 +0,0 @@ -{% load hq_shared_tags %} -{% load compress %} -{% load statici18n %} - -{% requirejs_main "cloudcare/js/preview_app/main" %} - - - - - - - - - - {% include 'hqwebapp/includes/bootstrap3/core_stylesheets.html' %} - {% compress css %} - - - {% endcompress %} - - {% if request.use_daterangepicker %} - {% compress css %} - - {% endcompress %} - {% endif %} - - {% block css %}{% endblock %} - - - - - - - - - {# DO NOT COMPRESS #} - - {% include "hqwebapp/partials/requirejs.html" %} - - - - - {# This is fine as an inline script; it'll be removed once form designer is migrated to RequireJS #} - - - -{% block body %}{% endblock %} - -{% include 'cloudcare/partials/bootstrap3/confirmation_modal.html' %} -{% include 'cloudcare/partials/bootstrap3/all_templates.html' %} - -{% block js %}{{ block.super }} - {% include 'cloudcare/partials/dependencies.html' %} -{% endblock %} - -{% initial_page_data 'toggles_dict' toggles_dict %} -{% initial_page_data 'previews_dict' previews_dict %} -
- {% block initial_page_data %} - {# do not override this block, use initial_page_data template tag to populate #} - {% endblock %} -
-
- {% block registered_urls %} - {# do not override this block, use registerurl template tag to populate #} - {% endblock %} -
-{% include 'analytics/initial/all.html' %} -
- {% block initial_analytics_data %} - {# do not override this block, use initial_analytics_data template tag to populate #} - {% endblock %} -
-
- {% block analytics_ab_test %} - {# do not override this block, use analytics_ab_test template tag to populate #} - {% endblock %} -
- - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/all_templates.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/all_templates.html deleted file mode 100644 index 6da8b8b468d1..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/all_templates.html +++ /dev/null @@ -1,70 +0,0 @@ -{% include 'cloudcare/partials/bootstrap3/case_detail.html' %} - -{% include 'cloudcare/partials/case_list/cell_container_style.html' %} -{% include 'cloudcare/partials/case_list/cell_grid_style.html' %} -{% include 'cloudcare/partials/case_list/cell_layout_style.html' %} -{% include 'cloudcare/partials/case_list/detail.html' %} -{% include 'cloudcare/partials/case_list/bootstrap3/item.html' %} -{% include 'cloudcare/partials/case_list/bootstrap3/list.html' %} -{% include 'cloudcare/partials/case_list/bootstrap3/tile_grouped_item.html' %} -{% include 'cloudcare/partials/case_list/bootstrap3/tile_item.html' %} - -{% include 'cloudcare/partials/bootstrap3/debugger.html' %} - -{% include 'cloudcare/partials/form_entry/bootstrap3/add_group.html' %} -{% include 'cloudcare/partials/form_entry/entry_address.html' %} -{% include 'cloudcare/partials/form_entry/entry_blank.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_button.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_choice_label.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_date.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_datetime.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_dropdown.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_ethiopian_date.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_file.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_geo.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_multidropdown.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_password.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_select.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_signature.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_str.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_text.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_time.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/entry_unsupported.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/form.html' %} -{% include 'cloudcare/partials/form_entry/form_navigation.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/grouped_element_tile_row.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/help_multimedia.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/multimedia.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/question.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/repeat_juncture.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap3/sub_group.html' %} - -{% include 'cloudcare/partials/grid_view/bootstrap3/grid.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap3/landing_page_app.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap3/row.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap3/single_app.html' %} - -{% include 'cloudcare/partials/menu/bootstrap3/audio.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/badge.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/breadcrumbs.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/dropdown.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/grid.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/grid_item.html' %} -{% include 'cloudcare/partials/menu/bootstrap3/list.html' %} -{% include 'cloudcare/partials/menu/row.html' %} - -{% include 'cloudcare/partials/bootstrap3/progress.html' %} - -{% include 'cloudcare/partials/query/bootstrap3/group.html' %} -{% include 'cloudcare/partials/query/bootstrap3/item.html' %} -{% include 'cloudcare/partials/query/bootstrap3/list.html' %} - -{% include 'cloudcare/partials/sessions/item.html' %} -{% include 'cloudcare/partials/sessions/bootstrap3/list.html' %} - -{% include 'cloudcare/partials/bootstrap3/settings_view.html' %} - -{% include 'cloudcare/partials/users/bootstrap3/restore_as.html' %} -{% include 'cloudcare/partials/users/restore_as_banner.html' %} -{% include 'cloudcare/partials/users/user_data.html' %} -{% include 'cloudcare/partials/users/user_row.html' %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/case_detail.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/case_detail.html deleted file mode 100644 index b3866998ce85..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/case_detail.html +++ /dev/null @@ -1,66 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - - - - - - - - - - - - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/confirmation_modal.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/confirmation_modal.html deleted file mode 100644 index 93ebe8b37ef1..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/confirmation_modal.html +++ /dev/null @@ -1,22 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/debugger.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/debugger.html deleted file mode 100644 index bad3785dfe1c..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/debugger.html +++ /dev/null @@ -1,204 +0,0 @@ -{% load i18n %} -{% load hq_shared_tags %} - - - - - - - - - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/new_app_version_modal.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/new_app_version_modal.html deleted file mode 100644 index fda4ed1cc884..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/new_app_version_modal.html +++ /dev/null @@ -1,36 +0,0 @@ -{% load i18n %} - - \ No newline at end of file diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/pagination.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/pagination.html deleted file mode 100644 index 9f76ed84b650..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/pagination.html +++ /dev/null @@ -1,108 +0,0 @@ -{% load i18n %} -{% load hq_shared_tags %} - - - -{% block pagination_templates %} - <% if (showPagination) { %> -
-
-
-
- -
-
- <% if (pageCount > 1) { %> -
-
- -
- -
-
-
-
- -
- <% } %> -
-
- <% } %> -{% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/progress.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/progress.html deleted file mode 100644 index 217a9de99c50..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/progress.html +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/settings_view.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/settings_view.html deleted file mode 100644 index 82100f963f38..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap3/settings_view.html +++ /dev/null @@ -1,47 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - - - - - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/item.html deleted file mode 100644 index 5d2e3ccdf449..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/item.html +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/list.html deleted file mode 100644 index 8900ae7bfed2..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/list.html +++ /dev/null @@ -1,79 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/menu_header.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/menu_header.html deleted file mode 100644 index 6567a87bb1be..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/menu_header.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - \ No newline at end of file diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/multi_select_continue_button.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/multi_select_continue_button.html deleted file mode 100644 index aac79cdaf029..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/multi_select_continue_button.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load i18n %} - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/search_controls.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/search_controls.html deleted file mode 100644 index 3a82e9185697..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/search_controls.html +++ /dev/null @@ -1,28 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - -
-
- <% if (isMultiSelect) { %> - - - <% } %> -
- -
diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/table_container.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/table_container.html deleted file mode 100644 index 3c0a0c08caa3..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/table_container.html +++ /dev/null @@ -1,31 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - -
- - - - - <% if (isMultiSelect && !hasNoItems) { %> - - <% } %> - <% _.each(headers, function(header, index) { %> - <% if (columnVisible(index)) { %> - <% if (columnSortable(index)) { %> - - <% } else { %> - - <% } %> - <% } %> - <% }); %> - - - - <% if (hasNoItems) { %> - {% include 'cloudcare/partials/case_list/no_items_text.html' %} - <% } %> - - - -
<%= header %> <%= header %>
-
diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_grouped_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_grouped_item.html deleted file mode 100644 index 4bbbb5b8d797..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_grouped_item.html +++ /dev/null @@ -1,58 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_item.html deleted file mode 100644 index ee7a88b5e5e8..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap3/tile_item.html +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_button.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_button.html deleted file mode 100644 index 7cd1c232c186..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_button.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_choice_label.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_choice_label.html deleted file mode 100644 index 4239ea40a2ef..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_choice_label.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_date.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_date.html deleted file mode 100644 index 3c3dbc2ff82e..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_date.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_datetime.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_datetime.html deleted file mode 100644 index 16106b11550b..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_datetime.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_dropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_dropdown.html deleted file mode 100644 index c13a03e542ce..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_dropdown.html +++ /dev/null @@ -1,13 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_ethiopian_date.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_ethiopian_date.html deleted file mode 100644 index ec803057a374..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_ethiopian_date.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_file.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_file.html deleted file mode 100644 index 443a711bb6c8..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_file.html +++ /dev/null @@ -1,23 +0,0 @@ -{% load hq_shared_tags %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_geo.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_geo.html deleted file mode 100644 index 5e04196a05ee..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_geo.html +++ /dev/null @@ -1,36 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_multidropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_multidropdown.html deleted file mode 100644 index 6f1a5f714789..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_multidropdown.html +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_password.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_password.html deleted file mode 100644 index 974ed1618f44..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_password.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_select.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_select.html deleted file mode 100644 index 55a4e3cde6dc..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_select.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_signature.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_signature.html deleted file mode 100644 index 0525e8ff265f..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_signature.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_str.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_str.html deleted file mode 100644 index 72d1bebf13dd..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_str.html +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_text.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_text.html deleted file mode 100644 index d4d52676564e..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_text.html +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_time.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_time.html deleted file mode 100644 index 1ed97412d140..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_time.html +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_unsupported.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_unsupported.html deleted file mode 100644 index 64df6d48ffa7..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/entry_unsupported.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/form.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/form.html deleted file mode 100644 index 83a5b5179c9b..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/form.html +++ /dev/null @@ -1,72 +0,0 @@ -{% load i18n %} -{% load hq_shared_tags %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/grouped_element_tile_row.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/grouped_element_tile_row.html deleted file mode 100644 index eee27db7a158..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/grouped_element_tile_row.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/help_multimedia.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/help_multimedia.html deleted file mode 100644 index 873b450e90e4..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/help_multimedia.html +++ /dev/null @@ -1,23 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/multimedia.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/multimedia.html deleted file mode 100644 index b16443943cbe..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/multimedia.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/question.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/question.html deleted file mode 100644 index 2a06fee977c6..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/question.html +++ /dev/null @@ -1,138 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/repeat_juncture.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/repeat_juncture.html deleted file mode 100644 index d93c5f82f94d..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/repeat_juncture.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load i18n %} -{% load hq_shared_tags %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/sub_group.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/sub_group.html deleted file mode 100644 index 1921862a72cb..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap3/sub_group.html +++ /dev/null @@ -1,87 +0,0 @@ -{% load i18n %} -{% load hq_shared_tags %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/grid.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/grid.html deleted file mode 100644 index 357330830112..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/grid.html +++ /dev/null @@ -1,55 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/landing_page_app.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/landing_page_app.html deleted file mode 100644 index 9df4533c619d..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/landing_page_app.html +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/row.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/row.html deleted file mode 100644 index bbb6d86c0e7b..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/row.html +++ /dev/null @@ -1,12 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/single_app.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/single_app.html deleted file mode 100644 index 768adc91005b..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap3/single_app.html +++ /dev/null @@ -1,58 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/audio.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/audio.html deleted file mode 100644 index e7aaf9feda42..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/audio.html +++ /dev/null @@ -1,24 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/badge.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/badge.html deleted file mode 100644 index 5c9ed4b230c6..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/badge.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/breadcrumbs.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/breadcrumbs.html deleted file mode 100644 index 4447ab2116cf..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/breadcrumbs.html +++ /dev/null @@ -1,15 +0,0 @@ -{% load i18n %} - - - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/dropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/dropdown.html deleted file mode 100644 index 28be407acf86..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/dropdown.html +++ /dev/null @@ -1,24 +0,0 @@ -{% load i18n %} - - - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid.html deleted file mode 100644 index 333474021597..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid.html +++ /dev/null @@ -1,10 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid_item.html deleted file mode 100644 index ed02feb25de9..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/grid_item.html +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/list.html deleted file mode 100644 index 9a18181ff0b3..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap3/list.html +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/group.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/group.html deleted file mode 100644 index bfa9fad7b455..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/group.html +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/item.html deleted file mode 100644 index 3615d5eb7839..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/item.html +++ /dev/null @@ -1,97 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/list.html deleted file mode 100644 index 00173bfb2e62..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap3/list.html +++ /dev/null @@ -1,40 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap3/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap3/list.html deleted file mode 100644 index 184140079780..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap3/list.html +++ /dev/null @@ -1,36 +0,0 @@ -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap3/restore_as.html b/corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap3/restore_as.html deleted file mode 100644 index dc9362778928..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap3/restore_as.html +++ /dev/null @@ -1,33 +0,0 @@ -{% load hq_shared_tags %} -{% load i18n %} - - diff --git a/corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap3/mocha.html b/corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap3/mocha.html deleted file mode 100644 index ac4e91b326a3..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap3/mocha.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "mocha/base.html" %} -{% load hq_shared_tags %} - -{% requirejs_main "cloudcare/js/formplayer/spec/main" %} - -{% block dependencies %} - {% include "cloudcare/partials/dependencies.html" %} -{% endblock %} - -{% block fixtures %} -
-
- -
- - - - {% include 'cloudcare/partials/bootstrap3/confirmation_modal.html' %} - {% include 'cloudcare/partials/bootstrap3/all_templates.html' %} - -{% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap3/mocha.html b/corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap3/mocha.html deleted file mode 100644 index c99aa28c8c24..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap3/mocha.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "mocha/base.html" %} -{% load hq_shared_tags %} - -{% requirejs_main "cloudcare/js/form_entry/spec/main" %} - -{% block stylesheets %}{{ block.super }} - -{% endblock %} - -{% block dependencies %} - {% include "cloudcare/partials/dependencies.html" %} -{% endblock %} - -{% block fixtures %} -
-{% endblock %} diff --git a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py index e8ac7acff41f..e79c107cd7fa 100644 --- a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py +++ b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py @@ -429,9 +429,7 @@ def test_update_gruntfile(): 'reports_core/choiceListUtils', 'locations', 'userreports', - 'cloudcare/bootstrap3', 'cloudcare/bootstrap5', - 'cloudcare/form_entry/bootstrap3', 'cloudcare/form_entry/bootstrap5', 'hqwebapp', 'case_importer', From 9f88ca50c87dbf87f176890c2d11446d2dcc39cc Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:20:29 -0400 Subject: [PATCH 12/91] Updated diff config The LESS stays in here because it's still used by integration/base_cloudcare_template.html --- .../tests/data/bootstrap5_diff_config.json | 101 ------------------ 1 file changed, 101 deletions(-) diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diff_config.json b/corehq/apps/hqwebapp/tests/data/bootstrap5_diff_config.json index a14e9b16b866..75a5f82ef875 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diff_config.json +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diff_config.json @@ -415,107 +415,6 @@ "compare_all_files": true } ], - "apps/cloudcare/templates/cloudcare": [ - { - "directories": [ - "bootstrap3", - "bootstrap5" - ], - "file_type": "template", - "label": "cloudcare", - "compare_all_files": true - }, - { - "directories": [ - "partials/bootstrap3", - "partials/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials", - "compare_all_files": true - }, - { - "directories": [ - "partials/case_list/bootstrap3", - "partials/case_list/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/case_list", - "compare_all_files": true - }, - { - "directories": [ - "partials/form_entry/bootstrap3", - "partials/form_entry/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/form_entry", - "compare_all_files": true - }, - { - "directories": [ - "partials/grid_view/bootstrap3", - "partials/grid_view/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/grid_view", - "compare_all_files": true - }, - { - "directories": [ - "partials/menu/bootstrap3", - "partials/menu/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/menu", - "compare_all_files": true - }, - { - "directories": [ - "partials/query/bootstrap3", - "partials/query/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/query", - "compare_all_files": true - }, - { - "directories": [ - "partials/sessions/bootstrap3", - "partials/sessions/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/sessions", - "compare_all_files": true - }, - { - "directories": [ - "partials/users/bootstrap3", - "partials/users/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/partials/users", - "compare_all_files": true - }, - { - "directories": [ - "spec/bootstrap3", - "spec/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/spec", - "compare_all_files": true - }, - { - "directories": [ - "spec/form_entry/bootstrap3", - "spec/form_entry/bootstrap5" - ], - "file_type": "template", - "label": "cloudcare/spec/form_entry", - "compare_all_files": true - } - ], "apps/notifications/static/notifications/spec": [ { "directories": [ From fa786f47de2f251455e1a72c32012c2a34cbf39a Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:32:35 -0400 Subject: [PATCH 13/91] Moved B5 files back into default positions --- Gruntfile.js | 4 +- .../{bootstrap5 => }/block_preview_app.html | 2 +- .../{bootstrap5 => }/formplayer_home.html | 6 +- .../cloudcare/partials/all_templates.html | 70 +++++++++++++++++++ .../partials/bootstrap5/all_templates.html | 70 ------------------- .../{bootstrap5 => }/case_detail.html | 0 .../case_list/{bootstrap5 => }/item.html | 0 .../case_list/{bootstrap5 => }/list.html | 12 ++-- .../{bootstrap5 => }/menu_header.html | 0 .../multi_select_continue_button.html | 0 .../{bootstrap5 => }/search_controls.html | 0 .../{bootstrap5 => }/table_container.html | 0 .../{bootstrap5 => }/tile_grouped_item.html | 0 .../case_list/{bootstrap5 => }/tile_item.html | 0 .../{bootstrap5 => }/confirmation_modal.html | 0 .../partials/{bootstrap5 => }/debugger.html | 0 .../{bootstrap5 => }/add_group.html | 0 .../{bootstrap5 => }/entry_button.html | 0 .../{bootstrap5 => }/entry_choice_label.html | 0 .../{bootstrap5 => }/entry_date.html | 0 .../{bootstrap5 => }/entry_datetime.html | 0 .../{bootstrap5 => }/entry_dropdown.html | 0 .../entry_ethiopian_date.html | 0 .../{bootstrap5 => }/entry_file.html | 0 .../{bootstrap5 => }/entry_geo.html | 0 .../{bootstrap5 => }/entry_multidropdown.html | 0 .../{bootstrap5 => }/entry_password.html | 0 .../{bootstrap5 => }/entry_select.html | 0 .../{bootstrap5 => }/entry_signature.html | 0 .../{bootstrap5 => }/entry_str.html | 0 .../{bootstrap5 => }/entry_text.html | 0 .../{bootstrap5 => }/entry_time.html | 0 .../{bootstrap5 => }/entry_unsupported.html | 0 .../form_entry/{bootstrap5 => }/form.html | 0 .../grouped_element_tile_row.html | 0 .../{bootstrap5 => }/help_multimedia.html | 0 .../{bootstrap5 => }/multimedia.html | 0 .../form_entry/{bootstrap5 => }/question.html | 0 .../{bootstrap5 => }/repeat_juncture.html | 0 .../{bootstrap5 => }/sub_group.html | 0 .../grid_view/{bootstrap5 => }/grid.html | 0 .../{bootstrap5 => }/landing_page_app.html | 0 .../grid_view/{bootstrap5 => }/row.html | 0 .../{bootstrap5 => }/single_app.html | 0 .../partials/menu/{bootstrap5 => }/audio.html | 0 .../partials/menu/{bootstrap5 => }/badge.html | 0 .../menu/{bootstrap5 => }/breadcrumbs.html | 0 .../menu/{bootstrap5 => }/dropdown.html | 0 .../partials/menu/{bootstrap5 => }/grid.html | 0 .../menu/{bootstrap5 => }/grid_item.html | 0 .../partials/menu/{bootstrap5 => }/list.html | 0 .../new_app_version_modal.html | 0 .../partials/{bootstrap5 => }/pagination.html | 0 .../partials/{bootstrap5 => }/progress.html | 0 .../query/{bootstrap5 => }/group.html | 0 .../partials/query/{bootstrap5 => }/item.html | 0 .../partials/query/{bootstrap5 => }/list.html | 0 .../sessions/{bootstrap5 => }/list.html | 2 +- .../{bootstrap5 => }/settings_view.html | 0 .../users/{bootstrap5 => }/restore_as.html | 2 +- .../{bootstrap5 => }/preview_app.html | 2 +- .../{bootstrap5 => }/preview_app_base.html | 4 +- .../form_entry/{bootstrap5 => }/mocha.html | 0 .../spec/{bootstrap5 => }/mocha.html | 4 +- corehq/apps/cloudcare/views.py | 6 +- .../tests/utils/test_bootstrap_changes.py | 4 +- 66 files changed, 94 insertions(+), 94 deletions(-) rename corehq/apps/cloudcare/templates/cloudcare/{bootstrap5 => }/block_preview_app.html (73%) rename corehq/apps/cloudcare/templates/cloudcare/{bootstrap5 => }/formplayer_home.html (96%) create mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/all_templates.html delete mode 100644 corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/all_templates.html rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/case_detail.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/item.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/list.html (82%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/menu_header.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/multi_select_continue_button.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/search_controls.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/table_container.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/tile_grouped_item.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/case_list/{bootstrap5 => }/tile_item.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/confirmation_modal.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/debugger.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/add_group.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_button.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_choice_label.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_date.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_datetime.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_dropdown.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_ethiopian_date.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_file.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_geo.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_multidropdown.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_password.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_select.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_signature.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_str.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_text.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_time.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/entry_unsupported.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/form.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/grouped_element_tile_row.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/help_multimedia.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/multimedia.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/question.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/repeat_juncture.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/{bootstrap5 => }/sub_group.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/{bootstrap5 => }/grid.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/{bootstrap5 => }/landing_page_app.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/{bootstrap5 => }/row.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/{bootstrap5 => }/single_app.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/audio.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/badge.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/breadcrumbs.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/dropdown.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/grid.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/grid_item.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/menu/{bootstrap5 => }/list.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/new_app_version_modal.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/pagination.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/progress.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/query/{bootstrap5 => }/group.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/query/{bootstrap5 => }/item.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/query/{bootstrap5 => }/list.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/sessions/{bootstrap5 => }/list.html (93%) rename corehq/apps/cloudcare/templates/cloudcare/partials/{bootstrap5 => }/settings_view.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/partials/users/{bootstrap5 => }/restore_as.html (92%) rename corehq/apps/cloudcare/templates/cloudcare/{bootstrap5 => }/preview_app.html (98%) rename corehq/apps/cloudcare/templates/cloudcare/{bootstrap5 => }/preview_app_base.html (95%) rename corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/{bootstrap5 => }/mocha.html (100%) rename corehq/apps/cloudcare/templates/cloudcare/spec/{bootstrap5 => }/mocha.html (79%) diff --git a/Gruntfile.js b/Gruntfile.js index dde6ef09b484..12503d1f7365 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -34,8 +34,8 @@ module.exports = function (grunt) { 'reports_core/choiceListUtils', 'locations', 'userreports', - 'cloudcare/bootstrap5', - 'cloudcare/form_entry/bootstrap5', + 'cloudcare', + 'cloudcare/form_entry', 'hqwebapp/bootstrap3', 'hqwebapp/bootstrap5', 'case_importer', diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/block_preview_app.html b/corehq/apps/cloudcare/templates/cloudcare/block_preview_app.html similarity index 73% rename from corehq/apps/cloudcare/templates/cloudcare/bootstrap5/block_preview_app.html rename to corehq/apps/cloudcare/templates/cloudcare/block_preview_app.html index 7b7bb59437de..6f534fe39f64 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/block_preview_app.html +++ b/corehq/apps/cloudcare/templates/cloudcare/block_preview_app.html @@ -1,4 +1,4 @@ -{% extends "cloudcare/bootstrap5/preview_app_base.html" %} +{% extends "cloudcare/preview_app_base.html" %} {% load hq_shared_tags %} {% load compress %} {% load i18n %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/formplayer_home.html b/corehq/apps/cloudcare/templates/cloudcare/formplayer_home.html similarity index 96% rename from corehq/apps/cloudcare/templates/cloudcare/bootstrap5/formplayer_home.html rename to corehq/apps/cloudcare/templates/cloudcare/formplayer_home.html index b88c5fa89c66..5044f4b284cc 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/formplayer_home.html +++ b/corehq/apps/cloudcare/templates/cloudcare/formplayer_home.html @@ -128,8 +128,8 @@ {% if not request.session.secure_session %} {% include 'hqwebapp/includes/inactivity_modal_data.html' %} {% endif %} - {% include 'cloudcare/partials/bootstrap5/confirmation_modal.html' %} - {% include 'cloudcare/partials/bootstrap5/new_app_version_modal.html' %} - {% include 'cloudcare/partials/bootstrap5/all_templates.html' %} + {% include 'cloudcare/partials/confirmation_modal.html' %} + {% include 'cloudcare/partials/new_app_version_modal.html' %} + {% include 'cloudcare/partials/all_templates.html' %} {% endblock %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/all_templates.html b/corehq/apps/cloudcare/templates/cloudcare/partials/all_templates.html new file mode 100644 index 000000000000..4f57ee8c4b4f --- /dev/null +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/all_templates.html @@ -0,0 +1,70 @@ +{% include 'cloudcare/partials/case_detail.html' %} + +{% include 'cloudcare/partials/case_list/cell_container_style.html' %} +{% include 'cloudcare/partials/case_list/cell_grid_style.html' %} +{% include 'cloudcare/partials/case_list/cell_layout_style.html' %} +{% include 'cloudcare/partials/case_list/detail.html' %} +{% include 'cloudcare/partials/case_list/item.html' %} +{% include 'cloudcare/partials/case_list/list.html' %} +{% include 'cloudcare/partials/case_list/tile_grouped_item.html' %} +{% include 'cloudcare/partials/case_list/tile_item.html' %} + +{% include 'cloudcare/partials/debugger.html' %} + +{% include 'cloudcare/partials/form_entry/add_group.html' %} +{% include 'cloudcare/partials/form_entry/entry_address.html' %} +{% include 'cloudcare/partials/form_entry/entry_blank.html' %} +{% include 'cloudcare/partials/form_entry/entry_button.html' %} +{% include 'cloudcare/partials/form_entry/entry_choice_label.html' %} +{% include 'cloudcare/partials/form_entry/entry_date.html' %} +{% include 'cloudcare/partials/form_entry/entry_datetime.html' %} +{% include 'cloudcare/partials/form_entry/entry_dropdown.html' %} +{% include 'cloudcare/partials/form_entry/entry_ethiopian_date.html' %} +{% include 'cloudcare/partials/form_entry/entry_file.html' %} +{% include 'cloudcare/partials/form_entry/entry_geo.html' %} +{% include 'cloudcare/partials/form_entry/entry_multidropdown.html' %} +{% include 'cloudcare/partials/form_entry/entry_password.html' %} +{% include 'cloudcare/partials/form_entry/entry_select.html' %} +{% include 'cloudcare/partials/form_entry/entry_signature.html' %} +{% include 'cloudcare/partials/form_entry/entry_str.html' %} +{% include 'cloudcare/partials/form_entry/entry_text.html' %} +{% include 'cloudcare/partials/form_entry/entry_time.html' %} +{% include 'cloudcare/partials/form_entry/entry_unsupported.html' %} +{% include 'cloudcare/partials/form_entry/form.html' %} +{% include 'cloudcare/partials/form_entry/form_navigation.html' %} +{% include 'cloudcare/partials/form_entry/grouped_element_tile_row.html' %} +{% include 'cloudcare/partials/form_entry/help_multimedia.html' %} +{% include 'cloudcare/partials/form_entry/multimedia.html' %} +{% include 'cloudcare/partials/form_entry/question.html' %} +{% include 'cloudcare/partials/form_entry/repeat_juncture.html' %} +{% include 'cloudcare/partials/form_entry/sub_group.html' %} + +{% include 'cloudcare/partials/grid_view/grid.html' %} +{% include 'cloudcare/partials/grid_view/landing_page_app.html' %} +{% include 'cloudcare/partials/grid_view/row.html' %} +{% include 'cloudcare/partials/grid_view/single_app.html' %} + +{% include 'cloudcare/partials/menu/audio.html' %} +{% include 'cloudcare/partials/menu/badge.html' %} +{% include 'cloudcare/partials/menu/breadcrumbs.html' %} +{% include 'cloudcare/partials/menu/dropdown.html' %} +{% include 'cloudcare/partials/menu/grid.html' %} +{% include 'cloudcare/partials/menu/grid_item.html' %} +{% include 'cloudcare/partials/menu/list.html' %} +{% include 'cloudcare/partials/menu/row.html' %} + +{% include 'cloudcare/partials/progress.html' %} + +{% include 'cloudcare/partials/query/group.html' %} +{% include 'cloudcare/partials/query/item.html' %} +{% include 'cloudcare/partials/query/list.html' %} + +{% include 'cloudcare/partials/sessions/item.html' %} +{% include 'cloudcare/partials/sessions/list.html' %} + +{% include 'cloudcare/partials/settings_view.html' %} + +{% include 'cloudcare/partials/users/restore_as.html' %} +{% include 'cloudcare/partials/users/restore_as_banner.html' %} +{% include 'cloudcare/partials/users/user_data.html' %} +{% include 'cloudcare/partials/users/user_row.html' %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/all_templates.html b/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/all_templates.html deleted file mode 100644 index 5c7867a6329a..000000000000 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/all_templates.html +++ /dev/null @@ -1,70 +0,0 @@ -{% include 'cloudcare/partials/bootstrap5/case_detail.html' %} - -{% include 'cloudcare/partials/case_list/cell_container_style.html' %} -{% include 'cloudcare/partials/case_list/cell_grid_style.html' %} -{% include 'cloudcare/partials/case_list/cell_layout_style.html' %} -{% include 'cloudcare/partials/case_list/detail.html' %} -{% include 'cloudcare/partials/case_list/bootstrap5/item.html' %} -{% include 'cloudcare/partials/case_list/bootstrap5/list.html' %} -{% include 'cloudcare/partials/case_list/bootstrap5/tile_grouped_item.html' %} -{% include 'cloudcare/partials/case_list/bootstrap5/tile_item.html' %} - -{% include 'cloudcare/partials/bootstrap5/debugger.html' %} - -{% include 'cloudcare/partials/form_entry/bootstrap5/add_group.html' %} -{% include 'cloudcare/partials/form_entry/entry_address.html' %} -{% include 'cloudcare/partials/form_entry/entry_blank.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_button.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_choice_label.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_date.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_datetime.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_dropdown.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_ethiopian_date.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_file.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_geo.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_multidropdown.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_password.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_select.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_signature.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_str.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_text.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_time.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/form.html' %} -{% include 'cloudcare/partials/form_entry/form_navigation.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/grouped_element_tile_row.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/help_multimedia.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/multimedia.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/question.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/repeat_juncture.html' %} -{% include 'cloudcare/partials/form_entry/bootstrap5/sub_group.html' %} - -{% include 'cloudcare/partials/grid_view/bootstrap5/grid.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap5/landing_page_app.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap5/row.html' %} -{% include 'cloudcare/partials/grid_view/bootstrap5/single_app.html' %} - -{% include 'cloudcare/partials/menu/bootstrap5/audio.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/badge.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/breadcrumbs.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/dropdown.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/grid.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/grid_item.html' %} -{% include 'cloudcare/partials/menu/bootstrap5/list.html' %} -{% include 'cloudcare/partials/menu/row.html' %} - -{% include 'cloudcare/partials/bootstrap5/progress.html' %} - -{% include 'cloudcare/partials/query/bootstrap5/group.html' %} -{% include 'cloudcare/partials/query/bootstrap5/item.html' %} -{% include 'cloudcare/partials/query/bootstrap5/list.html' %} - -{% include 'cloudcare/partials/sessions/item.html' %} -{% include 'cloudcare/partials/sessions/bootstrap5/list.html' %} - -{% include 'cloudcare/partials/bootstrap5/settings_view.html' %} - -{% include 'cloudcare/partials/users/bootstrap5/restore_as.html' %} -{% include 'cloudcare/partials/users/restore_as_banner.html' %} -{% include 'cloudcare/partials/users/user_data.html' %} -{% include 'cloudcare/partials/users/user_row.html' %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/case_detail.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_detail.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/case_detail.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_detail.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/item.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/item.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/item.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/list.html similarity index 82% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/list.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/list.html index 215ce50df5fe..c0d1429818af 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/list.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/list.html @@ -11,11 +11,11 @@ - {% include "cloudcare/partials/case_list/bootstrap5/menu_header.html" %} + {% include "cloudcare/partials/case_list/menu_header.html" %} <% if (isMultiSelect) { %>
- {% include 'cloudcare/partials/case_list/bootstrap5/multi_select_continue_button.html' %} + {% include 'cloudcare/partials/case_list/multi_select_continue_button.html' %}
<% } %> @@ -46,18 +46,18 @@ <% if (hasNoItems) { %> {% include 'cloudcare/partials/case_list/no_items_text.html' %} <% } else { %> - {% include 'cloudcare/partials/case_list/bootstrap5/search_controls.html' %} + {% include 'cloudcare/partials/case_list/search_controls.html' %} <% } %>
<% } else { %> - {% include 'cloudcare/partials/case_list/bootstrap5/table_container.html' %} + {% include 'cloudcare/partials/case_list/table_container.html' %} <% } %>
<% if (actions || isMultiSelect) { %>
<% if (isMultiSelect) { %> - {% include 'cloudcare/partials/case_list/bootstrap5/multi_select_continue_button.html' %} + {% include 'cloudcare/partials/case_list/multi_select_continue_button.html' %} <% } %> <% if (actions) { %> <% _.each(actions, function(action, index) { %> @@ -71,7 +71,7 @@ <% if (!hasNoItems) { %> {% block pagination_templates %} - {% include 'cloudcare/partials/bootstrap5/pagination.html' %} + {% include 'cloudcare/partials/pagination.html' %} {% endblock %} <% } %>
diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/menu_header.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/menu_header.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/menu_header.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/menu_header.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/multi_select_continue_button.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/multi_select_continue_button.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/multi_select_continue_button.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/multi_select_continue_button.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/search_controls.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/search_controls.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/search_controls.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/search_controls.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/table_container.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/table_container.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/table_container.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/table_container.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/tile_grouped_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/tile_grouped_item.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/tile_grouped_item.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/tile_grouped_item.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/tile_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/case_list/tile_item.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/case_list/bootstrap5/tile_item.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/case_list/tile_item.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/confirmation_modal.html b/corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/confirmation_modal.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/debugger.html b/corehq/apps/cloudcare/templates/cloudcare/partials/debugger.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/debugger.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/debugger.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/add_group.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/add_group.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/add_group.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/add_group.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_button.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_button.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_button.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_button.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_choice_label.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_choice_label.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_choice_label.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_choice_label.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_date.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_date.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_date.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_date.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_datetime.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_datetime.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_datetime.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_datetime.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_dropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_dropdown.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_dropdown.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_dropdown.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_ethiopian_date.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_ethiopian_date.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_ethiopian_date.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_ethiopian_date.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_file.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_file.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_file.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_file.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_geo.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_geo.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_geo.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_geo.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_multidropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_multidropdown.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_multidropdown.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_multidropdown.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_password.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_password.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_password.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_password.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_select.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_select.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_signature.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_signature.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_signature.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_signature.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_str.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_str.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_str.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_str.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_text.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_text.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_text.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_text.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_time.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_time.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_time.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_time.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_unsupported.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/entry_unsupported.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_unsupported.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/form.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/form.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/form.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/form.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/grouped_element_tile_row.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/grouped_element_tile_row.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/grouped_element_tile_row.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/grouped_element_tile_row.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/help_multimedia.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/help_multimedia.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/help_multimedia.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/help_multimedia.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/multimedia.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/multimedia.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/multimedia.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/multimedia.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/question.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/question.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/question.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/question.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/repeat_juncture.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/repeat_juncture.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/repeat_juncture.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/repeat_juncture.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/sub_group.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/sub_group.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/bootstrap5/sub_group.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/sub_group.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/grid.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/grid.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/grid.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/grid.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/landing_page_app.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/landing_page_app.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/landing_page_app.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/landing_page_app.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/row.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/row.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/row.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/row.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/single_app.html b/corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/single_app.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/bootstrap5/single_app.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/grid_view/single_app.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/audio.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/audio.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/audio.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/audio.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/badge.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/badge.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/badge.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/badge.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/breadcrumbs.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/breadcrumbs.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/breadcrumbs.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/breadcrumbs.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/dropdown.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/dropdown.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/dropdown.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/dropdown.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/grid.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/grid.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/grid.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/grid.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/grid_item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/grid_item.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/grid_item.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/grid_item.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/menu/list.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/menu/bootstrap5/list.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/menu/list.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/new_app_version_modal.html b/corehq/apps/cloudcare/templates/cloudcare/partials/new_app_version_modal.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/new_app_version_modal.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/new_app_version_modal.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/pagination.html b/corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/pagination.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/progress.html b/corehq/apps/cloudcare/templates/cloudcare/partials/progress.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/progress.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/progress.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/group.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/group.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/group.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/query/group.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/item.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/list.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/query/bootstrap5/list.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/query/list.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap5/list.html b/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/list.html similarity index 93% rename from corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap5/list.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/sessions/list.html index 3ad70e62c190..259ff5f35e9b 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/bootstrap5/list.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/sessions/list.html @@ -31,7 +31,7 @@

{% trans "Incomplete Forms" %}

<% if (endPage) { %> {% block pagination_templates %} - {% include 'cloudcare/partials/bootstrap5/pagination.html' %} + {% include 'cloudcare/partials/pagination.html' %} {% endblock %} <% } %> diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/settings_view.html b/corehq/apps/cloudcare/templates/cloudcare/partials/settings_view.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/partials/bootstrap5/settings_view.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/settings_view.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap5/restore_as.html b/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html similarity index 92% rename from corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap5/restore_as.html rename to corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html index 7ad4bccc54b2..23678716039f 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/users/bootstrap5/restore_as.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html @@ -24,7 +24,7 @@

{% trans "Log in as user" %}

<% if (endPage) { %> {% block pagination_templates %} - {% include 'cloudcare/partials/bootstrap5/pagination.html' %} + {% include 'cloudcare/partials/pagination.html' %} {% endblock %} <% } %> diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app.html b/corehq/apps/cloudcare/templates/cloudcare/preview_app.html similarity index 98% rename from corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app.html rename to corehq/apps/cloudcare/templates/cloudcare/preview_app.html index f5730db55c8c..1de3beb6e50d 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app.html +++ b/corehq/apps/cloudcare/templates/cloudcare/preview_app.html @@ -1,4 +1,4 @@ -{% extends "cloudcare/bootstrap5/preview_app_base.html" %} +{% extends "cloudcare/preview_app_base.html" %} {% load hq_shared_tags %} {% load compress %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html b/corehq/apps/cloudcare/templates/cloudcare/preview_app_base.html similarity index 95% rename from corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html rename to corehq/apps/cloudcare/templates/cloudcare/preview_app_base.html index 703fef9a181c..62b81b425b60 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/bootstrap5/preview_app_base.html +++ b/corehq/apps/cloudcare/templates/cloudcare/preview_app_base.html @@ -63,8 +63,8 @@ {% block body %}{% endblock %} -{% include 'cloudcare/partials/bootstrap5/confirmation_modal.html' %} -{% include 'cloudcare/partials/bootstrap5/all_templates.html' %} +{% include 'cloudcare/partials/confirmation_modal.html' %} +{% include 'cloudcare/partials/all_templates.html' %} {% block js %}{{ block.super }} {% include 'cloudcare/partials/dependencies.html' %} diff --git a/corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap5/mocha.html b/corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/mocha.html similarity index 100% rename from corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/bootstrap5/mocha.html rename to corehq/apps/cloudcare/templates/cloudcare/spec/form_entry/mocha.html diff --git a/corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap5/mocha.html b/corehq/apps/cloudcare/templates/cloudcare/spec/mocha.html similarity index 79% rename from corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap5/mocha.html rename to corehq/apps/cloudcare/templates/cloudcare/spec/mocha.html index 485a46e300a9..3cedc4fe1f95 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/spec/bootstrap5/mocha.html +++ b/corehq/apps/cloudcare/templates/cloudcare/spec/mocha.html @@ -15,7 +15,7 @@ - {% include 'cloudcare/partials/bootstrap5/confirmation_modal.html' %} - {% include 'cloudcare/partials/bootstrap5/all_templates.html' %} + {% include 'cloudcare/partials/confirmation_modal.html' %} + {% include 'cloudcare/partials/all_templates.html' %} {% endblock %} diff --git a/corehq/apps/cloudcare/views.py b/corehq/apps/cloudcare/views.py index 6a9f139804c7..0e44fd6792dc 100644 --- a/corehq/apps/cloudcare/views.py +++ b/corehq/apps/cloudcare/views.py @@ -215,7 +215,7 @@ def _default_lang(): } return set_cookie( - render(request, "cloudcare/bootstrap5/formplayer_home.html", context) + render(request, "cloudcare/formplayer_home.html", context) ) @@ -235,7 +235,7 @@ def wrap_get_current_app_doc(self, domain, username, app_id): @method_decorator(use_bootstrap5, name='dispatch') @method_decorator(use_tempusdominus, name='dispatch') class PreviewAppView(TemplateView): - template_name = 'cloudcare/bootstrap5/preview_app.html' + template_name = 'cloudcare/preview_app.html' urlname = 'preview_app' @xframe_options_sameorigin @@ -243,7 +243,7 @@ def get(self, request, *args, **kwargs): mobile_ucr_count = get_mobile_ucr_count(request.domain) if should_restrict_web_apps_usage(request.domain, mobile_ucr_count): context = BlockWebAppsView.get_context_for_ucr_limit_error(request.domain, mobile_ucr_count) - return render(request, 'cloudcare/bootstrap5/block_preview_app.html', context) + return render(request, 'cloudcare/block_preview_app.html', context) app = get_app(request.domain, kwargs.pop('app_id')) return self.render_to_response({ 'app': _format_app_doc(app.to_json()), diff --git a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py index e79c107cd7fa..1fb0c44d108d 100644 --- a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py +++ b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py @@ -429,8 +429,8 @@ def test_update_gruntfile(): 'reports_core/choiceListUtils', 'locations', 'userreports', - 'cloudcare/bootstrap5', - 'cloudcare/form_entry/bootstrap5', + 'cloudcare', + 'cloudcare/form_entry', 'hqwebapp', 'case_importer', ]; From a8d5b1f844f77c2059af26ecd2846ac4adf62af0 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:33:39 -0400 Subject: [PATCH 14/91] Bootstrap 5 Migration - Rebuilt diffs --- .../cloudcare/block_preview_app.html.diff.txt | 8 - .../cloudcare/formplayer_home.html.diff.txt | 69 ----- .../partials/all_templates.html.diff.txt | 121 --------- .../partials/case_detail.html.diff.txt | 51 ---- .../partials/case_list/item.html.diff.txt | 11 - .../partials/case_list/list.html.diff.txt | 96 ------- .../case_list/menu_header.html.diff.txt | 32 --- ...multi_select_continue_button.html.diff.txt | 19 -- .../case_list/search_controls.html.diff.txt | 29 -- .../case_list/table_container.html.diff.txt | 11 - .../case_list/tile_grouped_item.html.diff.txt | 49 ---- .../case_list/tile_item.html.diff.txt | 25 -- .../partials/confirmation_modal.html.diff.txt | 31 --- .../cloudcare/partials/debugger.html.diff.txt | 249 ------------------ .../form_entry/entry_button.html.diff.txt | 9 - .../entry_choice_label.html.diff.txt | 19 -- .../form_entry/entry_date.html.diff.txt | 15 -- .../form_entry/entry_datetime.html.diff.txt | 14 - .../form_entry/entry_dropdown.html.diff.txt | 10 - .../entry_ethiopian_date.html.diff.txt | 14 - .../form_entry/entry_file.html.diff.txt | 25 -- .../form_entry/entry_geo.html.diff.txt | 33 --- .../entry_multidropdown.html.diff.txt | 10 - .../form_entry/entry_password.html.diff.txt | 10 - .../form_entry/entry_select.html.diff.txt | 43 --- .../form_entry/entry_signature.html.diff.txt | 25 -- .../form_entry/entry_str.html.diff.txt | 10 - .../form_entry/entry_text.html.diff.txt | 10 - .../form_entry/entry_time.html.diff.txt | 14 - .../entry_unsupported.html.diff.txt | 11 - .../partials/form_entry/form.html.diff.txt | 38 --- .../grouped_element_tile_row.html.diff.txt | 9 - .../form_entry/help_multimedia.html.diff.txt | 11 - .../form_entry/multimedia.html.diff.txt | 11 - .../form_entry/question.html.diff.txt | 110 -------- .../form_entry/repeat_juncture.html.diff.txt | 31 --- .../form_entry/sub_group.html.diff.txt | 49 ---- .../partials/grid_view/grid.html.diff.txt | 42 --- .../grid_view/landing_page_app.html.diff.txt | 11 - .../partials/grid_view/row.html.diff.txt | 0 .../grid_view/single_app.html.diff.txt | 53 ---- .../partials/menu/audio.html.diff.txt | 11 - .../partials/menu/badge.html.diff.txt | 10 - .../partials/menu/breadcrumbs.html.diff.txt | 16 -- .../partials/menu/dropdown.html.diff.txt | 31 --- .../partials/menu/grid.html.diff.txt | 15 -- .../partials/menu/grid_item.html.diff.txt | 25 -- .../partials/menu/list.html.diff.txt | 10 - .../new_app_version_modal.html.diff.txt | 38 --- .../partials/pagination.html.diff.txt | 212 --------------- .../cloudcare/partials/progress.html.diff.txt | 19 -- .../partials/query/group.html.diff.txt | 19 -- .../partials/query/item.html.diff.txt | 88 ------- .../partials/query/list.html.diff.txt | 33 --- .../partials/sessions/list.html.diff.txt | 31 --- .../partials/settings_view.html.diff.txt | 47 ---- .../partials/users/restore_as.html.diff.txt | 33 --- .../cloudcare/preview_app.html.diff.txt | 28 -- .../cloudcare/preview_app_base.html.diff.txt | 99 ------- .../spec/form_entry/mocha.html.diff.txt | 11 - .../cloudcare/spec/mocha.html.diff.txt | 21 -- ...grid.formplayer-common_grid.style.diff.txt | 7 + ...n.formplayer-common_version.style.diff.txt | 8 + 63 files changed, 15 insertions(+), 2235 deletions(-) delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/block_preview_app.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/formplayer_home.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/all_templates.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_detail.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/item.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/list.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/menu_header.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/multi_select_continue_button.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/search_controls.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/table_container.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/tile_grouped_item.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/case_list/tile_item.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/confirmation_modal.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/debugger.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_button.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_choice_label.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_date.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_datetime.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_dropdown.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_ethiopian_date.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_file.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_geo.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_multidropdown.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_password.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_select.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_signature.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_str.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_text.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_time.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/entry_unsupported.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/form.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/grouped_element_tile_row.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/help_multimedia.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/multimedia.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/question.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/repeat_juncture.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/sub_group.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/grid_view/grid.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/grid_view/landing_page_app.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/grid_view/row.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/grid_view/single_app.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/audio.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/badge.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/breadcrumbs.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/dropdown.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid_item.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/list.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/new_app_version_modal.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/pagination.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/progress.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/group.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/item.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/list.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/sessions/list.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/settings_view.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/users/restore_as.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/preview_app.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/preview_app_base.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/spec/form_entry/mocha.html.diff.txt delete mode 100644 corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/spec/mocha.html.diff.txt diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/block_preview_app.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/block_preview_app.html.diff.txt deleted file mode 100644 index 4939714ee4a8..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/block_preview_app.html.diff.txt +++ /dev/null @@ -1,8 +0,0 @@ ---- -+++ -@@ -1,4 +1,4 @@ --{% extends "cloudcare/bootstrap3/preview_app_base.html" %} -+{% extends "cloudcare/bootstrap5/preview_app_base.html" %} - {% load hq_shared_tags %} - {% load compress %} - {% load i18n %} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/formplayer_home.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/formplayer_home.html.diff.txt deleted file mode 100644 index d5ce15c90452..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/formplayer_home.html.diff.txt +++ /dev/null @@ -1,69 +0,0 @@ ---- -+++ -@@ -1,4 +1,4 @@ --{% extends 'hqwebapp/bootstrap3/base_navigation.html' %} -+{% extends 'hqwebapp/bootstrap5/base_navigation.html' %} - {% load i18n %} - {% load hq_shared_tags %} - {% load compress %} -@@ -20,11 +20,11 @@ - {% endblock %} - - {% block navigation %}{{ block.super }} -- - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/form.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/form.html.diff.txt deleted file mode 100644 index 60b5cdeb18ed..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/form.html.diff.txt +++ /dev/null @@ -1,38 +0,0 @@ ---- -+++ -@@ -17,11 +17,11 @@ - -
-
--
-+
-
- {% if environment == "web-apps" %} -
--
-+
- {% blocktrans %} - Please correct the answers below before submitting. -
-@@ -42,7 +42,7 @@ -
-
- {% endif %} --
0"> --
-- -- {% trans "Next Error" %} -+
-+ -+ {% trans "Next Error" %} -
-
- diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/grouped_element_tile_row.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/grouped_element_tile_row.html.diff.txt deleted file mode 100644 index b09821b06086..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/grouped_element_tile_row.html.diff.txt +++ /dev/null @@ -1,9 +0,0 @@ ---- -+++ -@@ -1,5 +1,3 @@ - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/help_multimedia.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/help_multimedia.html.diff.txt deleted file mode 100644 index c4fe692b291a..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/form_entry/help_multimedia.html.diff.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- -+++ -@@ -1,7 +1,7 @@ - {% load i18n %} - - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/badge.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/badge.html.diff.txt deleted file mode 100644 index 373dede076d9..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/badge.html.diff.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- -+++ -@@ -6,6 +6,6 @@ - and is different from x === undefined. - */ %> - <% if (typeof badgeText !== 'undefined' && badgeText) { %> -- <%- badgeText %> -+ <%- badgeText %> - <% } %> - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/breadcrumbs.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/breadcrumbs.html.diff.txt deleted file mode 100644 index d4e365cb0942..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/breadcrumbs.html.diff.txt +++ /dev/null @@ -1,16 +0,0 @@ ---- -+++ -@@ -7,9 +7,11 @@ - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/dropdown.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/dropdown.html.diff.txt deleted file mode 100644 index 1d31efd3c826..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/dropdown.html.diff.txt +++ /dev/null @@ -1,31 +0,0 @@ ---- -+++ -@@ -2,13 +2,17 @@ - - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid.html.diff.txt deleted file mode 100644 index 9ce80751f9c6..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid.html.diff.txt +++ /dev/null @@ -1,15 +0,0 @@ ---- -+++ -@@ -1,10 +1,10 @@ - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid_item.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid_item.html.diff.txt deleted file mode 100644 index 169d827a0fe2..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/grid_item.html.diff.txt +++ /dev/null @@ -1,25 +0,0 @@ ---- -+++ -@@ -1,5 +1,5 @@ - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/list.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/list.html.diff.txt deleted file mode 100644 index 523790e99f86..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/menu/list.html.diff.txt +++ /dev/null @@ -1,10 +0,0 @@ ---- -+++ -@@ -1,6 +1,6 @@ - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/list.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/list.html.diff.txt deleted file mode 100644 index bca4d69ead51..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/query/list.html.diff.txt +++ /dev/null @@ -1,33 +0,0 @@ ---- -+++ -@@ -3,12 +3,11 @@ - - - - - - diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/users/restore_as.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/users/restore_as.html.diff.txt deleted file mode 100644 index 1e3b565f2cb7..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/partials/users/restore_as.html.diff.txt +++ /dev/null @@ -1,33 +0,0 @@ ---- -+++ -@@ -3,7 +3,7 @@ - - {# DO NOT COMPRESS #} - -@@ -55,14 +57,15 @@ - - {# This is fine as an inline script; it'll be removed once form designer is migrated to RequireJS #} - - - - {% block body %}{% endblock %} - --{% include 'cloudcare/partials/bootstrap3/confirmation_modal.html' %} --{% include 'cloudcare/partials/bootstrap3/all_templates.html' %} -+{% include 'cloudcare/partials/bootstrap5/confirmation_modal.html' %} -+{% include 'cloudcare/partials/bootstrap5/all_templates.html' %} - - {% block js %}{{ block.super }} - {% include 'cloudcare/partials/dependencies.html' %} -@@ -70,23 +73,23 @@ - - {% initial_page_data 'toggles_dict' toggles_dict %} - {% initial_page_data 'previews_dict' previews_dict %} --
-+
- {% block initial_page_data %} - {# do not override this block, use initial_page_data template tag to populate #} - {% endblock %} -
--
-+
- {% block registered_urls %} - {# do not override this block, use registerurl template tag to populate #} - {% endblock %} -
- {% include 'analytics/initial/all.html' %} --
-+
- {% block initial_analytics_data %} - {# do not override this block, use initial_analytics_data template tag to populate #} - {% endblock %} -
--
-+
- {% block analytics_ab_test %} - {# do not override this block, use analytics_ab_test template tag to populate #} - {% endblock %} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/spec/form_entry/mocha.html.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/spec/form_entry/mocha.html.diff.txt deleted file mode 100644 index 24922ccb8338..000000000000 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/cloudcare/spec/form_entry/mocha.html.diff.txt +++ /dev/null @@ -1,11 +0,0 @@ ---- -+++ -@@ -1,7 +1,7 @@ - {% extends "mocha/base.html" %} - {% load hq_shared_tags %} - --{% requirejs_main "cloudcare/js/form_entry/spec/main" %} -+{% requirejs_main_b5 "cloudcare/js/form_entry/spec/main" %} - - {% block stylesheets %}{{ block.super }} -
- - -- {% include 'cloudcare/partials/bootstrap3/confirmation_modal.html' %} -- {% include 'cloudcare/partials/bootstrap3/all_templates.html' %} -+ {% include 'cloudcare/partials/bootstrap5/confirmation_modal.html' %} -+ {% include 'cloudcare/partials/bootstrap5/all_templates.html' %} - - {% endblock %} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt index e69de29bb2d1..65b81e00caab 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt @@ -0,0 +1,7 @@ +--- ++++ +@@ -2,4 +2,4 @@ + border-color: #685c53; + color: #685c53; + font-size: 100%; +-}+} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt index e69de29bb2d1..576659a81126 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt @@ -0,0 +1,8 @@ +--- ++++ +@@ -1,4 +1,5 @@ ++// TODO b5: replace with utility classes + #version-info { + text-align: center; + display: block +-}+} From 2d326c5945c85f5e746d40a936eaf7b8fb4b08e1 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:33:55 -0400 Subject: [PATCH 15/91] Marked cloudcare migration as complete --- .../apps/hqwebapp/utils/bootstrap/status/bootstrap3_to_5.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/corehq/apps/hqwebapp/utils/bootstrap/status/bootstrap3_to_5.json b/corehq/apps/hqwebapp/utils/bootstrap/status/bootstrap3_to_5.json index 9437b0b70829..09d847cb6141 100644 --- a/corehq/apps/hqwebapp/utils/bootstrap/status/bootstrap3_to_5.json +++ b/corehq/apps/hqwebapp/utils/bootstrap/status/bootstrap3_to_5.json @@ -73,6 +73,9 @@ "user_importer": { "is_complete": true }, + "cloudcare": { + "is_complete": true + }, "dropbox": { "is_complete": true }, From 955e8297f936beb2801b20b1802347ce656b6dd4 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 27 May 2024 11:57:44 -0400 Subject: [PATCH 16/91] Removed bootstrap switch detritus --- .../changes_guide/js-bootstrapSwitch.md | 22 ------------------- .../bootstrap/spec/bootstrap_3_to_5.json | 1 - .../integration/base_cloudcare_template.html | 3 --- package.json | 1 - yarn.lock | 7 ------ 5 files changed, 34 deletions(-) delete mode 100644 corehq/apps/hqwebapp/utils/bootstrap/changes_guide/js-bootstrapSwitch.md diff --git a/corehq/apps/hqwebapp/utils/bootstrap/changes_guide/js-bootstrapSwitch.md b/corehq/apps/hqwebapp/utils/bootstrap/changes_guide/js-bootstrapSwitch.md deleted file mode 100644 index 5b4ae5db46d1..000000000000 --- a/corehq/apps/hqwebapp/utils/bootstrap/changes_guide/js-bootstrapSwitch.md +++ /dev/null @@ -1,22 +0,0 @@ -The `bootstrap-switch` plugin is incompatible with Bootstrap 5, which has its own built-in switch widget. - -A similar switch widget is built into Bootstrap 5 and does not require JavaScript instantiation. - -An EXAMPLE for how to apply this change is provided below. -Please see docs for further details. - -previously -``` -$("#mySwitch").bootstrapSwitch(); -``` - -now -``` -
- - -
-``` - -Old docs: https://bttstrp.github.io/bootstrap-switch/ -New docs: https://getbootstrap.com/docs/5.1/forms/checks-radios/#switches diff --git a/corehq/apps/hqwebapp/utils/bootstrap/spec/bootstrap_3_to_5.json b/corehq/apps/hqwebapp/utils/bootstrap/spec/bootstrap_3_to_5.json index d15a90ba62a3..5653aea26922 100644 --- a/corehq/apps/hqwebapp/utils/bootstrap/spec/bootstrap_3_to_5.json +++ b/corehq/apps/hqwebapp/utils/bootstrap/spec/bootstrap_3_to_5.json @@ -104,7 +104,6 @@ ], "flagged_js_plugins": [ "affix", - "bootstrapSwitch", "button", "createDateRangePicker", "datetimepicker", diff --git a/corehq/apps/integration/templates/integration/base_cloudcare_template.html b/corehq/apps/integration/templates/integration/base_cloudcare_template.html index 6d400cd4a2fd..5e2ebec55445 100644 --- a/corehq/apps/integration/templates/integration/base_cloudcare_template.html +++ b/corehq/apps/integration/templates/integration/base_cloudcare_template.html @@ -16,9 +16,6 @@ {% endblock navigation %} {% block stylesheets %} - {% compress css %} - - {% endcompress %} {% compress css %} =1.10" moment "^2.9.0" -bootstrap-switch@3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/bootstrap-switch/-/bootstrap-switch-3.3.2.tgz#79ddb49fadc308fb731e257f95957af48996eea7" - integrity sha1-ed20n63DCPtzHiV/lZV69ImW7qc= - dependencies: - jquery ">=1.9.0" - bootstrap-timepicker@0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/bootstrap-timepicker/-/bootstrap-timepicker-0.5.1.tgz#1ee36b4a7c27904c7c96da0988b711c9ee9e99b7" From 59c47d80cd45b0e3c3d3f3d681754725642d3ba1 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 28 May 2024 14:35:45 -0400 Subject: [PATCH 17/91] Bootstrap 5 Migration - Rebuilt diffs --- ...ayer-common_grid.formplayer-common_grid.style.diff.txt | 7 ------- ...ommon_version.formplayer-common_version.style.diff.txt | 8 -------- 2 files changed, 15 deletions(-) diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt index 65b81e00caab..e69de29bb2d1 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_grid.formplayer-common_grid.style.diff.txt @@ -1,7 +0,0 @@ ---- -+++ -@@ -2,4 +2,4 @@ - border-color: #685c53; - color: #685c53; - font-size: 100%; --}+} diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt index 576659a81126..e69de29bb2d1 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_version.formplayer-common_version.style.diff.txt @@ -1,8 +0,0 @@ ---- -+++ -@@ -1,4 +1,5 @@ -+// TODO b5: replace with utility classes - #version-info { - text-align: center; - display: block --}+} From 4c242034c355521b9777cdf21c8e124172aabf5b Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 28 May 2024 14:48:01 -0400 Subject: [PATCH 18/91] Updated test_update_gruntfile --- corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py index 1fb0c44d108d..9313a7c32ac7 100644 --- a/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py +++ b/corehq/apps/hqwebapp/tests/utils/test_bootstrap_changes.py @@ -419,13 +419,14 @@ def test_update_gruntfile(): 'case_importer', ]; """ - mocha_paths = ["cloudcare/spec/mocha.html", "cloudcare/spec/form_entry/mocha.html"] + mocha_paths = ["notifications/spec/mocha.html"] result = update_gruntfile(filedata, mocha_paths) expected_result = """ var apps = [ 'app_manager', 'export/ko', - 'notifications', + 'notifications/bootstrap3', + 'notifications/bootstrap5', 'reports_core/choiceListUtils', 'locations', 'userreports', From f22a20a5f7dc46c3e1b33183241dd00c15baf208 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 28 May 2024 14:58:25 -0400 Subject: [PATCH 19/91] Fixed lint errors in Gruntfile.js --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 12503d1f7365..14578f4dc97e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,5 @@ -/* globals process */ - +/* globals module, process, require */ +'use strict'; module.exports = function (grunt) { var headless = require('mocha-headless-chrome'), _ = require('lodash'), From e8a9308eac2a7697a557ad95f84b86e7679ff2a7 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 28 May 2024 15:34:23 -0400 Subject: [PATCH 20/91] Updated MochaView to know which apps have been migrated to B5 The alternative is to recreate the bootstrap5 directories for cloudcare mocha templates, which is differently ugly. This will need to be updated as apps are migrated to B5, and then removed when the entire platform is migrated. --- corehq/apps/mocha/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/corehq/apps/mocha/views.py b/corehq/apps/mocha/views.py index 3e6715312dad..ab54ce48eb1a 100644 --- a/corehq/apps/mocha/views.py +++ b/corehq/apps/mocha/views.py @@ -17,6 +17,9 @@ def dispatch(self, request, *args, **kwargs): template_name = f"{bootstrap_version}/{template_name}" if bootstrap_version == BOOTSTRAP_5: set_bootstrap_version5() + elif app in ['cloudcare']: + set_bootstrap_version5() + if config: template_name = f"{config}/{template_name}" template_name = f"{app}/spec/{template_name}" From 2d18a5bd09b720fc07c2bc6d1c4b52da48642b15 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 29 May 2024 14:36:31 -0400 Subject: [PATCH 21/91] Fixed search icon alignment in app preview Oddly, this is an app preview issue, not a small screen size issue. --- .../cloudcare/static/cloudcare/js/formplayer/users/views.js | 6 +++++- .../templates/cloudcare/partials/users/restore_as.html | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js index 2635edf7cc1a..ffc6acd181a1 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js @@ -6,6 +6,7 @@ hqDefine("cloudcare/js/formplayer/users/views", [ 'backbone.marionette', 'hqwebapp/js/toggles', 'cloudcare/js/formplayer/app', + 'cloudcare/js/formplayer/constants', 'cloudcare/js/formplayer/utils/utils', 'cloudcare/js/formplayer/users/models', 'cloudcare/js/formplayer/users/utils', @@ -16,6 +17,7 @@ hqDefine("cloudcare/js/formplayer/users/views", [ Marionette, toggles, FormplayerFrontend, + constants, formplayerUtils, usersModels, usersUtils @@ -153,12 +155,14 @@ hqDefine("cloudcare/js/formplayer/users/views", [ 'keypress @ui.paginationGoTextBox': 'paginationGoKeyAction', }, templateContext: function () { - var paginationOptions = formplayerUtils.paginateOptions( + const environment = usersModels.getCurrentUser().environment; + const paginationOptions = formplayerUtils.paginateOptions( this.model.get('page') - 1, this.totalPages(), this.collection.total ); return _.extend(paginationOptions, { + isAppPreview: environment === constants.PREVIEW_APP_ENVIRONMENT, total: this.collection.total, totalPages: this.totalPages(), limit: this.limit, diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html b/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html index 23678716039f..67ccbe25c0e5 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/users/restore_as.html @@ -14,7 +14,7 @@

{% trans "Log in as user" %}

value="<%- query %>" placeholder="{% trans_html_attr "Filter workers" %}" />
From a752e40b06e1cbfac9fac73d00a1e4b5ba776ec6 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 29 May 2024 14:37:01 -0400 Subject: [PATCH 22/91] Reduced size of confirmation modal buttons --- .../cloudcare/static/cloudcare/js/formplayer/users/views.js | 2 +- .../templates/cloudcare/partials/confirmation_modal.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js index ffc6acd181a1..afaea59f85a5 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/users/views.js @@ -87,7 +87,7 @@ hqDefine("cloudcare/js/formplayer/users/views", [ message: _.template($('#user-data-template').html())( { user: this.model.toJSON() } ), - confirmText: gettext('Yes, log in as this user'), + confirmText: gettext('Log in'), onConfirm: function () { usersUtils.Users.logInAsUser(this.model.get('username')); FormplayerFrontend.regions.getRegion('restoreAsBanner').show( diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html b/corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html index 7b7fbba1ec21..cee3454d920f 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/confirmation_modal.html @@ -11,11 +11,11 @@
From 385327e085f685d75c6bfaedbebf4ff6e3a1966b Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 29 May 2024 14:42:24 -0400 Subject: [PATCH 23/91] Updated pagination to allow for wrapping in app preview --- .../apps/cloudcare/templates/cloudcare/partials/pagination.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html b/corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html index 94bba3a2c9a0..537b667854ff 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/pagination.html @@ -17,7 +17,7 @@
<% if (pageCount > 1) { %> -
    +
      <% if (currentPage > 0) { %>
    • From 69bb1c22a8e3e3282b020bbd829ac55e45b73993 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 29 May 2024 14:47:14 -0400 Subject: [PATCH 24/91] Moved styles to center breadcrumb separators to also apply to app preview --- .../static/cloudcare/scss/formplayer-common/breadcrumbs.scss | 1 + .../static/cloudcare/scss/formplayer-webapp/breadcrumbs.scss | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-common/breadcrumbs.scss b/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-common/breadcrumbs.scss index c20075a0b495..29d6a4250a9f 100644 --- a/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-common/breadcrumbs.scss +++ b/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-common/breadcrumbs.scss @@ -21,6 +21,7 @@ color: white; &:before { + padding: 0 6px 0 0; content: '\f054'; font-family: 'FontAwesome'; } diff --git a/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-webapp/breadcrumbs.scss b/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-webapp/breadcrumbs.scss index 5c8bc5a3974c..00118218c2f7 100644 --- a/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-webapp/breadcrumbs.scss +++ b/corehq/apps/hqwebapp/static/cloudcare/scss/formplayer-webapp/breadcrumbs.scss @@ -5,7 +5,6 @@ margin-top: -1px; .breadcrumb-item { &:before { - padding: 0 6px 0 0; color: #ffffff; font-size: 12px; vertical-align: top; From d4a62b7e3026b4b503cd151174ff5e1d92a7da19 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Wed, 29 May 2024 19:34:53 +0000 Subject: [PATCH 25/91] "Bootstrap 5 Migration - Rebuilt diffs" --- ...readcrumbs.formplayer-common_breadcrumbs.style.diff.txt | 3 ++- ...readcrumbs.formplayer-webapp_breadcrumbs.style.diff.txt | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_breadcrumbs.formplayer-common_breadcrumbs.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_breadcrumbs.formplayer-common_breadcrumbs.style.diff.txt index cff6ffff6c27..eb166b40948b 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_breadcrumbs.formplayer-common_breadcrumbs.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-common_breadcrumbs.formplayer-common_breadcrumbs.style.diff.txt @@ -1,6 +1,6 @@ --- +++ -@@ -2,30 +2,34 @@ +@@ -2,30 +2,35 @@ position: sticky; position: -webkit-sticky; top: 0; @@ -31,6 +31,7 @@ + color: white; + &:before { ++ padding: 0 6px 0 0; content: '\f054'; font-family: 'FontAwesome'; } diff --git a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-webapp_breadcrumbs.formplayer-webapp_breadcrumbs.style.diff.txt b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-webapp_breadcrumbs.formplayer-webapp_breadcrumbs.style.diff.txt index af2015d21324..9fbc5aa9a2e3 100644 --- a/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-webapp_breadcrumbs.formplayer-webapp_breadcrumbs.style.diff.txt +++ b/corehq/apps/hqwebapp/tests/data/bootstrap5_diffs/stylesheets/formplayer-webapp_breadcrumbs.formplayer-webapp_breadcrumbs.style.diff.txt @@ -1,6 +1,6 @@ --- +++ -@@ -1,16 +1,11 @@ +@@ -1,16 +1,10 @@ #breadcrumb-region .breadcrumb, .single-app-view .breadcrumb, .breadcrumb-form-container .breadcrumb { @@ -16,11 +16,10 @@ + .breadcrumb-item { &:before { - padding: 0 6px 0 12px; -+ padding: 0 6px 0 0; color: #ffffff; font-size: 12px; vertical-align: top; -@@ -23,16 +18,16 @@ +@@ -23,16 +17,16 @@ } #breadcrumb-region .breadcrumb-nav { @@ -40,7 +39,7 @@ margin-bottom: 0; flex-grow: 1; } -@@ -52,7 +47,7 @@ +@@ -52,7 +46,7 @@ font-size: 12px; margin-bottom: 0px; padding-left: 33px; From 052ed9b93b0a7f87b65cd815ad2d0f2de03ea000 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 3 Jun 2024 11:10:04 -0400 Subject: [PATCH 26/91] Removed focusout handlers, set up time questions to initialize to current time --- corehq/apps/cloudcare/static/cloudcare/js/utils.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/utils.js b/corehq/apps/cloudcare/static/cloudcare/js/utils.js index fbbfc59c86cb..a8a5d709980c 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/utils.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/utils.js @@ -379,9 +379,6 @@ hqDefine('cloudcare/js/utils', [ } let tempus = hqTempusDominus.createDatePicker($el.get(0), options); - $el.on("focusout", function () { - tempus.hide(); - }); $el.attr("placeholder", dateFormat); $el.attr("pattern", "[0-9\-/]+"); // eslint-disable-line no-useless-escape }; @@ -402,16 +399,12 @@ hqDefine('cloudcare/js/utils', [ localization: { format: timeFormat, }, - useCurrent: false, + useCurrent: true, }; if (date.isValid()) { options.viewDate = new hqTempusDominus.tempusDominus.DateTime(date.format(timeFormat)); } let tempus = hqTempusDominus.createTimePicker($el.get(0), options); - - $el.on("focusout", function () { - tempus.hide(); - }); }; var smallScreenIsEnabled = function () { From c814dfc2576010938222412b7a3c24397a37cdcf Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 3 Jun 2024 11:32:11 -0400 Subject: [PATCH 27/91] Increased important of select2 clear icon position --- .../apps/hqwebapp/static/hqwebapp/scss/commcarehq/_select2.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corehq/apps/hqwebapp/static/hqwebapp/scss/commcarehq/_select2.scss b/corehq/apps/hqwebapp/static/hqwebapp/scss/commcarehq/_select2.scss index 375d723a6dd7..2920eb1d26e3 100644 --- a/corehq/apps/hqwebapp/static/hqwebapp/scss/commcarehq/_select2.scss +++ b/corehq/apps/hqwebapp/static/hqwebapp/scss/commcarehq/_select2.scss @@ -160,7 +160,7 @@ .select2-container--default { .select2-selection--single .select2-selection__clear { - margin-right: 30px; + margin-right: 30px !important; } } From 5858f7c6511f8f01a95477bcb579d3b0b247e8f0 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 3 Jun 2024 12:31:15 -0400 Subject: [PATCH 28/91] Fixed checkbox styling for combined checkboxes (QA-6621) --- .../templates/cloudcare/partials/form_entry/entry_select.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html index a85cd6a87e78..507a7ee74ba5 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/form_entry/entry_select.html @@ -4,8 +4,8 @@
      -
      -
      +
      +
      <%- badgeText %> + <%- badgeText %> <% } %> From 23ce9243cbf91eac3664ccd62b02ab9479fd73ba Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Mon, 3 Jun 2024 12:59:03 -0400 Subject: [PATCH 30/91] Fixed datepicker event (QA-6604) --- .../static/cloudcare/js/formplayer/menus/views/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js index ec64c6f0f7c3..560abf2f2a66 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/formplayer/menus/views/query.js @@ -300,7 +300,7 @@ hqDefine("cloudcare/js/formplayer/menus/views/query", [ events: { 'change @ui.queryField': 'changeQueryField', 'change @ui.searchForBlank': 'notifyParentOfFieldChange', - 'dp.change @ui.queryField': 'changeDateQueryField', + 'change.td @ui.date': 'changeDateQueryField', 'click @ui.searchForBlank': 'toggleBlankSearch', }, From 8a777d7d8d4eed65973e7d6645f42e9ea54ed29d Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 4 Jun 2024 08:41:38 -0400 Subject: [PATCH 31/91] Added tempus dominus compatibility in a few stray places --- .../cloudcare/static/cloudcare/js/form_entry/entries.js | 6 +++--- corehq/apps/cloudcare/static/cloudcare/js/utils.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js index 5f6b3a3e1921..385c2bcc7c59 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/form_entry/entries.js @@ -793,12 +793,12 @@ hqDefine("cloudcare/js/form_entry/entries", [ var answer = self.answer() ? self.convertServerToClientFormat(self.answer()) : constants.NO_ANSWER; self.initWidget(self.$picker, answer); - self.$picker.on("dp.change", function (e) { + self.$picker.on("change.td", function (e) { if (!e.date) { self.answer(constants.NO_ANSWER); return; } - self.answer(moment(e.date.toDate()).format(self.serverFormat)); + self.answer(moment(e.date).format(self.serverFormat)); }); }; } @@ -834,7 +834,7 @@ hqDefine("cloudcare/js/form_entry/entries", [ this.templateType = 'time'; if (question.style) { if (question.stylesContains(constants.TIME_12_HOUR)) { - this.clientFormat = 'h:mm a'; + this.clientFormat = 'h:mm T'; } } DateTimeEntryBase.call(this, question, options); diff --git a/corehq/apps/cloudcare/static/cloudcare/js/utils.js b/corehq/apps/cloudcare/static/cloudcare/js/utils.js index a8a5d709980c..224213417318 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/utils.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/utils.js @@ -398,6 +398,7 @@ hqDefine('cloudcare/js/utils', [ }, localization: { format: timeFormat, + hourCycle: timeFormat.indexOf('T') == -1 ? 'h23' : 'h12', }, useCurrent: true, }; From 0926f547ee8b6efedddd54b89c25ec04000a9de2 Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Tue, 4 Jun 2024 09:12:42 -0400 Subject: [PATCH 32/91] Updated case search errors to display property My least favorite thing about this migration is that .invalid-feedback items only display if they have a sibling with the .is-invalid class. This is a change from B3, where error messages were styled based on being in a container that used .has-error. --- .../cloudcare/partials/query/item.html | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html b/corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html index e0fdfff287ad..8610eaf5a114 100644 --- a/corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html +++ b/corehq/apps/cloudcare/templates/cloudcare/partials/query/item.html @@ -23,7 +23,8 @@ class="<% if (contentTag === 'td') { %>col-sm-6 <% } else { %>input-group-sm <% } %>query-input-group"> <% if (input == "select1") { %> - aria-required="true"<% } %>> <% for (let key in itemsetChoicesDict) { %>