forked from External/greenlight
Add autofocus and required attributes (#2703)
* Set required attribute to input fields It is needed to type in a username and password. This attribute force it and reduce useless requests to the server and shows the user the problem directly. * Update signin.html.erb * add autofocus and required attributes * add autofocus and required attributes Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<span class="input-icon-addon">
|
||||
<i class="fas fa-at"></i>
|
||||
</span>
|
||||
<%= f.email_field :email, class: "form-control", placeholder: t("email"), value: "" %>
|
||||
<%= f.email_field :email, class: "form-control", placeholder: t("email"), value: "", autofocus: "", required: "" %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -52,7 +52,7 @@
|
||||
<span class="input-icon-addon">
|
||||
<i class="fas fa-key"></i>
|
||||
</span>
|
||||
<%= f.password_field :password, class: "form-control", placeholder: t("password"), value: "" %>
|
||||
<%= f.password_field :password, class: "form-control", placeholder: t("password"), value: "", required: "" %>
|
||||
</div>
|
||||
</div>
|
||||
<% if Rails.configuration.enable_email_verification %>
|
||||
|
||||
Reference in New Issue
Block a user