Back to Peertube

Dynamic Form Field.Component

client/src/app/shared/shared-forms/dynamic-form-field.component.html

8.1.5558 B
Original Source

@if (form()) {

@if (setting().label && setting().type !== 'input-checkbox') { } @if (setting().type === 'input-checkbox') { } @if (setting().descriptionHTML) {

} @switch (setting().type) { @case ('input') { } @case ('select') { @for (option of setting().options; track option) { {{ option.label }} } } @case ('input-password') { } @case ('input-textarea') { } @case ('markdown-text') { } @case ('markdown-enhanced') { } @case ('html') {

} } @if (hasDedicatedFormError() && formErrors()[setting().name]) { {{ formErrors()[setting().name] }} } }