Skip to content
Snippets Groups Projects
Unverified Commit b7c14c3a authored by chiahetcho's avatar chiahetcho Committed by GitHub
Browse files

Change form link (#39)

* Modify inscription page (#32)

* modify the order of blocks

* Update dependencies and TravisCI build (#33)

* Update dependencies via a clean npm install

* Use Node.js 10 in Travis CI

* Specify node==10.x for Heroku

* link changed and disabled when unchecked checkbox
parent bb00f445
Branches
No related tags found
No related merge requests found
......@@ -51,27 +51,24 @@
J'accepte qu'OSER utilise mes données personnelles fournies ci-dessus ou dans le formulaire d'inscription
adminsitrative, dans le strict respect du cadre spécifié ci-dessus :
</p>
</form>
<mat-checkbox id="checkboxUtilisation" class="checkbox-field" [(ngModel)]="agree" required>
<mat-checkbox id="checkboxUtilisation" class="checkbox-field" formControlName="agree" required>
J'accepte cette utilisation
</mat-checkbox>
<p class="text-center">
<a mat-raised-button color="accent" [disabled]="!agree"
href="https://docs.google.com/forms/u/1/d/1mIEy-FVgYvrL0Ntl8YpLKVn0DqpjSl9S_ekjqYo53rI/viewform" target="_blank">
<a mat-raised-button color="accent" [disabled]="formGroup.value.agree == false"
href="https://docs.google.com/forms/u/1/d/1mIEy-FVgYvrL0Ntl8YpLKVn0DqpjSl9S_ekjqYo53rI/viewform"
target="_blank">
<mat-icon>launch</mat-icon>
Remplir le formulaire
</a>
</p>
<form [formGroup]="formGroup" (ngSubmit)="submit()">
<mat-checkbox class="checkbox-field" formControlName="filledForm" required>
J'ai rempli le formulaire
</mat-checkbox>
<p>
Il ne te reste plus qu'à choisir un mot de passe. :-)
</p>
......
......@@ -41,9 +41,11 @@ export class StudentSignupComponent implements OnInit {
phoneNumber: '',
password: '',
passwordConfirm: '',
agree: [false, Validators.required],
filledForm: false,
acceptedConditions: false,
}, { validator: (group) => this.checkPasswords(group)})
}, { validator: (group) => this.checkPasswords(group)},)
console.log(this.formGroup.value.agree)
}
private checkPasswords(group: FormGroup): null | any {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment