diff --git a/arches/app/media/js/viewmodels/widget.js b/arches/app/media/js/viewmodels/widget.js index a85b27bd78d..da84027fc79 100644 --- a/arches/app/media/js/viewmodels/widget.js +++ b/arches/app/media/js/viewmodels/widget.js @@ -62,6 +62,12 @@ define([ this.config = ko.observable(this.config); } + this.nodeCssClasses = ko.pureComputed(function() { + return [ko.unwrap(self.node?.alias), + self.widget?.widgetLookup[ko.unwrap(self.widget?.widget_id)].name + ].join(" ").trim(); + }); + this.disposables = []; var subscribeConfigObservable = function(obs, key) { diff --git a/arches/app/templates/views/components/widgets/base.htm b/arches/app/templates/views/components/widgets/base.htm index 9ca49f2a2ae..b781d761238 100644 --- a/arches/app/templates/views/components/widgets/base.htm +++ b/arches/app/templates/views/components/widgets/base.htm @@ -9,15 +9,16 @@ {% block report %} -
-
+
+
{% endblock report %} {% block display_value %} - + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/checkbox.htm b/arches/app/templates/views/components/widgets/checkbox.htm index db44ee8e4ac..a4dab691810 100644 --- a/arches/app/templates/views/components/widgets/checkbox.htm +++ b/arches/app/templates/views/components/widgets/checkbox.htm @@ -2,7 +2,7 @@ {% load i18n %} {% block form %} -
+
diff --git a/arches/app/templates/views/components/widgets/concept-select.htm b/arches/app/templates/views/components/widgets/concept-select.htm index b72ee35fe6e..7e293cfd91e 100644 --- a/arches/app/templates/views/components/widgets/concept-select.htm +++ b/arches/app/templates/views/components/widgets/concept-select.htm @@ -2,13 +2,13 @@ {% load i18n %} {% block form %} -
+
- + -
+
- @@ -59,13 +59,13 @@ {% endblock config_form %} {% block report %} -
+
-
+
-
+
diff --git a/arches/app/templates/views/components/widgets/datepicker.htm b/arches/app/templates/views/components/widgets/datepicker.htm index fd4e5344452..7188525128d 100644 --- a/arches/app/templates/views/components/widgets/datepicker.htm +++ b/arches/app/templates/views/components/widgets/datepicker.htm @@ -3,7 +3,7 @@ {% load i18n %} {% block form %} -
+
@@ -12,7 +12,7 @@
-
@@ -24,13 +24,13 @@ {% endblock form %} {% block report %} -
+
-
+
- +
{% endblock report %} @@ -40,12 +40,12 @@
- @@ -54,12 +54,12 @@
- @@ -68,14 +68,14 @@
- @@ -94,7 +94,7 @@
-
diff --git a/arches/app/templates/views/components/widgets/edtf.htm b/arches/app/templates/views/components/widgets/edtf.htm index 03b4e4434d2..d13aac10789 100644 --- a/arches/app/templates/views/components/widgets/edtf.htm +++ b/arches/app/templates/views/components/widgets/edtf.htm @@ -3,19 +3,19 @@ {% load i18n %} {% block form %} -
+
-
@@ -46,7 +46,7 @@
- 2021-04-12 + 2021-04-12
@@ -54,7 +54,7 @@
- 2021-04 + 2021-04
@@ -62,7 +62,7 @@
- 2021 + 2021
@@ -115,8 +115,8 @@
@@ -135,8 +135,8 @@
-
- +
@@ -54,13 +54,13 @@
- - @@ -140,11 +140,11 @@
- @@ -154,9 +154,9 @@
- +
-
+
-
+
@@ -185,7 +185,7 @@ -
+
@@ -200,5 +200,5 @@ {% endblock report %} {% block display_value %} - + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/iiif.htm b/arches/app/templates/views/components/widgets/iiif.htm index 664c795ec2b..e4e917f4422 100644 --- a/arches/app/templates/views/components/widgets/iiif.htm +++ b/arches/app/templates/views/components/widgets/iiif.htm @@ -3,7 +3,7 @@ {% load i18n %} {% block form %} -
+
@@ -21,10 +21,10 @@
- +
-
+
-
+
@@ -48,6 +48,6 @@ {% endblock report %} {% block display_value %} - - + + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/map.htm b/arches/app/templates/views/components/widgets/map.htm index 0adce2e3a40..60f0c2c00da 100644 --- a/arches/app/templates/views/components/widgets/map.htm +++ b/arches/app/templates/views/components/widgets/map.htm @@ -3,7 +3,7 @@ {% load template_tags %} {% block form %} -
+
@@ -17,14 +17,14 @@ {% endblock form %} {% block report %} -
+
-
+
-
+
@@ -61,13 +61,13 @@
- @@ -76,13 +76,13 @@
- @@ -91,15 +91,15 @@
- @@ -107,6 +107,6 @@ {% endblock config_form %} {% block display_value %} - - + + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/node-value-select.htm b/arches/app/templates/views/components/widgets/node-value-select.htm index 70cd53167a5..153086eeebe 100644 --- a/arches/app/templates/views/components/widgets/node-value-select.htm +++ b/arches/app/templates/views/components/widgets/node-value-select.htm @@ -3,7 +3,7 @@ {% block form %} -
+
@@ -32,11 +32,11 @@
- @@ -58,8 +58,8 @@ {% endblock config_form %} {% block report %} -
-
+
+
{% endblock report %} diff --git a/arches/app/templates/views/components/widgets/number.htm b/arches/app/templates/views/components/widgets/number.htm index fdfc4c1560c..6a5065c08e4 100644 --- a/arches/app/templates/views/components/widgets/number.htm +++ b/arches/app/templates/views/components/widgets/number.htm @@ -3,7 +3,7 @@ {% load i18n %} {% block form %} -
+
@@ -30,8 +30,8 @@ {% endblock form %} {% block report %} -
-
+
+
+
- +
- +
{% endblock report %} diff --git a/arches/app/templates/views/components/widgets/rich-text.htm b/arches/app/templates/views/components/widgets/rich-text.htm index b87c8a80e3a..72417e81df2 100644 --- a/arches/app/templates/views/components/widgets/rich-text.htm +++ b/arches/app/templates/views/components/widgets/rich-text.htm @@ -3,7 +3,7 @@ {% load i18n %} {% block form %} -
+
-
@@ -76,18 +76,18 @@
- @@ -95,21 +95,21 @@ {% block report %} -
-
+
+
{% endblock report %} {% block display_value %} - + -
+
- + {% endblock display_value %} diff --git a/arches/app/templates/views/components/widgets/select.htm b/arches/app/templates/views/components/widgets/select.htm index 77156a40e1e..c7fa060fab3 100644 --- a/arches/app/templates/views/components/widgets/select.htm +++ b/arches/app/templates/views/components/widgets/select.htm @@ -3,7 +3,7 @@ {% load i18n %} {% block form %} -
+
@@ -34,11 +34,11 @@
-
diff --git a/arches/app/templates/views/components/widgets/switch.htm b/arches/app/templates/views/components/widgets/switch.htm index d7e2bbfec52..390bf7aa2a8 100644 --- a/arches/app/templates/views/components/widgets/switch.htm +++ b/arches/app/templates/views/components/widgets/switch.htm @@ -2,8 +2,8 @@ {% load i18n %} {% block form %} -
- +
@@ -29,8 +29,8 @@
-
diff --git a/arches/app/templates/views/components/widgets/text.htm b/arches/app/templates/views/components/widgets/text.htm index 9d37b185f32..5fd14a79df5 100644 --- a/arches/app/templates/views/components/widgets/text.htm +++ b/arches/app/templates/views/components/widgets/text.htm @@ -3,14 +3,14 @@ {% load i18n %} {% block form %} -
+
-
@@ -102,10 +102,10 @@
-
@@ -186,15 +186,17 @@ {% block display_value %} - + {% endblock display_value %} {% block report %} -
-
+
+
{% endblock report %} diff --git a/arches/app/templates/views/components/widgets/urldatatype.htm b/arches/app/templates/views/components/widgets/urldatatype.htm index 79a2c08dc38..4b59a4b3f08 100644 --- a/arches/app/templates/views/components/widgets/urldatatype.htm +++ b/arches/app/templates/views/components/widgets/urldatatype.htm @@ -2,7 +2,7 @@ {% load i18n %} {% block form %} -
+
@@ -65,8 +65,8 @@ {% block report %} -
-
+
+
@@ -76,7 +76,7 @@ {% endblock report %} {% block display_value %} - + -{% endblock display_value %} \ No newline at end of file +{% endblock display_value %}