2021-02-11 11:27:03 +01:00
|
|
|
<div *ngIf="question && question.behaviourCertaintyOptions && question.behaviourCertaintyOptions.length">
|
2021-12-01 15:55:25 +01:00
|
|
|
<ion-item class="ion-text-wrap addon-qbehaviour-deferredcbm-certainty-title">
|
|
|
|
<ion-label>
|
|
|
|
<p>{{ 'core.question.certainty' | translate }}</p>
|
|
|
|
</ion-label>
|
2021-02-11 11:27:03 +01:00
|
|
|
</ion-item>
|
|
|
|
|
|
|
|
<ion-radio-group [(ngModel)]="question.behaviourCertaintySelected" [name]="question.behaviourCertaintyOptions[0].name">
|
|
|
|
<ion-item class="ion-text-wrap" *ngFor="let option of question.behaviourCertaintyOptions">
|
2023-12-12 12:51:59 +01:00
|
|
|
<ion-radio id="{{option.id}}" [value]="option.value" [disabled]="option.disabled">
|
|
|
|
{{ option.text }}
|
|
|
|
</ion-radio>
|
2021-02-11 11:27:03 +01:00
|
|
|
</ion-item>
|
|
|
|
</ion-radio-group>
|
|
|
|
|
|
|
|
<!-- ion-radio doesn't use an input. Create a hidden input to hold the selected value. -->
|
|
|
|
<input type="hidden" [ngModel]="question.behaviourCertaintySelected" [attr.name]="question.behaviourCertaintyOptions[0].name">
|
|
|
|
</div>
|