Use previously extracted model constants in form maxlength
attributes (#32113)
This commit is contained in:
parent
04dd3a9eb6
commit
e02e88bff4
5 changed files with 10 additions and 8 deletions
|
@ -76,7 +76,7 @@
|
|||
|
||||
= simple_form_for(@appeal, url: disputes_strike_appeal_path(@strike)) do |f|
|
||||
.fields-group
|
||||
= f.input :text, wrapper: :with_label, input_html: { maxlength: 500 }
|
||||
= f.input :text, wrapper: :with_label, input_html: { maxlength: Appeal::TEXT_LENGTH_LIMIT }
|
||||
|
||||
.actions
|
||||
= f.button :button, t('disputes.strikes.appeals.submit'), type: :submit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue