Sha256: 2a4502d120e9a4c2cf553bb9ccae2eaf76a62429ebaecd6239d43d7426ffad64

Contents?: true

Size: 1.97 KB

Versions: 12

Compression:

Stored size: 1.97 KB

Contents

<%= form_tag usman.create_session_path, :role=>"form", id: "form_sign_in", class: "login-form" do %>
  
  <% if params[:customer_app] %>
    <%= hidden_field_tag :customer_app, params[:customer_app] %>
  <% elsif @params_hsh && @params_hsh[:customer_app] %>
    <%= hidden_field_tag :customer_app, @params_hsh[:customer_app] %>
  <% end %>

  <% if params[:redirect_back_url] %>
    <%= hidden_field_tag :redirect_back_url, params[:redirect_back_url] %>
  <% elsif @params_hsh && @params_hsh[:redirect_back_url] %>
    <%= hidden_field_tag :redirect_back_url, @params_hsh[:redirect_back_url] %>
  <% end %>

  <% if params[:requested_url] %>
    <%= hidden_field_tag :requested_url, params[:requested_url] %>
  <% elsif @params_hsh && @params_hsh[:requested_url] %>
    <%= hidden_field_tag :requested_url, @params_hsh[:requested_url] %>
  <% end %>

  <div class="row pt-10">
    <div class="col-sm-offset-3 col-sm-4">
      <%= image_tag("logo-on-white.png", alt: "#{@title}", width: "180") %>
    </div>
  </div>

  <div class="login-header text-center">
    <p>Login</p>
  </div>

  <div class="form-group">
    <label class="control-label" for="login_handle">Email / Username</label>
    <%= text_field_tag :email, params[:login_handle], :placeholder=> "Email / Username", :name => "login_handle", :class=>"form-control",  autocomplete: "off" %>
  </div>

  <div class="form-group">
    <label class="control-label" for="password">Password</label>
    <%= password_field_tag :password, '', :placeholder=> "Password", :name => "password", :class=>"form-control", id: "password",  autocomplete: "off" %>
  </div>

  <div class="form-group">
    <button type="submit" class="btn btn-primary  btn-block text-left">
      <i class="fa-lock"></i>
      Sign In
    </button>
  </div>

  <!-- <div class="login-footer">
    <%#= link_to 'Forgot your password?', forgot_password_form_path %>

    <div class="info-links">
      <a href="#">ToS</a> -
      <a href="#">Privacy Policy</a>
    </div>

  </div> -->

<% end %>


Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
usman-0.4.10.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.9.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.8.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.7.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.6.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.5.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.4.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.3.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.2.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.1.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.4.0.pre.materialize app/views/usman/sessions/_form.html.erb
usman-0.3.38 app/views/usman/sessions/_form.html.erb