mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							1.3 KiB
						
					
					
				| <div class="max-w-lg mx-auto px-2">
 | |
|   <h1 class="text-4xl font-bold text-center mt-8">Sign In</h1>
 | |
|   <%= render 'devise/shared/select_server' if Docuseal.multitenant? %>
 | |
|   <%= 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 %>
 | |
|     <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' %>
 | |
|       </div>
 | |
|       <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">
 | |
|       <%= f.button button_title(title: 'Sign In', disabled_with: 'Signing In'), class: 'base-button' %>
 | |
|     </div>
 | |
|   <% end %>
 | |
|   <% if devise_mapping.omniauthable? %>
 | |
|     <%= button_to button_title(title: 'Sign 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 %>
 | |
|   <%= render 'devise/shared/links' %>
 | |
| </div>
 |