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 <%= render :partial => "shared/section_divider", :locals => { :text => t(".or") } %>
31 <%= bootstrap_form_tag(:action => "login", :html => { :id => "login_form" }) do |f| %>
32 <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %>
34 <%= f.text_field :username, :label => t(".email or username"), :autofocus => true, :tabindex => 1, :value => params[:username] %>
38 <%= f.label :password, t(".password"), :class => "form-label" %>
40 <div class="col text-end">
41 <small><%= link_to(t(".lost password link"), user_forgot_password_path) %></small>
44 <input class="form-control mb-3" type="password" name="password" id="password" tabindex="2" value="" autocomplete="on" />
46 <%= f.form_group do %>
47 <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %>
51 <%= f.primary t(".login_button"), :tabindex => 4 %>
55 <% unless @preferred_auth_provider %>
56 <%= render :partial => "shared/section_divider", :locals => { :text => t(".with external") } %>
57 <%= render :partial => "auth_providers" %>