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"), user_forgot_password_path) %>
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-inline' id="login_auth_buttons">
31 <li class="list-inline-item me-3">
32 <%= link_to image_tag("openid.png",
33 :alt => t(".auth_providers.openid.title"),
36 :id => "openid_open_url",
37 :title => t(".auth_providers.openid.title") %>
40 <% %w[google facebook microsoft github wikipedia].each do |provider| %>
41 <% if Settings.key?("#{provider}_auth_id".to_sym) -%>
42 <li class="list-inline-item me-3"><%= auth_button provider, provider %></li>
47 <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
48 <div id='login_openid_url' class="mb-3">
49 <label for='openid_url' class="form-label"><%= t ".openid_html", :logo => openid_logo %></label>
50 <%= hidden_field_tag("referer", params[:referer], :autocomplete => "off") %>
51 <%= text_field_tag("openid_url", "", :tabindex => 5, :autocomplete => "on", :class => "openid_url form-control") %>
52 <span class="form-text text-muted">(<a href="<%= t "accounts.edit.openid.link" %>" target="_new"><%= t "accounts.edit.openid.link text" %></a>)</span>
55 <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit", :class => "btn btn-primary" %>