11 lines
751 B
HTML
11 lines
751 B
HTML
<span *ngIf="mode != 'show'" [formGroup]="form">
|
||
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required"></span>
|
||
<core-input-errors *ngIf="error && mode == 'edit'" [control]="form.controls['f_'+field.id]" [errorMessages]="error"></core-input-errors>
|
||
|
||
<ion-select [formControlName]="'f_'+field.id" [placeholder]="'addon.mod_data.menuchoose' | translate" core-input-errors [selectOptions]="{title: field.name}">
|
||
<ion-option value="">{{ 'addon.mod_data.menuchoose' | translate }}</ion-option>
|
||
<ion-option *ngFor="let option of options" [value]="option">{{option}}</ion-option>
|
||
</ion-select>
|
||
</span>
|
||
|
||
<core-format-text *ngIf="mode == 'show' && value && value.content" [text]="value.content"></core-format-text> |