1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
5 <% content_for :heading do %>
6 <h1><%= t ".heading" %></h1>
10 <p class='text-muted'><%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %></p>
12 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
13 <%= hidden_field_tag("referer", h(params[:referer])) %>
15 <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %>
16 <%= f.password_field :password, :label => t(".password"), :tabindex => 2, :value => "", :help => link_to(t(".lost password link"), :controller => "users", :action => "lost_password") %>
17 <%= f.form_group do %>
18 <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
21 <%= f.primary t(".login_button"), :tabindex => 4 %>
24 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
25 <div id="loginForm" class="standard-form">
27 <fieldset class='form-divider'>
29 <p class='standard-label'><%= t ".with external" %></p>
31 <ul class='list-unstyled' id="login_auth_buttons">
32 <li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
33 <% if Settings.key?(:google_auth_id) -%>
34 <li><%= auth_button "google", "google" %></li>
36 <% if Settings.key?(:facebook_auth_id) -%>
37 <li><%= auth_button "facebook", "facebook" %></li>
39 <% if Settings.key?(:windowslive_auth_id) -%>
40 <li><%= auth_button "windowslive", "windowslive" %></li>
42 <% if Settings.key?(:github_auth_id) -%>
43 <li><%= auth_button "github", "github" %></li>
45 <% if Settings.key?(:wikipedia_auth_id) -%>
46 <li><%= auth_button "wikipedia", "wikipedia" %></li>
48 <li><%= auth_button "yahoo", "openid", :openid_url => "yahoo.com" %></li>
49 <li><%= auth_button "wordpress", "openid", :openid_url => "wordpress.com" %></li>
50 <li><%= auth_button "aol", "openid", :openid_url => "aol.com" %></li>
53 <div id='login_openid_url' class='standard-form-row'>
54 <label for='openid_url' class="standard-label"><%= t ".openid_html", :logo => openid_logo %></label>
55 <%= hidden_field_tag("openid_referer", params[:referer]) if params[:referer] %>
56 <%= text_field_tag("openid_url", "", :tabindex => 3, :class => "openid_url") %>
57 <span class="minorNote">(<a href="<%= t "users.account.openid.link" %>" target="_new"><%= t "users.account.openid.link text" %></a>)</span>
60 <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit" %>