Replace manual activerecord translations with helpers

This commit is contained in:
Sebastian Serth
2024-04-14 14:00:51 +02:00
committed by Sebastian Serth
parent e551c8a699
commit f8330b39fb
72 changed files with 265 additions and 264 deletions

View File

@@ -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