Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oser-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hamza Touizrat
oser-frontend
Commits
f468366c
Commit
f468366c
authored
2 years ago
by
Mélissa Aïdli
Browse files
Options
Downloads
Patches
Plain Diff
Restored phone number
parent
518172ff
Branches
Branches containing commit
No related tags found
1 merge request
!80
New signup
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/signup/core/registration.model.ts
+2
-0
2 additions, 0 deletions
src/app/signup/core/registration.model.ts
src/app/signup/student-signup/student-signup.component.ts
+2
-2
2 additions, 2 deletions
src/app/signup/student-signup/student-signup.component.ts
with
4 additions
and
2 deletions
src/app/signup/core/registration.model.ts
+
2
−
0
View file @
f468366c
...
@@ -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
,
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
src/app/signup/student-signup/student-signup.component.ts
+
2
−
2
View file @
f468366c
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment