Skip to content
Snippets Groups Projects
Commit f468366c authored by Mélissa Aïdli's avatar Mélissa Aïdli
Browse files

Restored phone number

parent 518172ff
Branches
No related tags found
1 merge request!80New signup
...@@ -6,6 +6,7 @@ class RegistrationSchema { ...@@ -6,6 +6,7 @@ class RegistrationSchema {
firstName: string; firstName: string;
lastName: string; lastName: string;
dateOfBirth : Date; dateOfBirth : Date;
phoneNumber : string;
} }
export class Registration extends RegistrationSchema { export class Registration extends RegistrationSchema {
...@@ -29,6 +30,7 @@ export class RegistrationAdapter { ...@@ -29,6 +30,7 @@ export class RegistrationAdapter {
first_name: obj.firstName, first_name: obj.firstName,
last_name: obj.lastName, last_name: obj.lastName,
dateOfBirth : obj.dateOfBirth, dateOfBirth : obj.dateOfBirth,
phoneNumber : obj.phoneNumber,
} }
} }
} }
...@@ -112,9 +112,9 @@ export class StudentSignupComponent implements OnInit { ...@@ -112,9 +112,9 @@ export class StudentSignupComponent implements OnInit {
submit() { submit() {
this.loading = true; this.loading = true;
const {email,firstName,lastName,dateOfBirth} = this.formGroup.value const {email,firstName,lastName,dateOfBirth,phoneNumber} = this.formGroup.value
//const {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber} = this.formGroup.value; //const {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber} = this.formGroup.value;
const registration: Registration = {email,firstName,lastName,dateOfBirth}; const registration: Registration = {email,firstName,lastName,dateOfBirth,phoneNumber};
// const personnalData: PersonnalData = {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber}; // const personnalData: PersonnalData = {gender,adressNumber,street,zipCode,city,personnalPhone,parentsPhone,parentsEmail,school,grade,section,specialTeaching,scholarship,fatherActivity,motherActivity,parentsStatus,dependantsNumber};
const password: string = this.formGroup.controls.password.value; const password: string = this.formGroup.controls.password.value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment