Sha256: 44658e8d262a55528f9797bf037112b1a83f3a4b17fd951438ec31739928ebcf

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

<% if flash[:notice] %>
<p class="notice"><%= flash[:notice] %></p>
<% end %>
<% if flash[:alert] %>
<p class="alert"><%= flash[:alert] %></p>
<% end %>

<% if @redirect_url %>
<p>
  We need you to log in before we can show you the page that you are trying to
  view.
</p>
<% end %>

<%= form_tag session_path do %>
  <div class="field">
    <%= label_tag :email, 'Email Address' %><br />
    <span class="value">
      <%= email_field_tag :email, @email, :autofocus => true, :required => true,
            :placeholder => 'your@email.com' %>
    </span>
  </div>

  <div class="field">
    <%= label_tag :password %><br />
    <span class="value">
      <%= password_field_tag :password %>
    </span>
  </div>

  <div class="actions">
    <%= button_tag 'Log in', :name => 'login', :value => 'requested' %>
    <%= button_tag 'Reset Password', :name => 'reset_password',
          :value => 'requested', :formaction => reset_password_session_path %>

    <% if @redirect_url %>
    <%= hidden_field_tag :redirect_url, @redirect_url %>
    <% end %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
authpwn_rails-0.14.0 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.13.4 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.13.3 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.13.2 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.13.1 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.13.0 lib/authpwn_rails/generators/templates/session/new.html.erb
authpwn_rails-0.12.1 lib/authpwn_rails/generators/templates/session/new.html.erb