From 17cb0e7f711dbb84a27720e195789aadad1c312b Mon Sep 17 00:00:00 2001 From: Alexander Zagaynov Date: Tue, 28 May 2019 12:13:28 +0200 Subject: [PATCH] use gettext for description and error message --- app/views/layouts/angular-bootstrap/_any_field.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/layouts/angular-bootstrap/_any_field.html.haml b/app/views/layouts/angular-bootstrap/_any_field.html.haml index 652068184b88..f66771d3ba99 100644 --- a/app/views/layouts/angular-bootstrap/_any_field.html.haml +++ b/app/views/layouts/angular-bootstrap/_any_field.html.haml @@ -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}