Codeminer42/cm42-central

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

Summary

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

<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: confirmation_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, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email), placeholder: true, class: 'form-control auth-form-control' %>
        </div>

        <div class="actions clearfix">
          <%= f.submit t('.resend_confirmation_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>