Skip to content

Commit 8ab3cbe

Browse files
committed
Simplify the HTML
1 parent 7966208 commit 8ab3cbe

File tree

1 file changed

+2
-8
lines changed
  • railties/lib/rails/generators/erb/authentication/templates/views/sessions

1 file changed

+2
-8
lines changed

railties/lib/rails/generators/erb/authentication/templates/views/sessions/new.html.erb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
<%%= tag.div(flash[:notice], style: "color:green") if flash[:notice] %>
33

44
<%%= form_with url: session_path do |form| %>
5-
<div>
6-
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %>
7-
</div>
8-
9-
<div>
10-
<%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72 %>
11-
</div>
12-
5+
<%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
6+
<%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72 %><br>
137
<%%= form.submit "Sign in" %>
148
<%% end %>
159
<br>

0 commit comments

Comments
 (0)