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
</label>
19 <div class=
"col-sm-9">
20 <input class=
"form-control"
23 formControlName=
"name"
29 <div class=
"form-group"
30 *
ngIf=
"configForm.getValue('desc')">
32 class=
"control-label col-sm-3">Description
</label>
33 <div class=
"col-sm-9">
34 <textarea class=
"form-control resize-vertical"
36 formControlName=
"desc"
42 <!-- Long description -->
43 <div class=
"form-group"
44 *
ngIf=
"configForm.getValue('long_desc')">
46 class=
"control-label col-sm-3">Long description
</label>
47 <div class=
"col-sm-9">
48 <textarea class=
"form-control resize-vertical"
50 formControlName=
"long_desc"
57 <div class=
"form-group"
58 *
ngIf=
"configForm.getValue('default') !== ''">
60 class=
"control-label col-sm-3">Default
</label>
61 <div class=
"col-sm-9">
62 <input class=
"form-control"
65 formControlName=
"default"
70 <!-- Daemon default -->
71 <div class=
"form-group"
72 *
ngIf=
"configForm.getValue('daemon_default') !== ''">
74 class=
"control-label col-sm-3">Daemon default
</label>
75 <div class=
"col-sm-9">
76 <input class=
"form-control"
79 formControlName=
"daemon_default"
85 <div class=
"form-group"
86 *
ngIf=
"configForm.getValue('services').length > 0">
88 class=
"control-label col-sm-3">Services
</label>
89 <div class=
"col-sm-9">
90 <span *
ngFor=
"let service of configForm.getValue('services')"
91 class=
"form-component-badge">
92 <span class=
"badge badge-pill badge-primary">{{ service }}
</span>
98 <div class=
"col-sm-12"
99 formGroupName=
"values">
101 class=
"page-header">Values
</h2>
103 *
ngFor=
"let section of availSections">
104 <div class=
"form-group"
105 *
ngIf=
"type === 'bool'">
106 <div class=
"col-sm-offset-3 col-sm-9">
107 <div class=
"checkbox checkbox-primary">
108 <input [id]=
"section"
110 [formControlName]=
"section">
111 <label [for]=
"section">{{ section }}
116 <div class=
"form-group"
117 [ngClass]=
"{'has-error': configForm.showError(section, formDir)}"
118 *
ngIf=
"type !== 'bool'">
119 <label class=
"control-label col-sm-3"
120 [for]=
"section">{{ section }}
122 <div class=
"col-sm-9">
123 <input class=
"form-control"
126 [placeholder]=
"humanReadableType"
127 [formControlName]=
"section"
128 [step]=
"getStep(type, this.configForm.getValue(section))">
129 <span class=
"help-block"
130 *
ngIf=
"configForm.showError(section, formDir, 'pattern')">
131 {{ patternHelpText }}
133 <span class=
"help-block"
134 *
ngIf=
"configForm.showError(section, formDir, 'invalidUuid')">
135 {{ patternHelpText }}
137 <span class=
"help-block"
138 *
ngIf=
"configForm.showError(section, formDir, 'max')"
139 i18n
>The entered value is too high! It must not be greater than {{ maxValue }}.
</span>
140 <span class=
"help-block"
141 *
ngIf=
"configForm.showError(section, formDir, 'min')"
142 i18n
>The entered value is too low! It must not be lower than {{ minValue }}.
</span>
149 <div class=
"panel-footer">
150 <div class=
"button-group text-right">
151 <cd-submit-button [form]=
"formDir"
153 (submitAction)=
"submit()">
154 <span i18n
>Save
</span>
156 <cd-back-button></cd-back-button>