Sha256: 01cac5494823744a797b5e3d78b0db21d3f93ee31c8a92f1124adaaf0f365136

Contents?: true

Size: 1.15 KB

Versions: 23

Compression:

Stored size: 1.15 KB

Contents

<% if resource.errors.any? %>
<%= resource.errors.inspect %>
<% end %>

<%= form_for( resource, :as => resource_name, :url => session_path(resource_name), :html => {:class => "login-box"} ) do |f| %>
  <div class="login-box-header">
    Login
  </div>
  <div class="login-box-content">
    
    <% [:notice, :error, :alert].each do |sym| %>

        <% if flash[sym].present? %>
          <div class="alert  alert-info alert-login ">
            <%= flash[sym] %>
          </div>
          <% flash.discard(sym) %>
        <% end %>
  
    <% end %>


    <div class="input-prepend">
    	<span class="add-on"><i class="icon-user"></i></span>
      <%= f.text_field :username, :placeholder => I18n.t("username", :scope => "helpers.label", :default => "Username") %>            
    </div>

    <div class="input-prepend">
    	<span class="add-on"><i class="icon-lock"></i></span>
      <%= f.password_field :password, :placeholder => I18n.t("password", :scope => "helpers.label", :default => "Password") %>            
    </div>
  </div>

  <div class="actions form-actions login-box-footer">
    <%= submit_tag "Login", :class => "btn btn-primary" %>
  </div>
    
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fullstack-admin-0.2.5 app/views/admin/sessions/new.html.erb
fullstack-admin-0.2.4 app/views/admin/sessions/new.html.erb
fullstack-admin-0.2.3 app/views/admin/sessions/new.html.erb