2021-03-31 09:24:48 +02:00
|
|
|
<span *ngIf="inputMode && form" [formGroup]="form">
|
|
|
|
<span *ngIf="editMode" [core-mark-required]="field.required" class="core-mark-required"></span>
|
|
|
|
<ion-select [formControlName]="'f_'+field.id" [placeholder]="'addon.mod_data.menuchoose' | translate"
|
2023-07-24 10:52:36 +09:00
|
|
|
[cancelText]="'core.cancel' | translate" [okText]="'core.ok' | translate" [interfaceOptions]="{header: field.name}"
|
|
|
|
interface="alert">
|
2021-03-31 09:24:48 +02:00
|
|
|
<ion-select-option value="">{{ 'addon.mod_data.menuchoose' | translate }}</ion-select-option>
|
|
|
|
<ion-select-option *ngFor="let option of options" [value]="option">{{option}}</ion-select-option>
|
|
|
|
</ion-select>
|
2023-11-24 13:34:54 +01:00
|
|
|
<core-input-errors *ngIf="error && editMode" [control]="form.controls['f_'+field.id]" [errorText]="error" />
|
2021-03-31 09:24:48 +02:00
|
|
|
</span>
|
|
|
|
|
|
|
|
<span *ngIf="displayMode && value && value.content">{{ value.content }}</span>
|