5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 06:51:42 +00:00
panel/app/views/devise/sessions/new.haml

31 lines
1,016 B
Text
Raw Normal View History

2019-07-04 00:11:33 +00:00
.row.align-items-center.justify-content-center.full-height
.col-md-6.align-self-center
= render 'layouts/flash'
%h2= t('.sign_in')
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
- if @site
= hidden_field :referer, value: site_path(@site)
.form-group
= f.label :email, class: 'sr-only'
= f.email_field :email,
autofocus: true,
autocomplete: 'email',
class: 'form-control',
placeholder: t('login.email')
.form-group
= f.label :password, class: 'sr-only'
= f.password_field :password,
autocomplete: 'current-password',
class: 'form-control',
placeholder: t('login.password')
- if devise_mapping.rememberable?
.form-group
= f.check_box :remember_me
= f.label :remember_me
.actions
= f.submit t('.sign_in'),
class: 'btn btn-lg btn-primary btn-block'
= render 'devise/shared/links'