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