af83/chouette-core

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

Summary

Maintainability
Test Coverage
#sessions_new.row
  = render 'devise/shared/intro'

  .col-md-4.login
    .panel.panel-default
      .panel-heading = t('.title')

      .panel-body
        = simple_form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), html: { :class => 'form-horizontal user', method: :post } ) do |form|
          = form.input :email, :label => false, input_html: { :class => "form-control" }
          = form.input :confirmation_token, as: :hidden, input_htmal: { value: params[:confirmation_token] }
          .row
            .col-md-12
              = form.button :submit, t('.title'), class: 'btn-primary'

          .row.options
            .col-md-12.new_password
              = mailer_link_to t('devise.links.sign_in'), new_session_path(resource_name)