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 i18n>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 resize-vertical"
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 resize-vertical"
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"
105 formGroupName="values">
107 class="page-header">Values</h2>
109 *ngFor="let section of availSections">
110 <div class="form-group"
111 *ngIf="type === 'bool'">
112 <div class="col-sm-offset-3 col-sm-9">
113 <div class="checkbox checkbox-primary">
114 <input [id]="section"
116 [formControlName]="section">
117 <label [for]="section">{{ section }}
122 <div class="form-group"
123 [ngClass]="{'has-error': configForm.showError(section, formDir)}"
124 *ngIf="type !== 'bool'">
125 <label class="control-label col-sm-3"
126 [for]="section">{{ section }}
128 <div class="col-sm-9">
129 <input class="form-control"
132 [placeholder]="humanReadableType"
133 [formControlName]="section"
134 [step]="getStep(type, this.configForm.getValue(section))">
135 <span class="help-block"
136 *ngIf="configForm.showError(section, formDir, 'pattern')">
137 {{ patternHelpText }}
139 <span class="help-block"
140 *ngIf="configForm.showError(section, formDir, 'invalidUuid')">
141 {{ patternHelpText }}
143 <span class="help-block"
144 *ngIf="configForm.showError(section, formDir, 'max')"
146 The entered value is too high! It must not be greater than {{ maxValue }}.
148 <span class="help-block"
149 *ngIf="configForm.showError(section, formDir, 'min')"
151 The entered value is too low! It must not be lower than {{ minValue }}.
159 <div class="panel-footer">
160 <div class="button-group text-right">
161 <cd-submit-button [form]="formDir"
163 (submitAction)="submit()">
164 <span i18n>Save</span>
166 <button type="button"
167 class="btn btn-sm btn-default"
168 routerLink="/configuration"