2018-05-17 16:31:19 +02:00
|
|
|
|
<span *ngIf="!isShowOrListMode()" [formGroup]="form">
|
|
|
|
|
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required" class="core-mark-required"></span>
|
|
|
|
|
<ion-select [formControlName]="'f_'+field.id" [placeholder]="'addon.mod_data.menuchoose' | translate" [selectOptions]="{title: field.name}" interface="popover">
|
2018-05-09 14:14:31 +02:00
|
|
|
|
<ion-option value="">{{ 'addon.mod_data.menuchoose' | translate }}</ion-option>
|
|
|
|
|
<ion-option *ngFor="let option of options" [value]="option">{{option}}</ion-option>
|
|
|
|
|
</ion-select>
|
2018-05-17 16:31:19 +02:00
|
|
|
|
<core-input-errors *ngIf="error && mode == 'edit'" [control]="form.controls['f_'+field.id]" [errorText]="error"></core-input-errors>
|
2018-05-09 14:14:31 +02:00
|
|
|
|
</span>
|
2018-05-02 10:44:28 +02:00
|
|
|
|
|
2018-05-17 16:31:19 +02:00
|
|
|
|
<core-format-text *ngIf="isShowOrListMode() && value && value.content" [text]="value.content"></core-format-text>
|