From ad16f77c269edc26f02f5629a7cf234bd9dbcb0c Mon Sep 17 00:00:00 2001 From: robert-costello Date: Thu, 21 Dec 2023 14:13:02 -0500 Subject: [PATCH 1/7] update models --- corehq/apps/app_manager/models.py | 1 + corehq/apps/app_manager/suite_xml/xml_models.py | 1 + 2 files changed, 2 insertions(+) diff --git a/corehq/apps/app_manager/models.py b/corehq/apps/app_manager/models.py index cb2f394751c2..07d55d7d8144 100644 --- a/corehq/apps/app_manager/models.py +++ b/corehq/apps/app_manager/models.py @@ -1857,6 +1857,7 @@ class DetailColumn(IndexedSchema): vertical_align = StringProperty(exclude_if_none=True) font_size = StringProperty(exclude_if_none=True) show_border = BooleanProperty(exclude_if_none=True) + show_shading = BooleanProperty(exclude_if_none=True) enum = SchemaListProperty(MappingItem) graph_configuration = SchemaProperty(GraphConfiguration) diff --git a/corehq/apps/app_manager/suite_xml/xml_models.py b/corehq/apps/app_manager/suite_xml/xml_models.py index da1179d0c91a..642a8d010800 100644 --- a/corehq/apps/app_manager/suite_xml/xml_models.py +++ b/corehq/apps/app_manager/suite_xml/xml_models.py @@ -793,6 +793,7 @@ class Style(XmlObject): grid_x = StringField("grid/@grid-x") grid_y = StringField("grid/@grid-y") show_border = BooleanField("@show-border") + show_shading = BooleanField("@show-shading") class Extra(XmlObject): From f5a02e38d3bf31669d26fb4b868043d9858629e8 Mon Sep 17 00:00:00 2001 From: robert-costello Date: Thu, 21 Dec 2023 14:16:43 -0500 Subject: [PATCH 2/7] add shading option to modal --- .../partials/modules/style_configuration_modal.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/corehq/apps/app_manager/templates/app_manager/partials/modules/style_configuration_modal.html b/corehq/apps/app_manager/templates/app_manager/partials/modules/style_configuration_modal.html index 993c3c976e96..a45011379562 100644 --- a/corehq/apps/app_manager/templates/app_manager/partials/modules/style_configuration_modal.html +++ b/corehq/apps/app_manager/templates/app_manager/partials/modules/style_configuration_modal.html @@ -43,6 +43,14 @@ data-bind="checked: showBorder, visible: coordinatesVisible" > +
+ + +