Sha256: 9ca44e08856d57bf6f9bd2468638b039c6dac4441fa275a59ecbadb3bb7e7173

Contents?: true

Size: 1.96 KB

Versions: 49

Compression:

Stored size: 1.96 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">
      <img src="/assets/logo-on-white.png" alt="" 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

49 entries across 49 versions & 1 rubygems

Version Path
usman-0.3.37 app/views/usman/sessions/_form.html.erb
usman-0.3.36 app/views/usman/sessions/_form.html.erb
usman-0.3.35 app/views/usman/sessions/_form.html.erb
usman-0.3.34 app/views/usman/sessions/_form.html.erb
usman-0.3.33 app/views/usman/sessions/_form.html.erb
usman-0.3.32 app/views/usman/sessions/_form.html.erb
usman-0.3.31 app/views/usman/sessions/_form.html.erb
usman-0.3.30 app/views/usman/sessions/_form.html.erb
usman-0.3.29 app/views/usman/sessions/_form.html.erb
usman-0.3.28 app/views/usman/sessions/_form.html.erb
usman-0.3.27 app/views/usman/sessions/_form.html.erb
usman-0.3.26 app/views/usman/sessions/_form.html.erb
usman-0.3.25 app/views/usman/sessions/_form.html.erb
usman-0.3.24 app/views/usman/sessions/_form.html.erb
usman-0.3.23 app/views/usman/sessions/_form.html.erb
usman-0.3.22 app/views/usman/sessions/_form.html.erb
usman-0.3.21 app/views/usman/sessions/_form.html.erb
usman-0.3.20 app/views/usman/sessions/_form.html.erb
usman-0.3.19 app/views/usman/sessions/_form.html.erb
usman-0.3.18 app/views/usman/sessions/_form.html.erb