maestrano/mno-enterprise

View on GitHub
api/app/views/mno_enterprise/auth/confirmations/new.html.haml

Summary

Maintainability
Test Coverage
%div{ 'ng-init' => "user = {}" }

.registration
  .container
    .row
      .login-box-wrapper
        .login-box-title
          %h2= t('.title')
        .login-box
          .brand-logo
          = form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, name: 'form', class: 'form-horizontal autofill-detect' }) do |f|

            - unless devise_error_messages!.empty?
              .row
                .alert.alert-error
                  %button.close ×
                  = devise_error_messages!

            .row
              .col-sm-12
                = f.email_field :email, placeholder: "*Email", autofocus: true, required: true, 'ng-model' => 'user.email', :class => 'form-control'

            %br

            .row
              .col-sm-12
                .text-center
                  %button{ :class => "btn btn-warning", :type => "submit", 'ng-click' => 'hasClicked = true', 'ng-disabled' => 'form.$invalid', 'ng-hide' => 'hasClicked' }= t('.resend')
                  %img.ng-hide{ 'ng-src' => asset_path('mno_enterprise/loader-32x32-bg-inverse.gif'), 'ng-show' => 'hasClicked' }
          %hr
          = render "mno_enterprise/auth/shared/links"