erb2haml new session view
This commit is contained in:
parent
04121d44b4
commit
a9cb61ebda
2 changed files with 10 additions and 11 deletions
|
|
@ -1,11 +0,0 @@
|
|||
<%= tag.div(flash[:alert], style: "color:red") if flash[:alert] %>
|
||||
<%= tag.div(flash[:notice], style: "color:green") if flash[:notice] %>
|
||||
|
||||
<%= form_with url: session_path do |form| %>
|
||||
<%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address] %><br>
|
||||
<%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72 %><br>
|
||||
<%= form.submit "Sign in" %>
|
||||
<% end %>
|
||||
<br>
|
||||
|
||||
<%= link_to "Forgot password?", new_password_path %>
|
||||
10
app/views/sessions/new.html.haml
Normal file
10
app/views/sessions/new.html.haml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
= tag.div(flash[:alert], style: "color:red") if flash[:alert]
|
||||
= tag.div(flash[:notice], style: "color:green") if flash[:notice]
|
||||
= form_with url: session_path do |form|
|
||||
= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address]
|
||||
%br/
|
||||
= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72
|
||||
%br/
|
||||
= form.submit "Sign in"
|
||||
%br/
|
||||
= link_to "Forgot password?", new_password_path
|
||||
Loading…
Add table
Reference in a new issue