Remove Step 0
This commit is contained in:
parent
c971e4dddc
commit
e8dccf3b77
|
@ -3,37 +3,6 @@
|
||||||
<!--</button>-->
|
<!--</button>-->
|
||||||
|
|
||||||
<mat-stepper linear #stepper>
|
<mat-stepper linear #stepper>
|
||||||
<!-- Step 0-->
|
|
||||||
<mat-step [stepControl]="zeroFormGroup" class="firstStep">
|
|
||||||
<form [formGroup]="zeroFormGroup">
|
|
||||||
<ng-template matStepLabel>Registration</ng-template>
|
|
||||||
<div class="flexContainerRow width20">
|
|
||||||
<mat-checkbox formControlName="danceTraining"
|
|
||||||
>Für den Tanzunterricht (Tanz-Flatrate)</mat-checkbox
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="flexContainerRow width20">
|
|
||||||
<mat-checkbox formControlName="karateTraining"
|
|
||||||
>Für den Karateunterricht</mat-checkbox
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="flexContainerRow width20">
|
|
||||||
<mat-checkbox formControlName="freeTraining"
|
|
||||||
>Für freies Training (unterschriebenes Beiblatt muss der Anmeldung
|
|
||||||
beiliegen)</mat-checkbox
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<div>
|
|
||||||
<button
|
|
||||||
mat-button
|
|
||||||
matStepperNext
|
|
||||||
[disabled]="zeroFormGroup.status == 'INVALID'">
|
|
||||||
Next
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</mat-step>
|
|
||||||
|
|
||||||
<!-- Step 1-->
|
<!-- Step 1-->
|
||||||
<mat-step [stepControl]="firstFormGroup" class="firstStep">
|
<mat-step [stepControl]="firstFormGroup" class="firstStep">
|
||||||
<form [formGroup]="firstFormGroup" class="flexContainerRow width50">
|
<form [formGroup]="firstFormGroup" class="flexContainerRow width50">
|
||||||
|
|
|
@ -86,16 +86,6 @@ export class StudentRegisterComponent implements OnInit {
|
||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.zeroFormGroup = this._formBuilder.group(
|
|
||||||
{
|
|
||||||
danceTraining: [''],
|
|
||||||
karateTraining: [''],
|
|
||||||
freeTraining: [''],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
validators: [this.requireAtLeastOne],
|
|
||||||
}
|
|
||||||
);
|
|
||||||
this.firstFormGroup = this._formBuilder.group({
|
this.firstFormGroup = this._formBuilder.group({
|
||||||
firstName: ['', Validators.required],
|
firstName: ['', Validators.required],
|
||||||
lastName: ['', Validators.required],
|
lastName: ['', Validators.required],
|
||||||
|
|
Loading…
Reference in New Issue