mirror of
https://github.com/maciejpedzich/cats-album.git
synced 2024-11-27 22:35:47 +01:00
Ensure all input fields have ids matching labels
This commit is contained in:
parent
c1bca9f272
commit
15a173c8c9
@ -44,31 +44,31 @@ import BaseLayout from '../layouts/BaseLayout.astro';
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<label for="name">Cat's name</label>
|
<label for="name">Cat's name</label>
|
||||||
<input type="text" name="name" required maxlength="25" />
|
<input type="text" id="name" name="name" required maxlength="25" />
|
||||||
<small>Maximum length: 25 characters</small>
|
<small>Maximum length: 25 characters</small>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="photo">Cat's photo</label>
|
<label for="photo">Cat's photo</label>
|
||||||
<input type="file" name="photo" required accept="image/*" />
|
<input type="file" id="photo" name="photo" required accept="image/*" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="description">Cat's description (optional)</label>
|
<label for="description">Cat's description (optional)</label>
|
||||||
<textarea name="description" maxlength="300"></textarea>
|
<textarea id="description" name="description" maxlength="300"></textarea>
|
||||||
<small>
|
<small>
|
||||||
Some ideas: nicknames, age, breed(s), where you adopted this cat
|
Some ideas: nicknames, age, breed(s), where you adopted this cat
|
||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="passedAway">Check this box if your cat has passed away</label>
|
<label for="passedAway">Check this box if your cat has passed away</label>
|
||||||
<input type="checkbox" name="passedAway" />
|
<input type="checkbox" id="passedAway" name="passedAway" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="name">Owner's name</label>
|
<label for="ownerName">Owner's name</label>
|
||||||
<input type="text" name="ownerName" required />
|
<input type="text" id="ownerName" name="ownerName" required />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label for="name">Owner's link (optional)</label>
|
<label for="ownerLink">Owner's link (optional)</label>
|
||||||
<input type="url" name="ownerLink" />
|
<input type="url" id="ownerLink" name="ownerLink" />
|
||||||
<small>Link to your website or a social media account</small>
|
<small>Link to your website or a social media account</small>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="_imascriptkiddie" />
|
<input type="hidden" name="_imascriptkiddie" />
|
||||||
|
Loading…
Reference in New Issue
Block a user