|
|
|
@ -50,12 +50,12 @@ class LocationsController < ApplicationController |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def new_reactivation |
|
|
|
def new_reactivation |
|
|
|
@location_deactivation_period = LocationDeactivationPeriod.deactivations_without_reactivation.first |
|
|
|
@location_deactivation_period = @location.location_deactivation_periods.deactivations_without_reactivation.first |
|
|
|
render "toggle_active", locals: { action: "reactivate" } |
|
|
|
render "toggle_active", locals: { action: "reactivate" } |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def reactivate |
|
|
|
def reactivate |
|
|
|
@location_deactivation_period = LocationDeactivationPeriod.deactivations_without_reactivation.first |
|
|
|
@location_deactivation_period = @location.location_deactivation_periods.deactivations_without_reactivation.first |
|
|
|
|
|
|
|
|
|
|
|
@location_deactivation_period.reactivation_date = toggle_date("reactivation_date") |
|
|
|
@location_deactivation_period.reactivation_date = toggle_date("reactivation_date") |
|
|
|
@location_deactivation_period.reactivation_date_type = params[:location_deactivation_period][:reactivation_date_type] |
|
|
|
@location_deactivation_period.reactivation_date_type = params[:location_deactivation_period][:reactivation_date_type] |
|
|
|
|