2016-06-29 06:57:45 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
locales = Site.first.in_use_locales rescue I18n.available_locales
|
|
|
|
|
|
|
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
|
|
|
namespace :admin do
|
2022-03-10 02:11:18 +00:00
|
|
|
resources :application_forms do
|
2016-06-29 06:57:45 +00:00
|
|
|
member do
|
2021-04-03 16:23:52 +00:00
|
|
|
get 'copy'
|
2016-06-29 06:57:45 +00:00
|
|
|
get 'export'
|
|
|
|
get 'set_write_off'
|
2022-03-10 02:11:18 +00:00
|
|
|
get 'application_form_signup'
|
|
|
|
get 'application_form_item_content'
|
|
|
|
get 'application_form_signup_field'
|
|
|
|
get 'application_form_submission_field'
|
|
|
|
get 'application_form_signup_admin_setting'
|
|
|
|
post 'update_application_form_signup_admin_setting'
|
|
|
|
patch 'update_application_form_signup_admin_setting'
|
2021-03-17 07:33:31 +00:00
|
|
|
get 'get_hide_reviewer'
|
2021-04-03 16:23:52 +00:00
|
|
|
get 'get_hide_session'
|
2021-03-17 07:33:31 +00:00
|
|
|
get 'get_reviewer_block'
|
2021-04-03 16:23:52 +00:00
|
|
|
get 'get_session_block'
|
2021-03-17 07:33:31 +00:00
|
|
|
get 'reviewer_setting'
|
|
|
|
post 'update_reviewer_setting'
|
|
|
|
patch 'update_reviewer_setting'
|
2022-03-10 02:11:18 +00:00
|
|
|
post 'update_application_form_session'
|
2021-06-17 10:07:43 +00:00
|
|
|
get 'template_setting'
|
|
|
|
post 'update_template_setting'
|
|
|
|
patch 'update_template_setting'
|
|
|
|
get 'sub_page_setting'
|
2016-06-29 06:57:45 +00:00
|
|
|
end
|
|
|
|
end
|
2022-03-10 02:11:18 +00:00
|
|
|
get 'application_form/enquiry_for_applicants' => "application_forms#enquiry_for_applicants"
|
|
|
|
post 'application_form/update_application_form_review' => "application_forms#update_application_form_review"
|
|
|
|
resources :application_form_items do
|
2016-06-29 06:57:45 +00:00
|
|
|
collection do
|
|
|
|
post 'delete_items'
|
|
|
|
end
|
|
|
|
end
|
2022-03-10 02:11:18 +00:00
|
|
|
resources :application_form_agreements
|
|
|
|
resources :application_form_signups
|
|
|
|
resources :application_form_submission_values
|
|
|
|
resources :application_form_review_results
|
|
|
|
resources :application_form_item_contents
|
2016-06-29 06:57:45 +00:00
|
|
|
end
|
|
|
|
|
2022-03-10 02:11:18 +00:00
|
|
|
resources :application_forms do
|
2016-06-29 06:57:45 +00:00
|
|
|
collection do
|
2022-03-10 02:11:18 +00:00
|
|
|
get ':slug_title-:uid', to: 'application_forms#show'
|
|
|
|
post 'con_login_proc', to: 'application_forms#con_login_proc'
|
|
|
|
post 'con_logout_proc', to: 'application_forms#con_logout_proc'
|
|
|
|
post 'add_file_proc', to: 'application_forms#add_file_proc'
|
|
|
|
post 'edit_file_proc', to: 'application_forms#edit_file_proc'
|
|
|
|
post 'del_file', to: 'application_forms#del_file'
|
2016-06-29 06:57:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|