@if (formDefinition.hasTabs()) { @if (hasTabs()) {
@for (tab of visibleTabs(); track tab.id) {
}
} } @if (!formDefinition.hasTabs() && formDefinition.hasFields()) {
}
@for (currentRootElement of fieldToRender; track currentRootElement.id) { @if (currentRootElement.type === 'section') {
} @if (currentRootElement.type === 'container' || currentRootElement.type === 'group') {
@if (currentRootElement?.form?.enableFixedSpace) { @if (currentRootElement?.isExpanded) {
@for (field of getContainerFields(currentRootElement); track field ?? $index) {
@if (field) { }
}
} } @else { } @if (currentRootElement?.isExpanded) {
@for (column of currentRootElement?.columns; track column; let columnIndex = $index) {
@for (field of column?.fields; track field) { @if (field.type === 'section') { } @else {
} }
}
}
@for (field of column?.fields; track field) {
@if (field) { }
}
} @if (currentRootElement.type === 'repeatable-section') {
@for (row of currentRootElement.field.rows; track row; let rowIndex = $index) { @let hasMultipleRows = currentRootElement.field.rows.length > 1;
@if (currentRootElement.field.params.displayRowLabels !== false) { @let customRowLabel = currentRootElement.field.params | adfRepeatableRowLabel: rowIndex; {{ customRowLabel ?? ('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 column; let columnIndex = $index) {
@for (field of column?.fields; track field) { @if (field.type === 'section') { } @else {
} }
}
}
} @if (currentRootElement.type === 'dynamic-table') {
} @if (currentRootElement.type === 'readonly' && currentRootElement.field.params.field.type === 'dynamic-table') {
} }