coopdevs/timeoverflow

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

Summary

Maintainability
Test Coverage
<div class="row">
  <div class="col-sm-6 col-sm-offset-3">
    <div class="panel" id="login-box">
      <div class="panel-body">
        <h2><%= t(".forgot_question") %></h2>
        <p class="description"><%= t(".forgot_question_description") %></p>
        <%= render 'layouts/messages' %>
        <%= show_error_messages!(resource) %>
        <%= form_for resource, url: password_path(resource_name), html: { method: :post } do |f| %>
          <div class="form-group">
            <div class="input-group">
              <span class="input-group-addon">
                <%= glyph(:envelope) %>
              </span>
              <%= f.text_field :email, required: false, autofocus: true, placeholder: t("application.login_form.email"), class: "form-control input-lg" %>
            </div>
          </div>
          <div class="form-group">
            <div class="row">
              <div class="col-xs-12">
                <%= f.submit t(".send_instructions"), class: "btn btn-primary btn-lg col-xs-12", data: { disable_with: '...' } %>
              </div>
            </div>
          </div>
        <% end %>
      </div>
    </div>
  </div>
</div>