Can restrict survey to group
This commit is contained in:
parent
588089d11b
commit
b9dca49894
3 changed files with 35 additions and 11 deletions
|
|
@ -51,6 +51,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 text-sm-end">
|
||||
<label for="group" class="col-form-label col-form-label-sm">Restreindre au groupe</label>
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-4 col-lg-2">
|
||||
<input class="form-control form-control-sm" id="group" bind:value={survey.group}>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 text-sm-end">
|
||||
<label for="start_availability" class="col-form-label col-form-label-sm">Date de début</label>
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@ class Survey {
|
|||
}
|
||||
}
|
||||
|
||||
update({ id, title, promo, shown, corrected, start_availability, end_availability }) {
|
||||
update({ id, title, promo, group, shown, corrected, start_availability, end_availability }) {
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.promo = promo;
|
||||
this.group = group;
|
||||
this.shown = shown;
|
||||
this.corrected = corrected;
|
||||
if (this.start_availability != start_availability) {
|
||||
|
|
|
|||
Reference in a new issue