Commit 58eb25a99fcea0876b1ce8da86b8605493bf6fa1
Committed by
Braulio Bhavamitra
1 parent
2b67cc84
Exists in
master
and in
29 other branches
Highlight correct string in form header
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
app/helpers/forms_helper.rb
... | ... | @@ -99,10 +99,7 @@ module FormsHelper |
99 | 99 | end |
100 | 100 | |
101 | 101 | def required_fields_message |
102 | - content_tag('p', content_tag('span', | |
103 | - _("The <label class='pseudoformlabel'>highlighted</label> fields are mandatory."), | |
104 | - :class => 'required-field' | |
105 | - )) | |
102 | + content_tag('p', _("The %{highlighted} fields are mandatory.") % {highlighted: content_tag('span', _("highlighted"), :class=>'required-field')}) | |
106 | 103 | end |
107 | 104 | |
108 | 105 | def options_for_select_with_title(container, selected = nil) | ... | ... |
-
mentioned in commit 61a8e87373c708a3559d2d69f3cf6731a6c0a791