5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 16:16:22 +00:00
panel/app/views/devise/sessions/new.haml

39 lines
1.3 KiB
Text
Raw Normal View History

2019-09-11 19:29:05 +00:00
= content_for :body do
- 'black-bg'
2019-07-04 00:11:33 +00:00
.row.align-items-center.justify-content-center.full-height
2023-04-20 21:23:58 +00:00
.col-12.col-lg-5.align-self-center
2019-09-11 19:29:05 +00:00
.sr-only
%h2= t('.sign_in')
%p= t('.help')
= form_for(resource,
2024-06-04 15:49:37 +00:00
as: resource_name,
url: session_path(resource_name)) do |f|
2019-07-04 00:11:33 +00:00
- if @site
= hidden_field :referer, value: site_path(@site)
.form-group
= f.label :email, class: 'sr-only'
= f.email_field :email,
2024-06-04 15:49:37 +00:00
autofocus: true,
autocomplete: 'email',
class: 'form-control',
placeholder: t('login.email')
2019-07-04 00:11:33 +00:00
.form-group
= f.label :password, class: 'sr-only'
= f.password_field :password,
2024-06-04 15:49:37 +00:00
autocomplete: 'current-password',
class: 'form-control',
placeholder: t('login.password')
2019-07-04 00:11:33 +00:00
- if devise_mapping.rememberable?
.form-group
2024-06-04 16:58:53 +00:00
= render 'bootstrap/custom_checkbox_for_field',
field: f, name: :remember_me do
= t('login.remember_me',
remember_for: distance_of_time_in_words(Usuarie.remember_for))
2019-07-04 00:11:33 +00:00
.actions
= f.submit t('.sign_in'),
2024-06-04 15:49:37 +00:00
class: 'btn btn-secondary btn-lg btn-block'
2019-07-04 00:11:33 +00:00
= render 'devise/shared/links'