@if (currentRootElement.type === 'repeatable-section') {
@for (row of currentRootElement.field.rows; track row.id; let rowIndex = $index) { @let hasMultipleRows = currentRootElement.field.rows.length > 1;
{{ 'FORM.FORM_RENDERER.ROW_LABEL' | translate: {number: rowIndex + 1} }} @let shouldDisplayRemoveRowButton = !currentRootElement.field.rows[rowIndex].isInitial || (currentRootElement.field.rows[rowIndex].isInitial && currentRootElement.field.params.allowInitialRowsDelete); @if (shouldDisplayRemoveRowButton) { }
@for (column of row.columns; track $index) {
@for (field of column?.fields; track $index) { @if (field.type === 'section') { } @else {
} }
}
}
}