Commit 78fd828e authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Fix bug checkbox => DONE

parent 3f60ffe1
......@@ -2,8 +2,8 @@
<label class="col-3 col-form-label">{{label}}</label>
<div class="col">
<div *ngFor="let cb of checkboxes.controls; let i=index" class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="cb_{{_options[i].id}}" [formControl]="cb">
<label class="form-check-label" for="cb_{{_options[i].id}}">{{_options[i].label}}</label>
<input class="form-check-input" type="checkbox" id="cb_{{_options[i].value}}" [formControl]="cb">
<label class="form-check-label" for="cb_{{_options[i].value}}">{{_options[i].label}}</label>
</div>
</div>
<div class="col-2 align-self-center text-center">
......
......@@ -14,6 +14,6 @@ export class CheckboxCriterion extends Criterion {
}
getCriterionStr(): string {
return this.id + '-cb-' + this.values.map(option => option.value).join(':');
return this.id + ':in:' + this.values.map(option => option.value).join('|');
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment