Skip to content

Commit

Permalink
use gettext for description and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZagaynov committed May 28, 2019
1 parent ff9a17a commit 17cb0e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/layouts/angular-bootstrap/_any_field.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
- input_emsg ||= ''
- input_id ||= [prefix, input_name].select(&:present?).join("_")

- input_desc = _(input_desc) if input_desc.present?
- input_emsg = _(input_emsg) if input_emsg.present?

%div
.form-group{"ng-class" => "{'has-error': angularForm.#{input_id}.$invalid}"} |
%label.col-md-2.control-label{"for" => input_id}
Expand Down

0 comments on commit 17cb0e7

Please sign in to comment.