Skip to content

Commit

Permalink
prefix "ViewHelper::" added to 4 constants "TIMER_DAYS,TIMER_HOURS,TI…
Browse files Browse the repository at this point in the history
…MER_WEEKS,TIMER_MONTHS"
  • Loading branch information
europ committed Aug 3, 2017
1 parent 972be2a commit 397e840
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/report/_schedule_form_timer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
= hidden_span_if(@edit[:new][:timer].typ.downcase != "daily", :id => "daily_span") do
= _("every")
= select_tag("timer_days",
options_for_select(TIMER_DAYS.map { |x, y| [_(x), y] }, @edit[:new][:timer].days),
options_for_select(ViewHelper::TIMER_DAYS.map { |x, y| [_(x), y] }, @edit[:new][:timer].days),
:class => "selectpicker")
:javascript
miqInitSelectPicker();
miqSelectPickerEvent("timer_days", "#{url}");
= hidden_span_if(@edit[:new][:timer].typ.downcase != "hourly", :id => "hourly_span") do
= _("every")
= select_tag("timer_hours",
options_for_select(TIMER_HOURS.map { |x, y| [_(x), y] }, @edit[:new][:timer].hours),
options_for_select(ViewHelper::TIMER_HOURS.map { |x, y| [_(x), y] }, @edit[:new][:timer].hours),
:class => "selectpicker")
:javascript
miqInitSelectPicker();
miqSelectPickerEvent("timer_hours", "#{url}");
= hidden_span_if(@edit[:new][:timer].typ.downcase != "weekly", :id => "weekly_span") do
= _("every")
= select_tag("timer_weeks",
options_for_select(TIMER_WEEKS.map { |x, y| [_(x), y] }, @edit[:new][:timer].weeks),
options_for_select(ViewHelper::TIMER_WEEKS.map { |x, y| [_(x), y] }, @edit[:new][:timer].weeks),
:class => "selectpicker")
:javascript
miqInitSelectPicker();
miqSelectPickerEvent("timer_weeks", "#{url}");
= hidden_span_if(@edit[:new][:timer].typ.downcase != "monthly", :id => "monthly_span") do
= _("every")
= select_tag("timer_months",
options_for_select(TIMER_MONTHS.map { |x, y| [_(x), y] }, @edit[:new][:timer].months),
options_for_select(ViewHelper::TIMER_MONTHS.map { |x, y| [_(x), y] }, @edit[:new][:timer].months),
:class => "selectpicker")
:javascript
miqInitSelectPicker();
Expand Down

0 comments on commit 397e840

Please sign in to comment.