{{ data.title ?? 'Edit' }}

@for (f of fields; track $index) { @if (f.type === 'checkbox') { {{ f.label }} } @else if (f.type === 'select') { {{ f.label }} @let opts = (f.options ?? (f.options$ | async) ?? []); @for (opt of opts; track $index) { {{ f.displayKey ? opt?.[f.displayKey] : (opt?.name ?? opt?.label ?? opt) }} } } @else { {{ f.label }} @if (f.type === 'textarea') { } @else { } } }