Codeminer42/cm42-central

View on GitHub
app/views/devise/passwords/new.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title_bar do %>
  <span class="navbar-brand"><%= t('.forgot_your_password') %></span>
<% end %>

<div class="container">
  <div class="row">

    <div class="col-sm-12 col-md-6 col-lg-4 col-md-offset-3 col-lg-offset-4">

      <div class="auth-wrapper">
        <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post, class: 'form-horizontal' }) do |f| %>
          <%= render "devise/shared/error_messages", resource: resource %>

          <div class="auth-form-group">
            <%= f.label :email, class: 'sr-only' %>
            <%= f.email_field :email, autofocus: true, placeholder: true, class: 'form-control auth-form-control' %>
          </div>

          <div class="actions clearfix">
            <%= f.submit t('.send_me_reset_password_instructions'), class: 'btn btn-primary btn-block auth-button-submit' %>
          </div>
        <% end %>
      </div>
    </div>

    <div class="clearfix"></div>

    <div class="col-sm-12 col-md-6 col-lg-4 col-md-offset-3 col-lg-offset-4">
      <%= render 'devise/shared/links' %>
    </div>

  </div>
</div>