Add "autofocus" and "required" attributes to the email field (#9790)

* Add autofocus

* Add required
This commit is contained in:
JUNO_OKYO 2020-08-17 21:08:05 +07:00 committed by GitHub
parent 76ba4a5609
commit 1b4e5014ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
<div class="crayons-field">
<%= f.label :email, class: "crayons-field__label" %>
<%= f.email_field :email, class: "crayons-textfield", placeholder: "you@email.com" %>
<%= f.email_field :email, class: "crayons-textfield", placeholder: "you@email.com", autofocus: true, required: true %>
</div>
<div class="crayons-field pt-6">