Fix haml-lint errors
This commit is contained in:
parent
689521c6ed
commit
1ac7c35315
|
@ -6,7 +6,7 @@
|
|||
.card-body
|
||||
%h1 Resend confirmation instructions
|
||||
= bootstrap_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.text_field :screen_name, autofocus: true, label: 'User name'
|
||||
= f.submit 'Resend confirmation instructions', class: 'btn btn-primary mb-3'
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.card-body
|
||||
%h1 Change your password
|
||||
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.hidden_field :reset_password_token
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.card-body
|
||||
%h1 Forgot your password?
|
||||
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.email_field :email, autofocus: true, label: 'Email address'
|
||||
= f.submit 'Send me password reset instructions', class: 'btn btn-primary mb-3'
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.card-body
|
||||
%h1= t('views.sessions.new')
|
||||
= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.text_field :screen_name, autofocus: true, label: t('views.settings.account.username')
|
||||
= f.email_field :email, autofocus: false, label: t('views.settings.account.email')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- if resource.errors.any?
|
||||
#error_explanation
|
||||
#error-explanation
|
||||
%h2
|
||||
= I18n.t("errors.messages.not_saved",
|
||||
= I18n.t('errors.messages.not_saved',
|
||||
count: resource.errors.count,
|
||||
resource: resource.class.model_name.human.downcase)
|
||||
%ul
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= render 'layouts/messages'
|
||||
|
||||
= bootstrap_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.email_field :email, autofocus: true, label: 'Email address'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
= bootstrap_form_for(resource, as: resource_name, url: '/settings/account', html: { method: :put }) do |f|
|
||||
= render 'modal/password', f: f
|
||||
|
||||
= render "devise/shared/error_messages", resource: resource
|
||||
= render 'devise/shared/error_messages', resource: resource
|
||||
|
||||
= f.text_field :screen_name, autofocus: true, label: t('views.settings.account.username')
|
||||
|
||||
|
|
Loading…
Reference in New Issue