Skip to content

Commit

Permalink
refactor: improving collection form theme
Browse files Browse the repository at this point in the history
  • Loading branch information
siganushka committed Nov 28, 2024
1 parent 36442a0 commit 1aed3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/form_theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
{# collection entry row #}
{%- block collection_entry_row -%}
<tr data-siganushka-generic-collection-target="entry" style="vertical-align: top">
{% for entry in compound ? form : [form] %}
{%- for entry in compound ? form : [form] -%}
<td{% with {attr: entry.vars.row_attr} %}{{ block('attributes') }}{% endwith %}>
{{- form_widget(entry, {attr: {placeholder: entry.vars.label}}) -}}
{{- form_errors(entry) -}}
{{- form_help(entry) -}}
</td>
{% endfor %}
{%- endfor -%}

{%- if delete_button is defined and not delete_button.rendered -%}
{{- form_row(delete_button) -}}
Expand Down

0 comments on commit 1aed3ee

Please sign in to comment.