Skip to content

Commit

Permalink
Add translatable labels to time profile form
Browse files Browse the repository at this point in the history
  • Loading branch information
mzazrivec committed Mar 29, 2018
1 parent 6d51300 commit 3d3d0a9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/views/configuration/_timeprofile_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
'ng-model' => "vm.timeProfileModel.all_days",
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
"ng-change" => "vm.allDaysClicked()",
"bs-switch" => ""}
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')}}
.form-group{"ng-class" => "{'has-error': angularForm.some_days_checked.$error.someDaysCheck}"}
%label.col-md-2.control-label
%div
Expand All @@ -66,6 +67,7 @@
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
'ng-change' => "vm.dayValuesChanged()",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
'time-type' => "day",
'all-time-check' => "{{$index}}",
"min-time-check" => "{{$index}}",
Expand Down Expand Up @@ -95,7 +97,8 @@
'ng-model' => "vm.timeProfileModel.all_hours",
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
"ng-change" => "vm.allHoursClicked()",
"bs-switch" => ""}
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')}}
.form-group
%label.col-md-2.control-label
= _('AM')
Expand All @@ -109,6 +112,7 @@
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
'ng-change' => "vm.hourValuesChanged()",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
'time-type' => "hour",
'all-time-check' => "{{$index}}",
'min-time-check' => "{{$index}}"}
Expand All @@ -124,6 +128,7 @@
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
'ng-change' => "vm.hourValuesChanged()",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
'time-type' => "hour",
'all-time-check' => "{{$index}}",
'min-time-check' => "{{$index}}"}
Expand All @@ -140,6 +145,7 @@
'ng-change' => "vm.hourValuesChanged()",
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
'time-type' => "hour",
'all-time-check' => "{{$index}}",
'min-time-check' => "{{$index}}"}
Expand All @@ -155,6 +161,7 @@
'ng-change' => "vm.hourValuesChanged()",
'ng-disabled' => "vm.timeProfileModel.restricted_time_profile",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
'time-type' => "hour",
'all-time-check' => "{{$index}}",
'min-time-check' => "{{$index}}"}
Expand Down Expand Up @@ -190,6 +197,7 @@
:name => "rollup_daily",
'ng-model' => "vm.timeProfileModel.rollup_daily",
"bs-switch" => "",
"data" => {:on_text => _('On'), :off_text => _('Off')},
"switch-readonly" => "vm.timeProfileModel.restricted_time_profile || vm.timeProfileModel.miq_reports_count > 0"}
%div{"ng-if" => "vm.timeProfileModel.miq_reports_count > 0"}
{{note}}
Expand Down

0 comments on commit 3d3d0a9

Please sign in to comment.