Sha256: 1195084470c8a21cad0ccebd110ae406efa2fa7d35ba3d6305cdf705d91f7a81

Contents?: true

Size: 1.24 KB

Versions: 13

Compression:

Stored size: 1.24 KB

Contents

<% @user_session ||= SpudUserSession.new %>
<% return_to = '/' if local_assigns[:return_to].nil? %>

<%= form_for @user_session, :url => login_path, :html => {:class => 'login-form'}, :remote => true, :data => {:success => back_or_default(return_to), :errors => :inline} do |f| %>
  <%= tb_form_errors(@user_session) %>
  <%= hidden_field_tag :return_to, return_to %>
  <div class="form-group">
    <% if Spud::Core.config.use_email_as_login %>
      <%= f.label :email %>
      <%= f.text_field :email, :placeholder => 'Email', :autofocus => 'autofocus', :autocomplete => 'username', :class => 'form-control' %>
    <% else %>
      <%= f.label :login %>
      <%= f.text_field :login, :placeholder => 'Username', :autofocus => 'autofocus', :autocomplete => 'username', :class => 'form-control' %>
    <% end %>
  </div>
  <div class="form-group">
    <%= f.label :password %>
    <%= f.password_field :password, :placeholder => 'Password', :autocomplete => 'current-password', :class => 'form-control' %>
  </div>
  <div class="form-group">
    <%= f.submit "Login", :class => 'btn btn-primary', :data => {:disable_with => 'Logging in...', :enable_with => 'Done!'} %>
    <span>or</span> <%= link_to "Forgot Password?", password_resets_path %>
  </div>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tb_core-1.4.3.1 app/views/user_sessions/_form.html.erb
tb_core-1.4.3 app/views/user_sessions/_form.html.erb
tb_core-1.4.2 app/views/user_sessions/_form.html.erb
tb_core-1.4.1 app/views/user_sessions/_form.html.erb
tb_core-1.4.0.1 app/views/user_sessions/_form.html.erb
tb_core-1.4.beta2 app/views/user_sessions/_form.html.erb
tb_core-1.4.beta1 app/views/user_sessions/_form.html.erb
tb_core-1.3.10 app/views/user_sessions/_form.html.erb
tb_core-1.3.9 app/views/user_sessions/_form.html.erb
tb_core-1.3.7 app/views/user_sessions/_form.html.erb
tb_core-1.3.6 app/views/user_sessions/_form.html.erb
tb_core-1.3.5 app/views/user_sessions/_form.html.erb
tb_core-1.3.4 app/views/user_sessions/_form.html.erb