diff options
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html index e69de29bb..aae08b94d 100644 --- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html +++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html | |||
@@ -0,0 +1,26 @@ | |||
1 | <ng-container *ngIf="plugin"> | ||
2 | |||
3 | <h2> | ||
4 | <ng-container>{{ pluginTypeLabel }}</ng-container> | ||
5 | {{ plugin.name }} | ||
6 | </h2> | ||
7 | |||
8 | <form *ngIf="hasRegisteredSettings()" role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | ||
9 | <div class="form-group" *ngFor="let setting of registeredSettings"> | ||
10 | <label [attr.for]="setting.name">{{ setting.label }}</label> | ||
11 | |||
12 | <input *ngIf="setting.type === 'input'" type="text" [id]="setting.name" [formControlName]="setting.name" /> | ||
13 | |||
14 | <div *ngIf="formErrors[setting.name]" class="form-error"> | ||
15 | {{ formErrors[setting.name] }} | ||
16 | </div> | ||
17 | </div> | ||
18 | |||
19 | <input type="submit" i18n value="Update plugin settings" [disabled]="!form.valid"> | ||
20 | </form> | ||
21 | |||
22 | <div *ngIf="!hasRegisteredSettings()" i18n class="no-settings"> | ||
23 | This {{ pluginTypeLabel }} does not have settings. | ||
24 | </div> | ||
25 | |||
26 | </ng-container> | ||