1 <% content_for :head do %>
2 <%= javascript_include_tag "login" %>
3 <%= javascript_include_tag "auth_providers" %>
6 <% content_for :heading_class, "pb-0" %>
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">
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 <% if @preferred_auth_provider %>
26 <%= render :partial => "auth_providers" %>
27 <%= render :partial => "shared/section_divider", :locals => { :text => t(".or") } %>
30 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
31 <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
33 <%= f.text_field :username, :label => t(".email or username"), :autofocus => true, :tabindex => 1, :value => params[:username] %>
35 <div class="d-flex flex-wrap column-gap-3 justify-content-between align-items-baseline mb-2">
36 <%= f.label :password, t(".password") %>
37 <small><%= link_to(t(".lost password link"), user_forgot_password_path) %></small>
40 <%= f.password_field :password, :autocomplete => "on", :tabindex => 2, :value => "", :skip_label => true %>
42 <%= f.form_group do %>
43 <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "true") }, "yes" %>
47 <%= f.primary t(".login_button"), :tabindex => 4 %>
51 <% unless @preferred_auth_provider %>
52 <%= render :partial => "shared/section_divider", :locals => { :text => t(".with external") } %>
53 <%= render :partial => "auth_providers" %>