aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html
blob: aae08b94d9c12f1b69791733cdcdf510ceb28091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<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 [attr.for]="setting.name">{{ setting.label }}</label>

      <input *ngIf="setting.type === 'input'" type="text" [id]="setting.name" [formControlName]="setting.name" />

      <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>