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"), user_new_path(:referer => params[:referer]) %></p>
12 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
13 <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
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 => "passwords", :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 %>
28 <label class="form-label"><%= t ".with external" %></label>
30 <ul class='list-unstyled' id="login_auth_buttons">
31 <li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
32 <% if Settings.key?(:google_auth_id) -%>
33 <li><%= auth_button "google", "google" %></li>
35 <% if Settings.key?(:facebook_auth_id) -%>
36 <li><%= auth_button "facebook", "facebook" %></li>
38 <% if Settings.key?(:microsoft_graph_auth_id) -%>
39 <li><%= auth_button "windowslive", "windowslive" %></li>
41 <% if Settings.key?(:github_auth_id) -%>
42 <li><%= auth_button "github", "github" %></li>
44 <% if Settings.key?(:wikipedia_auth_id) -%>
45 <li><%= auth_button "wikipedia", "wikipedia" %></li>
49 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
50 <div id='login_openid_url' class="mb-3">
51 <label for='openid_url' class="form-label"><%= t ".openid_html", :logo => openid_logo %></label>
52 <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
53 <%= text_field_tag("openid_url", "", :tabindex => 3, :autocomplete => "on", :class => "openid_url form-control") %>
54 <span class="form-text text-muted">(<a href="<%= t "accounts.edit.openid.link" %>" target="_new"><%= t "accounts.edit.openid.link text" %></a>)</span>
57 <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit", :class => "btn btn-primary" %>