17 lines
975 B
HTML
Raw Normal View History

2018-05-09 14:14:31 +02:00
<span *ngIf="mode != 'show'" [formGroup]="form">
2018-04-12 14:56:51 +02:00
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required"></span>
2018-05-09 14:14:31 +02:00
<core-input-errors *ngIf="error && mode == 'edit'" [control]="form.controls['f_'+field.id]" [errorMessages]="error"></core-input-errors>
<ion-select [formControlName]="'f_'+field.id" multiple="true" [placeholder]="'addon.mod_data.menuchoose' | translate" core-input-errors [selectOptions]="{title: field.name}">
<ion-option *ngFor="let option of options" [value]="option.value">{{option.key}}</ion-option>
</ion-select>
2018-04-12 14:56:51 +02:00
2018-05-09 14:14:31 +02:00
<ion-item *ngIf="mode == 'search'">
2018-04-12 14:56:51 +02:00
<ion-label>{{ 'addon.mod_data.selectedrequired' | translate }}</ion-label>
2018-05-09 14:14:31 +02:00
<ion-checkbox item-end [formControlName]="'f_'+field.id+'_allreq'" [(ngModel)]="search['f_'+field.id+'_allreq']">
2018-04-12 14:56:51 +02:00
</ion-checkbox>
</ion-item>
2018-05-09 14:14:31 +02:00
</span>
2018-04-12 14:56:51 +02:00
<core-format-text *ngIf="mode == 'show' && value && value.content" [text]="value.content"></core-format-text>