1 <ng-container *
ngIf=
"plugin">
4 <ng-container>{{ pluginTypeLabel }}
</ng-container>
8 <form *
ngIf=
"hasRegisteredSettings()" role=
"form" (ngSubmit)=
"formValidated()" [formGroup]=
"form">
9 <div class=
"form-group" *
ngFor=
"let setting of registeredSettings">
10 <label *
ngIf=
"setting.type !== 'input-checkbox'" [attr.for]=
"setting.name" [innerHTML]=
"setting.label"></label>
11 <input *
ngIf=
"setting.type === 'input'" type=
"text" [id]=
"setting.name" [formControlName]=
"setting.name" />
12 <textarea *
ngIf=
"setting.type === 'input-textarea'" type=
"text" [id]=
"setting.name" [formControlName]=
"setting.name"></textarea>
15 *
ngIf=
"setting.type === 'input-checkbox'"
17 [formControlName]=
"setting.name"
18 [labelInnerHTML]=
"setting.label"
19 ></my-peertube-checkbox>
21 <div *
ngIf=
"formErrors[setting.name]" class=
"form-error">
22 {{ formErrors[setting.name] }}
26 <input type=
"submit" i18n
value=
"Update plugin settings" [disabled]=
"!form.valid">
29 <div *
ngIf=
"!hasRegisteredSettings()" i18n
class=
"no-settings">
30 This {{ pluginTypeLabel }} does not have settings.