gab-social/app/views/auth/sessions/new.html.haml

22 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-07-02 08:10:25 +01:00
- content_for :page_title do
= t('auth.login')
- content_for :header_tags do
= render partial: 'shared/og'
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
%h2.form-title Log into Gab
2019-07-02 08:10:25 +01:00
.fields-group
- if use_seamless_external_login?
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.username_or_email'), input_html: { 'aria-label' => t('simple_form.labels.defaults.username_or_email') }, hint: false
- else
= f.input :email, autofocus: true, wrapper: :with_label, label: t('simple_form.labels.defaults.email'), input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }, hint: false
.fields-group
= f.input :password, wrapper: :with_label, label: t('simple_form.labels.defaults.password'), input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }, hint: false
2019-07-02 08:10:25 +01:00
.actions
= f.button :button, t('auth.login'), type: :submit
.form-footer= render 'auth/shared/links'