-
-
Notifications
You must be signed in to change notification settings - Fork 266
ITP-MAY-25- LONDON | KEBROM-GEBRETINSAY | Module-Onboarding - FORM-CONTROL #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
I had indentation error in the previous branch of form control. I have tried to fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is error-free and well indented, form implementation is solid.
I only have a few questions which I left as inline comments with the the code.
<form action="/submit-order" method="POST"> | ||
|
||
<label for="fname">First Name:</label><br /> | ||
<input type="text" id="fname" name="fname" required pattern="[A-Za-z\s]+" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you plan to accept a name that contains only a single space character?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only a single space. The pattern allows single or multiple space character.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to recognise a name containing only space characters as valid name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because name with only space characters is valid under the pattern.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and also the pattern accepts any combination of letters and whitespace,
Your implementation is very solid. Good job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is okay
Learners, PR Template
Self checklist
Changelist
The purpose of PR is facilitating code review and collaboration among developers. It allows team members to discuss proposed changes, ensuring code quality and adherence to project standards. Additionally, PRs serve as documentation of modifications and enable automated testing to prevent bugs in the codebase
Questions
Ask any questions you have for your reviewer.