|
|
|
@ -17,16 +17,20 @@
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% if devise_mapping.omniauthable? %>
|
|
|
|
<% if devise_mapping.omniauthable? %>
|
|
|
|
<div class="space-y-4">
|
|
|
|
<div class="space-y-4">
|
|
|
|
|
|
|
|
<% if User.omniauth_providers.include?(:google_oauth2) %>
|
|
|
|
<%= form_for '', url: omniauth_authorize_path(resource_name, :google_oauth2), data: { turbo: false }, method: :post do |f| %>
|
|
|
|
<%= form_for '', url: omniauth_authorize_path(resource_name, :google_oauth2), data: { turbo: false }, method: :post do |f| %>
|
|
|
|
<set-timezone data-input-id="state" data-params="true"></set-timezone>
|
|
|
|
<set-timezone data-input-id="state" data-params="true"></set-timezone>
|
|
|
|
<%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query %>
|
|
|
|
<%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query %>
|
|
|
|
<%= f.button button_title(title: 'Sign up with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), class: 'white-button w-full mt-4' %>
|
|
|
|
<%= f.button button_title(title: 'Sign up with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), class: 'white-button w-full mt-4' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if User.omniauth_providers.include?(:microsoft_office365) %>
|
|
|
|
<%= form_for '', url: omniauth_authorize_path(resource_name, :microsoft_office365), data: { turbo: false }, method: :post do |f| %>
|
|
|
|
<%= form_for '', url: omniauth_authorize_path(resource_name, :microsoft_office365), data: { turbo: false }, method: :post do |f| %>
|
|
|
|
<set-timezone data-input-id="state_microsoft" data-params="true"></set-timezone>
|
|
|
|
<set-timezone data-input-id="state_microsoft" data-params="true"></set-timezone>
|
|
|
|
<%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query, id: 'state_microsoft' %>
|
|
|
|
<%= hidden_field_tag :state, { redir: params[:redir].to_s }.compact_blank.to_query, id: 'state_microsoft' %>
|
|
|
|
<%= f.button button_title(title: 'Sign up with Microsoft', icon: svg_icon('brand_microsoft', class: 'w-6 h-6')), class: 'white-button w-full' %>
|
|
|
|
<%= f.button button_title(title: 'Sign up with Microsoft', icon: svg_icon('brand_microsoft', class: 'w-6 h-6')), class: 'white-button w-full' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%= render 'devise/shared/links' %>
|
|
|
|
<%= render 'devise/shared/links' %>
|
|
|
|
|