3 changed files with 21 additions and 22 deletions
@ -1,17 +1,17 @@
|
||||
module ToggleActiveLocationHelper |
||||
def toggle_location_form_path(action, scheme_id, location_id) |
||||
if action == "deactivate" |
||||
scheme_location_new_deactivation_path(scheme_id:, location_id:) |
||||
else |
||||
scheme_location_reactivate_path(scheme_id:, location_id:) |
||||
end |
||||
def toggle_location_form_path(action, scheme_id, location_id) |
||||
if action == "deactivate" |
||||
scheme_location_new_deactivation_path(scheme_id:, location_id:) |
||||
else |
||||
scheme_location_reactivate_path(scheme_id:, location_id:) |
||||
end |
||||
end |
||||
|
||||
def date_type_question(action) |
||||
action == "deactivate" ? :deactivation_date_type : :reactivation_date_type |
||||
end |
||||
def date_type_question(action) |
||||
action == "deactivate" ? :deactivation_date_type : :reactivation_date_type |
||||
end |
||||
|
||||
def date_question(action) |
||||
action == "deactivate" ? :deactivation_date : :reactivation_date |
||||
end |
||||
end |
||||
def date_question(action) |
||||
action == "deactivate" ? :deactivation_date : :reactivation_date |
||||
end |
||||
end |
||||
|
||||
Loading…
Reference in new issue