Sha256: bfe8dd68322cd09a0988254d8e8ae4612e4121fefd6c1d006288572e2c8c1874

Contents?: true

Size: 1.1 KB

Versions: 5

Compression:

Stored size: 1.1 KB

Contents

<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8 text-center">
  <div class="sm:mx-auto sm:w-full sm:max-w-sm text-center">
    <img src="/panda-cms-assets/panda-nav.png" class="py-2 h-32 mx-auto w-auto">
    <h2 class="mt-10 mb-6 text-center text-2xl font-bold text-white"><%= t("panda_cms.admin.sessions.new.title") %></h2>
  </div>

  <% @providers.each do |provider| %>
    <div class="mt-4 text-center sm:mx-auto sm:w-full sm:max-w-sm">
      <%= form_tag "#{PandaCms.admin_path}/auth/#{provider}", method: "post", data: {turbo: false} do %>
        <input type="hidden" name="redirect_uri" value="<%= admin_login_callback_url(provider: provider) %>">
        <button type="submit" id="button-sign-in-<%= provider %>" class="min-w-56 mx-auto mb-4 inline-flex items-center gap-x-2 rounded-md bg-white px-3.5 py-2.5 border border-neutral-400">
          <i class="fa-brands fa-<%= provider %> text-xl mr-1"></i>
          <%= t("panda_cms.authentication.sign_in_with", provider: t("panda_cms.authentication.providers.#{provider}")) %>
        </button>
      <% end %>
    </div>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
panda_cms-0.3.15 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.14 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.13 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.12 app/views/panda_cms/admin/sessions/new.html.erb
panda_cms-0.3.11 app/views/panda_cms/admin/sessions/new.html.erb