Sha256: f18db968bd89a2238e6770ae446ebada3599fbcc3f0a91645b8bb37989720516
Contents?: true
Size: 1.3 KB
Versions: 10
Compression:
Stored size: 1.3 KB
Contents
<div id="login"> <!-- If you want to add a logo to the admin login page, change # to = and link to your image. --> <!-- <div class="text-center"> <%# image_tag('devise/sessions/image.png', height: '40px') %> </div> --> <h2> <%= active_admin_application.site_title(self) %> <%= title t('active_admin.devise.login.title') %> </h2> <% scope = Devise::Mapping.find_scope!(resource_name) %> <div class="login-form"> <%= active_admin_form_for(resource, as: resource_name, url: send(:"#{scope}_session_path"), html: { id: "session_new" }) 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') div class: 'd-flex justify-content-between mt-4' do f.input :remember_me, label: t('active_admin.devise.login.remember_me'), as: :boolean if devise_mapping.rememberable? render partial: "active_admin/devise/shared/links" end f.actions do f.action :submit, label: t('active_admin.devise.login.submit'), button_html: { value: t('active_admin.devise.login.submit') } end end end %> </div> </div>
Version data entries
10 entries across 10 versions & 1 rubygems