Skip to content

Commit d39a0ba

Browse files
committed
Add report display #10552
1 parent 617a6f9 commit d39a0ba

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

arches/app/media/js/viewmodels/reference-select.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ define([
1313
this.multiple = !!ko.unwrap(params.node.config.multiValue);
1414
this.displayName = ko.observable('');
1515
this.selectionValue = ko.observable([]); // formatted version of this.value that select2 can use
16+
this.activeLanguage = arches.activeLanguage;
1617

1718
WidgetViewModel.apply(this, [params]);
1819

arches/app/templates/views/components/widgets/reference-select.htm

+9-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@
4141
{% endblock config_form %}
4242

4343
{% block report %}
44-
<div>
45-
<p>block report data here</p>
46-
</div>
44+
<dt data-bind="text: label, class: nodeCssClasses"></dt>
45+
<!-- ko foreach: value -->
46+
<dd data-bind="text: labels[$parent.activeLanguage], class: $parent.nodeCssClasses"></dd>
47+
<!-- /ko -->
48+
<!-- ko ifnot: value().length -->
49+
<dd data-bind="class: nodeCssClasses">
50+
<span data-bind="text: $root.translations.none"></span>
51+
</dd>
52+
<!-- /ko -->
4753
{% endblock report %}

0 commit comments

Comments
 (0)