Sha256: a18f9180c7e19080f88db2216567b120ac71efa0c9a2bd1dbac1d0f5584b549d

Contents?: true

Size: 1.15 KB

Versions: 14

Compression:

Stored size: 1.15 KB

Contents

<div class="p-6 sm:p-8 space-y-4 md:space-y-6 w-full sm:max-w-md bg-white sm:rounded-md shadow dark:border dark:bg-gray-800 dark:border-gray-700">
  <h2 class="text-xl font-bold text-gray-900 md:text-2xl dark:text-white">
    <%= site_title %> <%= set_page_title t('active_admin.devise.login.title') %>
  </h2>

  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= active_admin_form_for(resource, as: resource_name, url: main_app.send(:"#{scope}_session_path")) do |f|
    f.inputs do
      resource.class.authentication_keys.each_with_index { |key, index|
        f.input key, label: t("active_admin.devise.#{key}.title"), input_html: { autofocus: index.zero? }
      }
      f.input :password, label: t('active_admin.devise.password.title')
      f.input :remember_me, label: t('active_admin.devise.login.remember_me'), as: :boolean if devise_mapping.rememberable?
    end
    f.actions do
      f.action :submit, label: t('active_admin.devise.login.submit'), wrapper_html: { class: "grow" }, button_html: { class: "w-full", value: t('active_admin.devise.login.submit') }
    end
  end
  %>

  <%= render partial: "active_admin/devise/shared/links" %>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta14 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta13 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta12 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta11 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta10 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta9 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta8 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta7 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta6 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta5 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta4 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta3 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta2 app/views/active_admin/devise/sessions/new.html.erb
activeadmin-4.0.0.beta1 app/views/active_admin/devise/sessions/new.html.erb