1 <div [formGroup]=
"optionsFormGroup">
2 <div *
ngFor=
"let option of options; let last = last">
3 <div class=
"form-group row pt-2"
4 *
ngIf=
"option.type === 'bool'">
5 <label class=
"cd-col-form-label"
7 <b>{{ option.text }}
</b>
9 <span class=
"text-muted">
11 <cd-helper *
ngIf=
"option.long_desc">
12 {{ option.long_desc }}
</cd-helper>
16 <div class=
"cd-col-form-input">
17 <div class=
"custom-control custom-checkbox">
18 <input class=
"custom-control-input"
21 [formControlName]=
"option.name">
22 <label class=
"custom-control-label"
23 [for]=
"option.name"></label>
28 <div class=
"form-group row pt-2"
29 *
ngIf=
"option.type !== 'bool'">
30 <label class=
"cd-col-form-label"
31 [for]=
"option.name">{{ option.text }}
33 <span class=
"text-muted">
35 <cd-helper *
ngIf=
"option.long_desc">
36 {{ option.long_desc }}
</cd-helper>
39 <div class=
"cd-col-form-input">
40 <div class=
"input-group">
41 <input class=
"form-control"
42 [type]=
"option.additionalTypeInfo.inputType"
44 [placeholder]=
"option.additionalTypeInfo.humanReadable"
45 [formControlName]=
"option.name"
46 [step]=
"getStep(option.type, optionsForm.getValue(option.name))">
47 <div class=
"input-group-append"
48 *
ngIf=
"optionsFormShowReset">
49 <button class=
"btn btn-light"
52 title=
"Remove the custom configuration value. The default configuration will be inherited and used instead."
53 (click)=
"resetValue(option.name)"
55 <i [ngClass]=
"[icons.erase]"
56 aria-hidden=
"true"></i>
60 <span class=
"invalid-feedback"
61 *
ngIf=
"optionsForm.showError(option.name, optionsFormDir, 'pattern')">
62 {{ option.additionalTypeInfo.patternHelpText }}
</span>
63 <span class=
"invalid-feedback"
64 *
ngIf=
"optionsForm.showError(option.name, optionsFormDir, 'invalidUuid')">
65 {{ option.additionalTypeInfo.patternHelpText }}
</span>
66 <span class=
"invalid-feedback"
67 *
ngIf=
"optionsForm.showError(option.name, optionsFormDir, 'max')"
68 i18n
>The entered value is too high! It must not be greater than {{ option.maxValue }}.
</span>
69 <span class=
"invalid-feedback"
70 *
ngIf=
"optionsForm.showError(option.name, optionsFormDir, 'min')"
71 i18n
>The entered value is too low! It must not be lower than {{ option.minValue }}.
</span>