Skip to content

Commit

Permalink
🐛 [open-formulieren/open-forms#4809] Don't display layout components …
Browse files Browse the repository at this point in the history
…in edit grid row summary

Closer to vanilla Formio, and more importantly: it doesn't display
(unused/unsupported) labels of layout components like WYSIWYG content,
fieldsets and/or columns.
  • Loading branch information
sergei-maertens committed Dec 12, 2024
1 parent d26c9a8 commit 0e63618
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/formio/templates/editGridRow.ejs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<dl class="utrecht-data-list utrecht-data-list--html-dl utrecht-data-list--rows">
{% for (const key in ctx.flattenedComponents) { %}
{% if (ctx.isVisibleInRow(ctx.flattenedComponents[key]) && ctx.flattenedComponents[key].label) { %}
{% ctx.util.eachComponent(ctx.components, function(component) { %}
{% if (ctx.isVisibleInRow(component)) { %}
<div class="utrecht-data-list__item">
<dt class="utrecht-data-list__item-key">{{ctx.flattenedComponents[key].label}}</dt>
<dt class="utrecht-data-list__item-key">{{ component.label }}</dt>
<dd class="utrecht-data-list__item-value utrecht-data-list__item-value--html-dd">
{{ ctx.getView(ctx.flattenedComponents[key], ctx.row[key]) }}
{{ ctx.getView(component, ctx.row[component.key]) }}
</dd>
</div>
{% } %}
{% } %}
{% }) %}
</dl>

{% if (!ctx.self.options.readOnly) { %}
Expand Down

0 comments on commit 0e63618

Please sign in to comment.