<div class="form-group row" *ngFor="let field of fields">
<div class="col-lg-3">
<label for="{{idPrefix}}-{{field.name}}">{{field.label}}</label>
- <eg-help-popover [placement]="'right'" *ngIf="field.helpText" helpText="{{field.helpTextValue}}"></eg-help-popover>
</div>
<div class="col-lg-9">
-
+ <ng-container *ngIf="field.helpText">
+ <p class="form-text">{{field.helpTextValue}}</p>
+ </ng-container>
+
<ng-container [ngSwitch]="inputType(field)">
<ng-container *ngSwitchCase="'template'">
<ng-container *ngSwitchCase="'org_unit'">
<eg-org-select
- placeholder="{{field.label}}..."
- i18n-placeholder
+ placeholder=""
domId="{{idPrefix}}-{{field.name}}"
[limitPerms]="modePerms[mode]"
[readOnly]="field.readOnly"
type="number" step="0.1"
name="{{field.name}}"
id="{{idPrefix}}-{{field.name}}"
- placeholder="{{field.label}}..."
- i18n-placeholder
+ placeholder=""
[readonly]="field.readOnly"
[required]="field.isRequired()"
[ngModel]="record[field.name]()"
type="number"
name="{{field.name}}"
id="{{idPrefix}}-{{field.name}}"
- placeholder="{{field.label}}..."
- i18n-placeholder
+ placeholder=""
[required]="field.isRequired()"
egMin="{{field.min}}"
egMax="{{field.max}}"
type="number" step="0.1"
name="{{field.name}}"
id="{{idPrefix}}-{{field.name}}"
- placeholder="{{field.label}}..."
- i18n-placeholder
+ placeholder=""
[required]="field.isRequired()"
[ngModel]="record[field.name]()"
(ngModelChange)="record[field.name]($event)"/>
class="form-control"
id="{{idPrefix}}-{{field.name}}" name="{{field.name}}"
type="text" pattern="[\s\S]*\S[\s\S]*"
- placeholder="{{field.label}}..." i18n-placeholder
+ placeholder=""
[required]="field.isRequired()"
[ngModel]="record[field.name]()"
(ngModelChange)="record[field.name]($event)"/>
<ng-container *ngSwitchCase="'link'">
<eg-combobox
id="{{idPrefix}}-{{field.name}}" name="{{field.name}}"
- placeholder="{{field.label}}..." i18n-placeholder
+ placeholder=""
[required]="field.isRequired()"
[idlClass]="field.class" [asyncSupportsEmptyTermClick]="true"
[idlBaseQuery]="field.idlBaseQuery"
<ng-container *ngSwitchCase="'list'">
<eg-combobox
domId="{{idPrefix}}-{{field.name}}" name="{{field.name}}"
- placeholder="{{field.label}}..." i18n-placeholder
+ placeholder=""
[required]="field.isRequired()"
[entries]="field.linkedValues"
[asyncDataSource]="field.linkedValuesSource"