app/views/devise/passwords/new.html.erb in devise-i18n-bootstrap-0.3.0.beta vs app/views/devise/passwords/new.html.erb in devise-i18n-bootstrap-0.3.0

- old
+ new

@@ -1,12 +1,15 @@ -<h2><%= t('.forgot_your_password', :default => 'Forgot your password?') %></h2> +<h2><%= t('.forgot_your_password', default: 'Forgot your password?') %></h2> -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> +<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> + <%= f.error_notification class: 'alert alert-danger' %> - <div><%= f.label :email %><br /> - <%= f.email_field :email %></div> + <div class="form-inputs"> + <%= f.input :email, autofocus: true, required: true %> + </div> - <div><%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions") %></div> + <div class="form-actions"> + <%= f.button :submit, t('.send_me_reset_password_instructions', default: 'Send me reset password instructions'), class: 'btn btn-primary' %> + </div> <% end %> -<%= render "devise/shared/links" %> +<%= render 'devise/shared/links' %>