<form #fmEditForm="ngForm" role="form" class="form-validated common-form striped-odd">
<div class="form-group row" *ngFor="let field of fields">
<div class="col-lg-3 offset-lg-1">
- <label for="rec-{{field.name}}">{{field.label}}</label>
+ <label for="{{idPrefix}}-{{field.name}}">{{field.label}}</label>
</div>
<div class="col-lg-7">
<input *ngIf="field.datatype == 'id' && pkeyIsEditable"
class="form-control"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
placeholder="{{field.label}}..."
i18n-placeholder
[readonly]="field.readOnly"
<input *ngIf="field.datatype == 'text' || field.datatype == 'interval'"
class="form-control"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
placeholder="{{field.label}}..."
i18n-placeholder
[readonly]="field.readOnly"
<span *ngIf="field.datatype == 'timestamp'">
<eg-date-select
- domId="rec-{{field.name}}"
+ domId="{{idPrefix}}-{{field.name}}"
(onChangeAsIso)="record[field.name]($event)"
initialIso="{{record[field.name]()}}">
</eg-date-select>
class="form-control"
type="number"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
placeholder="{{field.label}}..."
i18n-placeholder
[readonly]="field.readOnly"
class="form-control"
type="number" step="0.1"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
placeholder="{{field.label}}..."
i18n-placeholder
[readonly]="field.readOnly"
class="form-control"
type="number" step="0.1"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
[readonly]="field.readOnly"
[required]="field.isRequired()"
[ngModel]="record[field.name]() | currency"/>
class="form-control"
type="number" step="0.1"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
placeholder="{{field.label}}..."
i18n-placeholder
[readonly]="field.readOnly"
class="form-check-input"
type="checkbox"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
[readonly]="field.readOnly"
[ngModel]="record[field.name]()"
(ngModelChange)="record[field.name]($event)"/>
<select
class="form-control"
name="{{field.name}}"
- id="rec-{{field.name}}"
+ id="{{idPrefix}}-{{field.name}}"
[disabled]="field.readOnly"
[required]="field.isRequired()"
[ngModel]="record[field.name]()"
<eg-org-select *ngIf="field.datatype == 'org_unit'"
placeholder="{{field.label}}..."
i18n-placeholder
- domId="rec-{{field.name}}"
+ domId="{{idPrefix}}-{{field.name}}"
[limitPerms]="modePerms[mode]"
[applyDefault]="field.orgDefaultAllowed"
[initialOrgId]="record[field.name]()"