Files
docuseal/app/views/devise/sessions/new.html.erb
T

27 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-05-29 21:20:39 +03:00
<div class="max-w-xl mx-auto px-2">
2023-09-04 01:36:09 +03:00
<%= render 'devise/shared/select_server' if Docuseal.multitenant? %>
2023-05-30 01:34:01 +03:00
<h1 class="text-4xl font-bold text-center my-8">Log In</h1>
2023-08-24 00:28:21 +03:00
<%= form_for(resource, as: resource_name, html: { class: 'space-y-6' }, data: { turbo: params[:redir].blank? }, url: session_path(resource_name)) do |f| %>
<% if params[:redir].present? %>
<%= hidden_field_tag :redir, params[:redir] %>
<% end %>
2023-05-30 01:34:01 +03:00
<div class="space-y-2">
<div class="form-control">
<%= f.label :email, class: 'label' %>
<%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %>
2023-05-29 21:20:39 +03:00
</div>
2023-05-30 01:34:01 +03:00
<div class="form-control">
<%= f.label :password, class: 'label' %>
<%= f.password_field :password, autocomplete: 'current-password', class: 'base-input' %>
</div>
</div>
<div class="form-control">
2023-06-11 12:42:13 +00:00
<%= f.button button_title(title: 'Log In', disabled_with: 'Logging In'), class: 'base-button' %>
2023-05-21 17:59:36 +03:00
</div>
<% end %>
2023-07-14 22:33:42 +03:00
<% if devise_mapping.omniauthable? %>
<%= button_to button_title(title: 'Log in with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), omniauth_authorize_path(resource_name, :google_oauth2), class: 'white-button w-full mt-4', data: { turbo: false }, method: :post %>
<% end %>
2023-05-29 21:20:39 +03:00
<%= render 'devise/shared/links' %>
</div>