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>
12 <input *
ngIf=
"setting.type === 'input'" type=
"text" [id]=
"setting.name" [formControlName]=
"setting.name" />
14 <textarea *
ngIf=
"setting.type === 'input-textarea'" type=
"text" [id]=
"setting.name" [formControlName]=
"setting.name"></textarea>
16 <my-help *
ngIf=
"setting.type === 'markdown-text'" helpType=
"markdownText"></my-help>
18 <my-help *
ngIf=
"setting.type === 'markdown-enhanced'" helpType=
"markdownEnhanced"></my-help>
21 *
ngIf=
"setting.type === 'markdown-text'"
22 markdownType=
"text" [id]=
"setting.name" [formControlName]=
"setting.name" textareaWidth=
"500px" [previewColumn]=
"false"
23 [classes]=
"{ 'input-error': formErrors['settings.name'] }"
24 ></my-markdown-textarea>
27 *
ngIf=
"setting.type === 'markdown-enhanced'"
28 markdownType=
"enhanced" [id]=
"setting.name" [formControlName]=
"setting.name" textareaWidth=
"500px" [previewColumn]=
"false"
29 [classes]=
"{ 'input-error': formErrors['settings.name'] }"
30 ></my-markdown-textarea>
33 *
ngIf=
"setting.type === 'input-checkbox'"
35 [formControlName]=
"setting.name"
36 [labelInnerHTML]=
"setting.label"
37 ></my-peertube-checkbox>
39 <div *
ngIf=
"formErrors[setting.name]" class=
"form-error">
40 {{ formErrors[setting.name] }}
44 <input type=
"submit" i18n
value=
"Update plugin settings" [disabled]=
"!form.valid">
47 <div *
ngIf=
"!hasRegisteredSettings()" i18n
class=
"no-settings">
48 This {{ pluginTypeLabel }} does not have settings.