blob: 95dd74d31cd1a21a84d949de7810f187fe1a31cc (
plain) (
tree)
|
|
<ng-container *ngIf="plugin">
<h2>
<ng-container>{{ pluginTypeLabel }}</ng-container>
{{ plugin.name }}
</h2>
<form *ngIf="hasRegisteredSettings()" role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<div class="form-group" *ngFor="let setting of registeredSettings">
<label *ngIf="setting.type !== 'input-checkbox'" [attr.for]="setting.name" [innerHTML]="setting.label"></label>
<input *ngIf="setting.type === 'input'" type="text" [id]="setting.name" [formControlName]="setting.name" />
<textarea *ngIf="setting.type === 'input-textarea'" type="text" [id]="setting.name" [formControlName]="setting.name"></textarea>
<my-peertube-checkbox
*ngIf="setting.type === 'input-checkbox'"
[id]="setting.name"
[formControlName]="setting.name"
[labelInnerHTML]="setting.label"
></my-peertube-checkbox>
<div *ngIf="formErrors[setting.name]" class="form-error">
{{ formErrors[setting.name] }}
</div>
</div>
<input type="submit" i18n value="Update plugin settings" [disabled]="!form.valid">
</form>
<div *ngIf="!hasRegisteredSettings()" i18n class="no-settings">
This {{ pluginTypeLabel }} does not have settings.
</div>
</ng-container>
|