diff --git a/app/views/layouts/angular-bootstrap/_any_field.html.haml b/app/views/layouts/angular-bootstrap/_any_field.html.haml index 652068184b8..f66771d3ba9 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}