Skip to content

Commit

Permalink
Other methods in ServiceCalendarsController needed @service_request i…
Browse files Browse the repository at this point in the history
…nitialized. [#136963065]
  • Loading branch information
Jay Hardee committed Jan 3, 2017
1 parent 9e23f64 commit 3769f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/controllers/service_calendars_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def update
end

def table
initialize_service_request
@tab = params[:tab]
@review = params[:review] == 'true'
@portal = params[:portal] == 'true'
Expand All @@ -89,6 +90,7 @@ def table
end

def merged_calendar
initialize_service_request
@tab = params[:tab]
@review = params[:review] == 'true'
@portal = params[:portal] == 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
.schedule-tabs{ role: 'tabpanel' }
%ul.nav.nav-tabs.nav-justified{ role: 'tablist' }
%li.other_tab.custom-tab.ss_tab{ role: 'presentation', class: cookies['admin-ss-tab'] ? (cookies['admin-ss-tab'] == 'template_tab' ? 'active' : '') : 'active' }
= link_to t(:calendars)[:tabs][:template], '#template-calendar', id: 'template_tab', data: { toggle: 'tab', url: table_service_calendars_path(sub_service_request_id: sub_service_request.id, tab: 'template', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'template-calendar', target: '#template-calendar'
= link_to t(:calendars)[:tabs][:template], '#template-calendar', id: 'template_tab', data: { toggle: 'tab', url: table_service_calendars_path(service_request_id: service_request.id, sub_service_request_id: sub_service_request.id, tab: 'template', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'template-calendar', target: '#template-calendar'
%li.other_tab.custom-tab.ss_tab{ role: 'presentation', class: cookies['admin-ss-tab'] == 'billing_strategy_tab' ? 'active' : '' }
= link_to t(:calendars)[:tabs][:billing], '#billing-strategy-calendar', id: 'billing_strategy_tab', data: { toggle: 'tab', url: table_service_calendars_path(sub_service_request_id: sub_service_request.id, tab: 'billing_strategy', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'billing-strategy-calendar', target: '#billing-strategy-calendar'
= link_to t(:calendars)[:tabs][:billing], '#billing-strategy-calendar', id: 'billing_strategy_tab', data: { toggle: 'tab', url: table_service_calendars_path(service_request_id: service_request.id, sub_service_request_id: sub_service_request.id, tab: 'billing_strategy', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'billing-strategy-calendar', target: '#billing-strategy-calendar'
%li.pricing_tab.custom-tab.ss_tab{ role: 'presentation', class: cookies['admin-ss-tab'] == 'calendar_tab' ? 'active' : '' }
= link_to t(:calendars)[:tabs][:pricing], '#consolidated-request-calendar', id: 'calendar_tab', data: { toggle: 'tab', url: merged_calendar_service_calendars_path(sub_service_request_id: sub_service_request.id, tab: 'calendar', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'consolidated-request-calendar', target: '#consolidated-request-calendar'
= link_to t(:calendars)[:tabs][:pricing], '#consolidated-request-calendar', id: 'calendar_tab', data: { toggle: 'tab', url: merged_calendar_service_calendars_path(service_request_id: service_request.id, sub_service_request_id: sub_service_request.id, tab: 'calendar', review: false, portal: true) }, role: 'tab', 'aria-controls' => 'consolidated-request-calendar', target: '#consolidated-request-calendar'
.move-visits
.tab-content
.tab-pane#template-calendar{ role: 'tabpanel', class: cookies['admin-ss-tab'] ? (cookies['admin-ss-tab'] == 'template_tab' ? 'active' : '') : 'active' }
Expand Down

0 comments on commit 3769f2a

Please sign in to comment.