app/views/devise/sessions/new.html.erb in active_application-0.0.1 vs app/views/devise/sessions/new.html.erb in active_application-0.1.0
- old
+ new
@@ -1,10 +1,17 @@
-<% @title = t("devise.sign_in", default: "Sign in") %>
+<% @title ||= t("devise.titles.sign_in") %>
<%= semantic_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
- <%= f.inputs :email, :password %>
+ <%= f.input :email, input_html: {autofocus: true} %>
+ <%= f.input :password %>
+
+ <% if devise_mapping.rememberable? -%>
+ <%= f.input :remember_me, as: :boolean, label: false %>
+ <% end -%>
+
<%= f.actions do %>
- <%= f.action :submit, label: t("devise.sign_in", default: "Sign in") %>
+ <%= f.action :submit, label: t("devise.buttons.sign_in") %>
+
+
+ <%= link_to(t("devise.links.forgot_password"), new_user_password_path) %>
<% end %>
<% end %>
-
-<%= link_to(t("devise.forgot_password", default: "Forgot Your Password?"), new_user_password_path) %>