16 lines
929 B
HTML
16 lines
929 B
HTML
|
<ion-list *ngIf="mode != 'show'">
|
||
|
<span *ngIf="mode == 'edit'" [core-mark-required]="field.required"></span>
|
||
|
<ion-item *ngFor="let option of options" [formGroup]="form">
|
||
|
<ion-label>{{ option }}</ion-label>
|
||
|
<ion-checkbox item-end [formControlName]="'f_'+field.id" [(ngModel)]="values[option]">
|
||
|
</ion-checkbox>
|
||
|
<core-input-errors *ngIf="error && mode == 'edit'" [control]="form.controls['f_'+field.id]" [errorMessages]="errors"></core-input-errors>
|
||
|
</ion-item>
|
||
|
|
||
|
<ion-item *ngIf="mode == 'search'" [formGroup]="form">
|
||
|
<ion-label>{{ 'addon.mod_data.selectedrequired' | translate }}</ion-label>
|
||
|
<ion-checkbox item-end [formControlName]="'f_'+field.id+'_allreq'" [(ngModel)]="values['f_'+field.id+'_allreq']">
|
||
|
</ion-checkbox>
|
||
|
</ion-item>
|
||
|
</ion-list>
|
||
|
<core-format-text *ngIf="mode == 'show' && value && value.content" [text]="value.content"></core-format-text>
|