diff options
author | David Gay <david@davidgay.org> | 2021-04-25 13:07:25 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-25 13:07:25 -0400 |
commit | 8b517ea5ac6301bd513c18632aa34ce91545dd95 (patch) | |
tree | 7b4dc6f1e6d303ec6f5b02a27151c088bf5c72af /app/views/devise/sessions | |
parent | 10f7bb7deb784be697aaff629d10b61d9cfe739d (diff) |
Adjust devise routes, views, and language
Diffstat (limited to 'app/views/devise/sessions')
-rw-r--r-- | app/views/devise/sessions/new.html.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb new file mode 100644 index 0000000..5ede964 --- /dev/null +++ b/app/views/devise/sessions/new.html.erb @@ -0,0 +1,26 @@ +<h2>Log in</h2> + +<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> + <div class="field"> + <%= f.label :email %><br /> + <%= f.email_field :email, autofocus: true, autocomplete: "email" %> + </div> + + <div class="field"> + <%= f.label :password %><br /> + <%= f.password_field :password, autocomplete: "current-password" %> + </div> + + <% if devise_mapping.rememberable? %> + <div class="field"> + <%= f.check_box :remember_me %> + <%= f.label :remember_me %> + </div> + <% end %> + + <div class="actions"> + <%= f.submit "Log in" %> + </div> +<% end %> + +<%= render "devise/shared/links" %> |