Skip to content

Commit

Permalink
validator 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaSamtash committed Dec 25, 2023
1 parent c79f1fe commit cfcec76
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/partials/modal-help.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
<div class="modal-help-form-item-container">
<label
class="modal-help-form-input-label visually-hidden"
for="user-name"
for="user-name-modal"
>Full Name</label
>
<input
class="modal-help-form-input"
type="text"
name="user-name"
id="user-name"
name="user-name-modal"
id="user-name-modal"
required
autofocus
pattern="[a-zA-Zа-яА-яіІїЇєЄґҐʼ]+"
Expand All @@ -35,14 +35,14 @@
<div class="modal-help-form-item-container">
<label
class="modal-help-form-input-label visually-hidden"
for="user-phone"
for="user-phone-modal"
>Phone number</label
>
<input
class="modal-help-form-input"
type="tel"
name="user-phone"
id="user-phone"
name="user-phone-modal"
id="user-phone-modal"
required
pattern="[0-9]{3}-[0-9]{3}-[0-9]{2}-[0-9]{2}"
title="xxx-xxx-xx-xx"
Expand All @@ -52,29 +52,28 @@
<div class="modal-help-form-item-container">
<label
class="modal-help-form-input-label visually-hidden"
for="user-email"
for="user-email-modal"
>Email</label
>
<input
class="modal-help-form-input"
type="email"
name="user-email"
id="user-email"
name="user-email-modal"
id="user-email-modal"
required
title="test@gmail.com"
placeholder="Email"
/>
</div>
<div class="modal-help-form-item-container">
<label
class="modal-help-form-input-label visually-hidden"
for="user-comment"
for="user-comment-modal"
>Your question</label
>
<textarea
class="modal-help-form-comment"
id="user-comment"
name="user-comment"
id="user-comment-modal"
name="user-comment-modal"
placeholder="Your question"
></textarea>
</div>
Expand Down

0 comments on commit cfcec76

Please sign in to comment.