1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
3 <%= javascript_include_tag "auth_providers" %>
6 <% content_for :heading_class, "p-0 mw-100" %>
8 <% content_for :heading do %>
9 <% if @client_app_name %>
10 <p class="text-center text-body-secondary fs-6 py-2 mb-0 bg-body"><%= t(".login_to_authorize_html", :client_app_name => @client_app_name) %></p>
13 <div class="header-illustration new-user-main auth-container mx-auto">
14 <ul class="nav nav-tabs position-absolute bottom-0 fs-6 w-100">
16 <%= link_to t("sessions.new.tab_title"), "#", :class => "nav-link active" %>
19 <%= link_to t("users.new.tab_title"), url_for(:action => :new, :controller => :users, :referer => params[:referer]), :class => "nav-link" %>
25 <div id="login_login" class="auth-container mx-auto my-0">
26 <% if @preferred_auth_provider %>
27 <%= render :partial => "auth_providers" %>
28 <div class="d-flex justify-content-center align-items-center mb-2">
29 <div class="border-bottom border-1 flex-grow-1"></div>
30 <div class="text-secondary mx-3"><%= t ".or" %></div>
31 <div class="border-bottom border-1 flex-grow-1"></div>
35 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
36 <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
38 <%= f.text_field :username, :label => t(".email or username"), :autofocus => true, :tabindex => 1, :value => params[:username] %>
42 <%= f.label :password, t(".password"), :class => "form-label" %>
44 <div class="col text-end">
45 <small><%= link_to(t(".lost password link"), user_forgot_password_path) %></small>
48 <input class="form-control mb-3" type="password" name="password" id="password" tabindex="2" value="" autocomplete="on" />
50 <%= f.form_group do %>
51 <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
55 <%= f.primary t(".login_button"), :tabindex => 4 %>
59 <% unless @preferred_auth_provider %>
60 <div class="d-flex justify-content-center align-items-center">
61 <div class="border-bottom border-1 flex-grow-1"></div>
62 <div class="text-secondary mx-3"><%= t ".with external" %></div>
63 <div class="border-bottom border-1 flex-grow-1"></div>
65 <%= render :partial => "auth_providers" %>