1 <div class="col-sm-12 col-lg-6">
2 <form name="configForm"
3 class="form-horizontal"
5 [formGroup]="configForm"
7 <div class="panel panel-default">
8 <div class="panel-heading">
9 <h3 class="panel-title">
10 <ng-container i18>Edit</ng-container> {{ configForm.getValue('name') }}
13 <div class="panel-body">
16 <div class="form-group">
18 class="control-label col-sm-3">Name
20 <div class="col-sm-9">
21 <input class="form-control"
24 formControlName="name"
30 <div class="form-group"
31 *ngIf="configForm.getValue('desc')">
33 class="control-label col-sm-3">Description
35 <div class="col-sm-9">
36 <textarea class="form-control"
38 formControlName="desc"
44 <!-- Long description -->
45 <div class="form-group"
46 *ngIf="configForm.getValue('long_desc')">
48 class="control-label col-sm-3">Long description
50 <div class="col-sm-9">
51 <textarea class="form-control"
53 formControlName="long_desc"
60 <div class="form-group"
61 *ngIf="configForm.getValue('default') !== ''">
63 class="control-label col-sm-3">Default
65 <div class="col-sm-9">
66 <input class="form-control"
69 formControlName="default"
74 <!-- Daemon default -->
75 <div class="form-group"
76 *ngIf="configForm.getValue('daemon_default') !== ''">
78 class="control-label col-sm-3">Daemon default
80 <div class="col-sm-9">
81 <input class="form-control"
84 formControlName="daemon_default"
90 <div class="form-group"
91 *ngIf="configForm.getValue('services').length > 0">
93 class="control-label col-sm-3">Services
95 <div class="col-sm-9">
96 <span *ngFor="let service of configForm.getValue('services')"
97 class="form-component-badge">
98 <span class="badge badge-pill badge-primary">{{ service }}</span>
104 <div class="col-sm-12">
106 class="page-header">Values</h2>
107 <div class="row" *ngFor="let section of availSections">
108 <div class="form-group" *ngIf="type === 'bool'">
109 <div class="col-sm-offset-3 col-sm-9">
110 <div class="checkbox checkbox-primary">
111 <input [id]="section"
113 [formControlName]="section">
114 <label [for]="section"
120 <div class="form-group"
121 [ngClass]="{'has-error': configForm.showError(section, formDir)}"
122 *ngIf="type !== 'bool'">
123 <label class="control-label col-sm-3"
127 <div class="col-sm-9">
128 <input class="form-control"
131 [placeholder]="humanReadableType"
132 [formControlName]="section"
133 [step]="getStep(type, this.configForm.getValue(section))">
134 <span class="help-block"
135 *ngIf="configForm.showError(section, formDir, 'pattern')"
137 {{ patternHelpText }}
139 <span class="help-block"
140 *ngIf="configForm.showError(section, formDir, 'max')"
142 The entered value is too high! It must not be greater than {{ maxValue }}.
144 <span class="help-block"
145 *ngIf="configForm.showError(section, formDir, 'min')"
147 The entered value is too low! It must not be lower than {{ minValue }}.
155 <div class="panel-footer">
156 <div class="button-group text-right">
157 <cd-submit-button [form]="formDir"
159 (submitAction)="submit()">
160 <span i18n>Save</span>
162 <button type="button"
163 class="btn btn-sm btn-default"
164 routerLink="/configuration"