mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 22:02:18 +08:00
It is redundant. role="form" should be set on non-form tags that operate as forms, and if a form tag is used that doesn't operate as a form, you could potentially use a different role, but the assumption is that a form tag has a form role, so there is no benefit to being explicit about it.
25 lines
1.1 KiB
Text
25 lines
1.1 KiB
Text
<% unless omniauth_providers.empty? %>
|
|
<div class="mt-4">
|
|
<div class="relative">
|
|
<div class="absolute inset-0 flex items-center" aria-hidden="true">
|
|
<div class="w-full border-t border-gray-200"></div>
|
|
</div>
|
|
<div class="relative flex justify-center text-sm font-medium leading-6">
|
|
<span class="bg-white px-6 text-gray-900">Or continue with</span>
|
|
</div>
|
|
</div>
|
|
<div class="mt-4 grid sm:grid-cols-<%= omniauth_providers.length %> gap-4">
|
|
<% omniauth_providers.each do |provider, name| %>
|
|
<% form(action: rodauth.omniauth_request_path(provider), method: :post, class: :grow) do %>
|
|
<button
|
|
class="flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
|
|
type="submit"
|
|
>
|
|
<%== part("components/icon", name: provider.to_s) %>
|
|
<span class="text-sm font-semibold leading-6"><%= name %></span>
|
|
</button>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|