Skip to content

Implement sign-up page#116

Open
ihor-bobyr wants to merge 1 commit intomasterfrom
20-create-sign-upanketa-page
Open

Implement sign-up page#116
ihor-bobyr wants to merge 1 commit intomasterfrom
20-create-sign-upanketa-page

Conversation

@ihor-bobyr
Copy link
Collaborator

No description provided.

@ihor-bobyr ihor-bobyr linked an issue Feb 10, 2024 that may be closed by this pull request
6 tasks
@ihor-bobyr ihor-bobyr force-pushed the 20-create-sign-upanketa-page branch from 4f1eddf to 17c24a5 Compare April 23, 2024 22:06
@@ -0,0 +1,14 @@
export const PageProxy = {
redirectToAdults() {
location.href += '/adults';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here might be some problems if we want to reuse this class for form on adults landing page, which has url /courses/adults, so I'd suggest setting full path here, instead of adding.

@ihor-bobyr ihor-bobyr force-pushed the 20-create-sign-upanketa-page branch from 17c24a5 to 44c491b Compare May 17, 2024 20:44
set data({ name, surname, birthday }) {
getInputRef('name').value = name;
getInputRef('surname').value = surname;
getInputRef('birthday').value = birthday;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line overrides the default value from input provided in HTML, can you please check here for the birthday variable not to have empty value?

currentDate.getMonth(),
currentDate.getDate(),
];
const [birthYear, birthMonth, birthDay] = birthDate.split('-').map((item) => +item);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be risk at some moment for the format of this value to be changed, so I'd suggest using Date constructor instead and calling methods getFullYear etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create sign up(anketa) page

2 participants