Replace manual activerecord translations with helpers
This commit is contained in:

committed by
Sebastian Serth

parent
e551c8a699
commit
f8330b39fb
@@ -10,10 +10,10 @@ h1 = t('.headline')
|
||||
|
||||
= form_tag(sessions_path) do
|
||||
.mb-3
|
||||
= label_tag(:email, t('activerecord.attributes.internal_user.email'))
|
||||
= label_tag(:email, InternalUser.human_attribute_name('email'))
|
||||
= email_field_tag(:email, params[:email], autofocus: true, class: 'form-control', required: true)
|
||||
.mb-3
|
||||
= label_tag(:password, t('activerecord.attributes.internal_user.password'))
|
||||
= label_tag(:password, InternalUser.human_attribute_name('password'))
|
||||
= password_field_tag(:password, nil, class: 'form-control', required: true)
|
||||
.form-check.mb-3
|
||||
label.form-check-label
|
||||
|
Reference in New Issue
Block a user