Application_Form/config/routes.rb

77 lines
2.6 KiB
Ruby
Raw Normal View History

2016-06-29 06:57:45 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
Thread.new do
end
2016-06-29 06:57:45 +00:00
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
2022-05-21 13:48:39 +00:00
resource :application_forms, only: [] do
get 'setting'
get ':id/print', to: 'application_forms#print'
post 'update_setting' => "application_forms#update_setting"
get 'print_setting'
get ':application_form_id/print_setting' => "application_forms#print_setting"
post 'print_setting_save'
end
2022-03-10 02:11:18 +00:00
resources :application_forms do
2016-06-29 06:57:45 +00:00
member do
2022-05-21 13:48:39 +00:00
get 'print'
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'
get 'get_hide_reviewer'
get 'get_hide_session'
get 'get_reviewer_block'
get 'get_session_block'
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, except: [:edit, :update] do
member do
get 'view'
end
end
2022-03-10 02:11:18 +00:00
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
get '/xhr/application_forms/agree_link' , to: 'application_forms#agree_link'
2016-06-29 06:57:45 +00:00
end
end