Sha256: 9afdf3ea647ccac8542384dc12fd0f74c8f301857f618cbfbfc865b4168057e5

Contents?: true

Size: 1.31 KB

Versions: 33

Compression:

Stored size: 1.31 KB

Contents

<div class='row'>
  <div class='col-md-10 offset-md-1'>
    <%= form_for(resource, as: resource_name, url: url) do |f| %>
      <div class="field form-group row">
        <div class="col-md-10 offset-md-1">
          <%= f.email_field :email, { autofocus: resource.email.empty? ? true : nil, autocomplete: "email", placeholder: :email, class: 'form-control'}.compact %>
        </div>
      </div>

      <div class="field form-group row">
        <div class="col-md-10 offset-md-1">
          <%= f.password_field :password, { autofocus: resource.email.empty? ? nil : true, autocomplete: "current-password", placeholder: :password, class: 'form-control'}.compact %>
        </div>
      </div>

      <div class="actions row">
        <div class="col-md-6 offset-md-1">
          <%= f.submit "Log in", class: "btn btn_success btn-block" %>
        </div>
        <div class="col-md-2">
          <a class="btn btn_primary btn-block" href="<%=Rails.application.routes.url_helpers.new_user_registration_path%>" role="button">Sign up</a>
            </div>
            <div class="col-md-2">
              <a class="btn btn_primary btn-block" href="<%=Rails.application.routes.url_helpers.new_user_password_path%>" role="button">Forgot Password?</a>
            </div>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rails_base-0.82.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.81.1 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.81.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.80.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.6 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.5 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.4 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.3 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.2 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.1 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.75.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.74.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.73.1 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.73.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.72.1 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.72.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.71.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.70.1.pre app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.70.0 app/views/rails_base/shared/_session_create_form.html.erb
rails_base-0.61.0 app/views/rails_base/shared/_session_create_form.html.erb