mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): correct editable regions workshop-hotel-feedback-form (#65413)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -61,11 +61,11 @@ assert.isNotNull(document.querySelector('form fieldset'));
|
||||
</p>
|
||||
</header>
|
||||
<main>
|
||||
<form method="POST" action="https://hotel-feedback.freecodecamp.org">
|
||||
--fcc-editable-region--
|
||||
<form method="POST" action="https://hotel-feedback.freecodecamp.org">
|
||||
|
||||
</form>
|
||||
--fcc-editable-region--
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -69,13 +69,13 @@ assert.strictEqual(legend?.innerText.trim(), 'Personal Information');
|
||||
</p>
|
||||
</header>
|
||||
<main>
|
||||
--fcc-editable-region--
|
||||
<form method="POST" action="https://hotel-feedback.freecodecamp.org">
|
||||
<fieldset>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
</form>
|
||||
--fcc-editable-region--
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-2
@@ -80,14 +80,14 @@ assert.isNotNull(document.querySelector('fieldset label + input'));
|
||||
</p>
|
||||
</header>
|
||||
<main>
|
||||
--fcc-editable-region--
|
||||
<form method="POST" action="https://hotel-feedback.freecodecamp.org">
|
||||
<fieldset>
|
||||
<legend>Personal Information</legend>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
</form>
|
||||
--fcc-editable-region--
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -76,8 +76,8 @@ assert.strictEqual(document.querySelector('input#email')?.getAttribute('placehol
|
||||
<legend>Personal Information</legend>
|
||||
<label for="full-name">Name (required):</label>
|
||||
<input type="text" id="full-name" name="name" placeholder="e.g., John Doe" required>
|
||||
--fcc-editable-region--
|
||||
<label for="email">Email address (required):</label>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
|
||||
+1
-1
@@ -88,8 +88,8 @@ assert.isNotNull(document.querySelector('label + input[max="100"]'));
|
||||
name="email"
|
||||
size="20"
|
||||
/>
|
||||
--fcc-editable-region--
|
||||
<label for="age">Age (optional):</label>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
|
||||
+3
-3
@@ -100,12 +100,12 @@ assert.strictEqual(document.querySelector('fieldset:nth-of-type(2) input[type="r
|
||||
<label for="age">Age (optional):</label>
|
||||
<input type="number" name="age" id="age" min="3" max="100" />
|
||||
</fieldset>
|
||||
--fcc-editable-region--
|
||||
<fieldset>
|
||||
<legend>Was this your first time at our hotel?</legend>
|
||||
|
||||
</fieldset>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -97,9 +97,9 @@ assert.strictEqual(document.querySelector('fieldset:nth-of-type(2) input:nth-of-
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Was this your first time at our hotel?</legend>
|
||||
--fcc-editable-region--
|
||||
<input id="yes-option" type="radio" name="hotel-stay" />
|
||||
<label for="yes-option">Yes</label>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
|
||||
+3
-3
@@ -118,14 +118,14 @@ assert.strictEqual(document.querySelector("fieldset:nth-of-type(3) input[type='c
|
||||
<label for="no-option">No</label>
|
||||
</fieldset>
|
||||
|
||||
--fcc-editable-region--
|
||||
<fieldset>
|
||||
<legend>
|
||||
Why did you choose to stay at our hotel? (Check all that apply)
|
||||
</legend>
|
||||
|
||||
</fieldset>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
+1
@@ -109,6 +109,7 @@ assert.strictEqual(document.querySelector('fieldset:nth-of-type(3) input[type="c
|
||||
|
||||
<input type="checkbox" id="ads" name="choice" value="ads" />
|
||||
<label for="ads">Social Media Ads</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
+1
@@ -151,6 +151,7 @@ assert.strictEqual(document.querySelector('fieldset:nth-of-type(3) input[value="
|
||||
value="recommendation"
|
||||
/>
|
||||
<label for="recommendation">Personal Recommendation</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
+1
@@ -125,6 +125,7 @@ assert.strictEqual(document.querySelector('fieldset:nth-of-type(3) input[value="
|
||||
value="reputation"
|
||||
/>
|
||||
<label for="reputation">Reputation</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
+3
-3
@@ -172,11 +172,11 @@ assert.strictEqual(document.querySelector('option[value="excellent"]')?.textCont
|
||||
|
||||
<label for="service">How was the service?</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
<select name="service" id="service">
|
||||
|
||||
</select>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</select>
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
+3
-3
@@ -109,15 +109,15 @@ assert.exists(document.querySelector('option[value="excellent"][selected]'));
|
||||
|
||||
<label for="service">How was the service?</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
<select name="service" id="service">
|
||||
<option value="poor">Poor</option>
|
||||
<option value="satisfactory">Satisfactory</option>
|
||||
<option value="good">Good</option>
|
||||
<option value="very-good">Very Good</option>
|
||||
<option value="excellent">Excellent</option>
|
||||
</select>
|
||||
--fcc-editable-region--
|
||||
<option value="excellent">Excellent</option>
|
||||
--fcc-editable-region--
|
||||
</select>
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
+3
-3
@@ -191,11 +191,11 @@ assert.exists(document.querySelector('fieldset:nth-of-type(4) select#food option
|
||||
|
||||
<label for="food">How was the food?</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
<select name="food" id="food">
|
||||
|
||||
</select>
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</select>
|
||||
</fieldset>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
+2
-1
@@ -132,10 +132,11 @@ assert.exists(document.querySelector('label + textarea'));
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
--fcc-editable-region--
|
||||
<label for="comments">Other Comments?</label>
|
||||
|
||||
--fcc-editable-region--
|
||||
|
||||
--fcc-editable-region--
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user