<% content_for :breadcrumb do %> <% end %> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: {method: :post, role: 'form'}) do |f| %> <% if resource.errors.any? %>
<% resource.errors.full_messages.each do |message| %>

<%= message %>

<% end %>
<% end %>
<%= f.label :email %> <%= f.email_field :email, autofocus: true, class: 'form-control' %> <% if resource.errors[:email].any? %> <% end %>
<%= f.button _('Email a link to reset password'), class: 'btn btn-primary' %> <% end %>