Commit 1b7ba703 authored by Lukas Burgey's avatar Lukas Burgey

Fix submit of questionnaires

parent 82c24d21
......@@ -4,11 +4,11 @@
The site {{stateItem.site.name}} needs the following data to give you access to the service {{
stateItem.service.name}}.
</p>
<form class="form-vertical" (ngSubmit)="sendAnswers()" #questionnaireForm="ngForm">
<form class="form-vertical" #questionnaireForm="ngForm">
<mat-form-field *ngFor="let key of stateItem.questionnaire | ObjKeys">
<input matInput required
placeholder="{{stateItem.questionnaire[key]}}" [(ngModel)]="answers[key]" name="key">
</mat-form-field>
<button mat-dialog-close mat-raised-button color="primary" type="submit" [disabled]="!questionnaireForm.form.valid">Submit</button>
<button mat-dialog-close mat-raised-button (click)="sendAnswers()" color="primary" type="submit" [disabled]="!questionnaireForm.form.valid">Submit</button>
</form>
</div>
Markdown is supported
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