@switch (field.type) {
@case ('display') {
}
@case ('textarea') {
{{ field.label }}
}
@case ('select') {
{{ field.label }}
@for (option of field.options ?? []; track option.value) {
{{ option.label }}
}
}
@case ('checkbox') {
{{ field.label }}
}
@case ('number') {
{{ field.label }}
}
@default {
{{ field.label }}
@if (field.type === 'password') {
}
}
}
@if (showUseDefault(field)) {
}
@if (hasFieldMeta(field)) {
@if (fieldError(field); as error) {
{{ error }}
} @else if (defaultHint(field); as hint) {
{{ hint }}
}
}
@if (field.tip) {
{{ field.tip }}
}