Skip to content

London | 26-ITP-May| Mahdi Rafiei | Sprint 1 | Form Controls#1245

Open
mrafeie wants to merge 3 commits into
CodeYourFuture:mainfrom
mrafeie:Form-Controls
Open

London | 26-ITP-May| Mahdi Rafiei | Sprint 1 | Form Controls#1245
mrafeie wants to merge 3 commits into
CodeYourFuture:mainfrom
mrafeie:Form-Controls

Conversation

@mrafeie
Copy link
Copy Markdown

@mrafeie mrafeie commented May 9, 2026

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

added the form as described in the task

@netlify
Copy link
Copy Markdown

netlify Bot commented May 9, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 3f3dd7b
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6a15c1f4fdd3420008dfcf83
😎 Deploy Preview https://deploy-preview-1245--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 96 (🔴 down 4 from production)
SEO: 91 (🟢 up 5 from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@mrafeie mrafeie added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module Module-Onboarding The name of the module. labels May 9, 2026
@Luro91 Luro91 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 14, 2026
Comment thread Form-Controls/index.html Outdated
<label for="size">T-Shirt Size</label>

<select id="size" name="size">
<option value="">Please choose a size</option>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What happens when the user would submit the form with this value?

Comment thread Form-Controls/index.html Outdated
Comment on lines +19 to +24
type="text"
id="name"
name="name"
required
pattern=".*\S.*\S.*"
minlength="2"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Its good practice to use indentation on the html attributes to make it more readable. How could you ensure consistent and standard formatting of your code?

@Luro91 Luro91 added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels May 14, 2026
@mrafeie mrafeie added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 15, 2026
Comment thread Form-Controls/index.html Outdated
Comment on lines +44 to +55
<select id="size" name="size" required>
<option value="s">Small</option>
<option value="m">Medium</option>
<option value="l">Large</option>
<option value="xl">XLarge</option>
<option value="xl">XXLarge</option>

</select>
</form>
</main>
<footer>
<!-- change to your name-->
<p>Mahdi Rafiei</p>
<p>Anita Amirhaeri</p>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is the code now the same as from Anita Amirhaeri?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

we were working on same laptop and then shared the code. I will fix it in the next commit

@Luro91 Luro91 removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 18, 2026
@mrafeie mrafeie added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 26, 2026
Copy link
Copy Markdown

@Luro91 Luro91 left a comment

Choose a reason for hiding this comment

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

I want to remind you that copying and pasting code, including code generated by AI, is not helpful for learning and should be avoided. The goal of this course is for you to build problem-solving skills through hands-on practice. When working together, you are absolutely welcome to discuss solutions, brainstorm approaches, and collaborate on concepts, but the actual implementation must be written by you.

As a quick self-check before your next submission, ask yourself: "If you deleted all of this code, could you reproduce the solution on your own?" If the answer is uncertain or no, it’s a strong signal that you should take extra time to fully understand and rewrite the logic independently.

To help verify your grasp of the implementation, please also implement something extra to test your understanding:

  • Add a required input field for T-shirt quantity, which must be an integer between 1 and 100 (inclusive).

Please make these updates and resubmit your PR

Comment thread Form-Controls/index.html
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I see an error on the console when loading the page
Refused to apply style from 'http://127.0.0.1:5500/Form-Controls/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

@Luro91 Luro91 removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Onboarding The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants