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

committed by
Sebastian Serth

parent
e551c8a699
commit
f8330b39fb
@@ -13,5 +13,5 @@
|
||||
.form-check.mb-3
|
||||
label.form-check-label
|
||||
= f.check_box(:important, class: 'form-check-input')
|
||||
= t('activerecord.attributes.error_template_attribute.important')
|
||||
= ErrorTemplateAttribute.human_attribute_name('important')
|
||||
.actions = render('shared/submit_button', f:, object: @error_template_attribute)
|
||||
|
@@ -1,13 +1,13 @@
|
||||
h1 = ErrorTemplateAttribute.model_name.human(count: 2)
|
||||
h1 = ErrorTemplateAttribute.model_name.human(count: :other)
|
||||
|
||||
.table-responsive
|
||||
table.table class=(@error_template_attributes.present? ? 'sortable' : '')
|
||||
thead
|
||||
tr
|
||||
th
|
||||
th = t('activerecord.attributes.error_template_attribute.key')
|
||||
th = t('activerecord.attributes.error_template_attribute.description')
|
||||
th = t('activerecord.attributes.error_template_attribute.regex')
|
||||
th = ErrorTemplateAttribute.human_attribute_name('key')
|
||||
th = ErrorTemplateAttribute.human_attribute_name('description')
|
||||
th = ErrorTemplateAttribute.human_attribute_name('regex')
|
||||
th colspan=3 = t('shared.actions')
|
||||
tbody
|
||||
- @error_template_attributes.each do |error_template_attribute|
|
||||
|
Reference in New Issue
Block a user