{% from '_includes/forms' import field %} {% set input %} {% embed '_includes/forms/editableTable' with { id: 'columns', name: 'columns', cols: cols, rows: rows, addRowLabel: 'Add a column'|t('app'), initJs: false, } %} {% block tablecell %} {% if colId == 'type' %}
{{ parent() }}
{% else %} {{ parent() }} {% endif %} {% endblock %} {% endembed %} {% endset %} {{ field({ label: 'Table Columns'|t('app'), instructions: 'Define the columns your table should have.'|t('app'), id: 'columns', errors: errors }, input) }}