rails_org 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +30 -0
- data/Rakefile +20 -0
- data/app/controllers/me/base_controller.rb +4 -0
- data/app/controllers/me/home_controller.rb +9 -0
- data/app/controllers/me_controller.rb +4 -0
- data/app/controllers/org/admin/authorized_tokens_controller.rb +48 -0
- data/app/controllers/org/admin/base_controller.rb +4 -0
- data/app/controllers/org/admin/current_organ_controller.rb +43 -0
- data/app/controllers/org/admin/department_grants_controller.rb +44 -0
- data/app/controllers/org/admin/departments_controller.rb +92 -0
- data/app/controllers/org/admin/home_controller.rb +8 -0
- data/app/controllers/org/admin/job_descriptions_controller.rb +49 -0
- data/app/controllers/org/admin/job_titles_controller.rb +69 -0
- data/app/controllers/org/admin/job_transfers_controller.rb +88 -0
- data/app/controllers/org/admin/member_departments_controller.rb +82 -0
- data/app/controllers/org/admin/members_controller.rb +129 -0
- data/app/controllers/org/admin/organ_domains_controller.rb +61 -0
- data/app/controllers/org/admin/organs_controller.rb +57 -0
- data/app/controllers/org/admin/resign_reasons_controller.rb +19 -0
- data/app/controllers/org/admin/resigns_controller.rb +103 -0
- data/app/controllers/org/admin/super_job_titles_controller.rb +70 -0
- data/app/controllers/org/admin/supports_controller.rb +93 -0
- data/app/controllers/org/admin/tutorials_controller.rb +74 -0
- data/app/controllers/org/base_controller.rb +4 -0
- data/app/controllers/org/board/base_controller.rb +4 -0
- data/app/controllers/org/board/members_controller.rb +61 -0
- data/app/controllers/org/board/organs_controller.rb +78 -0
- data/app/controllers/org/controller/application.rb +84 -0
- data/app/controllers/org/controller/me.rb +25 -0
- data/app/controllers/org/controller/our.rb +12 -0
- data/app/controllers/org/layout/me.rb +16 -0
- data/app/controllers/org/layout/panel.rb +16 -0
- data/app/controllers/org/me/base_controller.rb +4 -0
- data/app/controllers/org/me/departments_controller.rb +78 -0
- data/app/controllers/org/me/job_transfers_controller.rb +62 -0
- data/app/controllers/org/me/members_controller.rb +37 -0
- data/app/controllers/org/me/orders_controller.rb +66 -0
- data/app/controllers/org/me/resigns_controller.rb +53 -0
- data/app/controllers/org/me/tutorials_controller.rb +76 -0
- data/app/controllers/org/members_controller.rb +48 -0
- data/app/controllers/org/organs_controller.rb +30 -0
- data/app/controllers/org/panel/base_controller.rb +4 -0
- data/app/controllers/org/panel/organ_domains_controller.rb +5 -0
- data/app/controllers/org/panel/organs_controller.rb +40 -0
- data/app/mailers/org/attendance_mailer.rb +17 -0
- data/app/mailers/org/exam_mailer.rb +26 -0
- data/app/mailers/org/lesson_mailer.rb +15 -0
- data/app/mailers/org/lesson_member_mailer.rb +25 -0
- data/app/models/org/account.rb +8 -0
- data/app/models/org/application_record.rb +5 -0
- data/app/models/org/department.rb +6 -0
- data/app/models/org/department_grant.rb +5 -0
- data/app/models/org/department_hierarchy.rb +5 -0
- data/app/models/org/job_description.rb +5 -0
- data/app/models/org/job_title.rb +6 -0
- data/app/models/org/job_transfer.rb +5 -0
- data/app/models/org/member.rb +7 -0
- data/app/models/org/member_department.rb +6 -0
- data/app/models/org/model/account.rb +11 -0
- data/app/models/org/model/department.rb +67 -0
- data/app/models/org/model/department_grant.rb +13 -0
- data/app/models/org/model/department_hierarchy.rb +10 -0
- data/app/models/org/model/job_description.rb +18 -0
- data/app/models/org/model/job_title.rb +54 -0
- data/app/models/org/model/job_transfer.rb +108 -0
- data/app/models/org/model/member.rb +142 -0
- data/app/models/org/model/member_department.rb +66 -0
- data/app/models/org/model/organ.rb +62 -0
- data/app/models/org/model/organ_domain.rb +44 -0
- data/app/models/org/model/organ_handle.rb +15 -0
- data/app/models/org/model/resign.rb +66 -0
- data/app/models/org/model/resign_reason.rb +17 -0
- data/app/models/org/model/resign_reference.rb +11 -0
- data/app/models/org/model/super_job_title.rb +25 -0
- data/app/models/org/model/support.rb +19 -0
- data/app/models/org/model/tutorial.rb +64 -0
- data/app/models/org/model/user.rb +30 -0
- data/app/models/org/organ.rb +7 -0
- data/app/models/org/organ_domain.rb +5 -0
- data/app/models/org/organ_handle.rb +5 -0
- data/app/models/org/resign.rb +5 -0
- data/app/models/org/resign_reason.rb +5 -0
- data/app/models/org/resign_reference.rb +5 -0
- data/app/models/org/super_job_title.rb +6 -0
- data/app/models/org/support.rb +5 -0
- data/app/models/org/tutorial.rb +5 -0
- data/app/models/org.rb +11 -0
- data/app/views/admin/_department_navbar.html.erb +6 -0
- data/app/views/admin/_nav_show.erb +17 -0
- data/app/views/admin/_nav_with_login.html.erb +37 -0
- data/app/views/admin/_org_nav.html.erb +16 -0
- data/app/views/admin/_right_menu.html.erb +17 -0
- data/app/views/application/_org_navbar.html.erb +19 -0
- data/app/views/application/require_member.html.erb +4 -0
- data/app/views/application/require_member.js.erb +2 -0
- data/app/views/application/require_member.json.jbuilder +1 -0
- data/app/views/application/require_organ.html.erb +4 -0
- data/app/views/application/require_organ.js.erb +2 -0
- data/app/views/application/require_organ.json.jbuilder +1 -0
- data/app/views/layouts/me.html+phone.erb +12 -0
- data/app/views/layouts/me.html.erb +17 -0
- data/app/views/me/_nav_with_login.html.erb +3 -0
- data/app/views/me/_org_nav.html.erb +13 -0
- data/app/views/me/_right_menu.html.erb +23 -0
- data/app/views/me/home/index.html.erb +17 -0
- data/app/views/me/update.turbo_stream.erb +3 -0
- data/app/views/org/admin/authorized_tokens/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/authorized_tokens/_button.html.erb +0 -0
- data/app/views/org/admin/authorized_tokens/_edit_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_filter_form.html.erb +9 -0
- data/app/views/org/admin/authorized_tokens/_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_index_tbody.html.erb +18 -0
- data/app/views/org/admin/authorized_tokens/_index_thead.html.erb +6 -0
- data/app/views/org/admin/authorized_tokens/_new_form.html.erb +4 -0
- data/app/views/org/admin/authorized_tokens/_show_table.html.erb +20 -0
- data/app/views/org/admin/authorized_tokens/index.html.erb +3 -0
- data/app/views/org/admin/base/_nav.html.erb +3 -0
- data/app/views/org/admin/current_organ/_edit_form.html.erb +11 -0
- data/app/views/org/admin/current_organ/_edit_x_form.html.erb +5 -0
- data/app/views/org/admin/current_organ/_show_table.html.erb +16 -0
- data/app/views/org/admin/current_organ/show.html.erb +1 -0
- data/app/views/org/admin/department_grants/_add.html.erb +3 -0
- data/app/views/org/admin/department_grants/_index.html.erb +29 -0
- data/app/views/org/admin/department_grants/_new.html.erb +6 -0
- data/app/views/org/admin/department_grants/index.js.erb +7 -0
- data/app/views/org/admin/departments/_department.json.jbuilder +6 -0
- data/app/views/org/admin/departments/_department_form.html.erb +8 -0
- data/app/views/org/admin/departments/_department_support.html.erb +26 -0
- data/app/views/org/admin/departments/_edit_form.html.erb +4 -0
- data/app/views/org/admin/departments/_filter_form.html.erb +9 -0
- data/app/views/org/admin/departments/_filter_table.html.erb +11 -0
- data/app/views/org/admin/departments/_form.html.erb +23 -0
- data/app/views/org/admin/departments/_index_tbody.html.erb +29 -0
- data/app/views/org/admin/departments/_index_thead.html.erb +14 -0
- data/app/views/org/admin/departments/_index_tr.html.erb +23 -0
- data/app/views/org/admin/departments/_member.html.erb +28 -0
- data/app/views/org/admin/departments/_menu.html.erb +12 -0
- data/app/views/org/admin/departments/_new_form.html.erb +4 -0
- data/app/views/org/admin/departments/_show/_breadcrumb.html.erb +9 -0
- data/app/views/org/admin/departments/_show/_thead.html.erb +9 -0
- data/app/views/org/admin/departments/_show.json.jbuilder +1 -0
- data/app/views/org/admin/departments/index.html.erb +14 -0
- data/app/views/org/admin/departments/index.json.jbuilder +1 -0
- data/app/views/org/admin/departments/need.html.erb +12 -0
- data/app/views/org/admin/departments/show.html.erb +25 -0
- data/app/views/org/admin/departments/supports.html.erb +28 -0
- data/app/views/org/admin/home/index.html.erb +0 -0
- data/app/views/org/admin/job_descriptions/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_descriptions/_filter_form.html.erb +7 -0
- data/app/views/org/admin/job_descriptions/_form.html.erb +8 -0
- data/app/views/org/admin/job_descriptions/_index_tbody.html.erb +7 -0
- data/app/views/org/admin/job_descriptions/_index_thead.html.erb +8 -0
- data/app/views/org/admin/job_descriptions/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_breadcrumb.html.erb +7 -0
- data/app/views/org/admin/job_titles/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_form.html.erb +3 -0
- data/app/views/org/admin/job_titles/_index_thead.html.erb +9 -0
- data/app/views/org/admin/job_titles/_job_titles.html.erb +49 -0
- data/app/views/org/admin/job_titles/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_titles/_show_table.html.erb +12 -0
- data/app/views/org/admin/job_titles/_super_job_titles.html.erb +14 -0
- data/app/views/org/admin/job_titles/create_department.turbo_stream.erb +3 -0
- data/app/views/org/admin/job_titles/index.html.erb +4 -0
- data/app/views/org/admin/job_transfers/_edit_form.html.erb +4 -0
- data/app/views/org/admin/job_transfers/_filter_table.html.erb +11 -0
- data/app/views/org/admin/job_transfers/_form.html.erb +7 -0
- data/app/views/org/admin/job_transfers/_index_thead.html.erb +6 -0
- data/app/views/org/admin/job_transfers/_list.html.erb +29 -0
- data/app/views/org/admin/job_transfers/_new_form.html.erb +4 -0
- data/app/views/org/admin/job_transfers/index.html.erb +3 -0
- data/app/views/org/admin/job_transfers/my.html.erb +7 -0
- data/app/views/org/admin/job_transfers/show.html.erb +54 -0
- data/app/views/org/admin/member_departments/_edit_form.html.erb +3 -0
- data/app/views/org/admin/member_departments/_filter_form.html.erb +8 -0
- data/app/views/org/admin/member_departments/_form.html.erb +4 -0
- data/app/views/org/admin/member_departments/_job_title_options.html.erb +10 -0
- data/app/views/org/admin/member_departments/_new_form.html.erb +3 -0
- data/app/views/org/admin/member_departments/_organ_options.html.erb +1 -0
- data/app/views/org/admin/member_departments/_show_table.html.erb +20 -0
- data/app/views/org/admin/member_departments/_super_job_title_options.html.erb +10 -0
- data/app/views/org/admin/member_departments/index.html.erb +38 -0
- data/app/views/org/admin/member_departments/options.js.erb +4 -0
- data/app/views/org/admin/member_departments/show.html.erb +7 -0
- data/app/views/org/admin/members/_button.html.erb +6 -0
- data/app/views/org/admin/members/_edit/_breadcrumb.html.erb +12 -0
- data/app/views/org/admin/members/_edit_form.html.erb +4 -0
- data/app/views/org/admin/members/_edit_table.html.erb +3 -0
- data/app/views/org/admin/members/_filter_form.html.erb +10 -0
- data/app/views/org/admin/members/_filter_table.html.erb +9 -0
- data/app/views/org/admin/members/_form.html.erb +9 -0
- data/app/views/org/admin/members/_index_tbody.html.erb +24 -0
- data/app/views/org/admin/members/_index_thead.html.erb +7 -0
- data/app/views/org/admin/members/_index_tr.html.erb +22 -0
- data/app/views/org/admin/members/_item_field.html.erb +3 -0
- data/app/views/org/admin/members/_item_form.html.erb +27 -0
- data/app/views/org/admin/members/_member.json.jbuilder +5 -0
- data/app/views/org/admin/members/_menu.html.erb +11 -0
- data/app/views/org/admin/members/_new/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/members/_new_form.html.erb +4 -0
- data/app/views/org/admin/members/_outer_options.html.erb +4 -0
- data/app/views/org/admin/members/_profile/_show_table.html.erb +38 -0
- data/app/views/org/admin/members/_profile_form.html.erb +17 -0
- data/app/views/org/admin/members/_show/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/members/_show.json.jbuilder +1 -0
- data/app/views/org/admin/members/_show_table.html.erb +54 -0
- data/app/views/org/admin/members/edit_profile.html.erb +1 -0
- data/app/views/org/admin/members/index.html.erb +5 -0
- data/app/views/org/admin/members/index.json.jbuilder +1 -0
- data/app/views/org/admin/members/options.turbo_stream.erb +7 -0
- data/app/views/org/admin/members/profile.html.erb +16 -0
- data/app/views/org/admin/members/super_options.js.erb +15 -0
- data/app/views/org/admin/organ_domains/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/organ_domains/_edit_form.html.erb +4 -0
- data/app/views/org/admin/organ_domains/_filter_form.html.erb +9 -0
- data/app/views/org/admin/organ_domains/_form.html.erb +5 -0
- data/app/views/org/admin/organ_domains/_index_tbody.html.erb +12 -0
- data/app/views/org/admin/organ_domains/_index_thead.html.erb +8 -0
- data/app/views/org/admin/organ_domains/_new_form.html.erb +4 -0
- data/app/views/org/admin/organ_domains/_show_table.html.erb +20 -0
- data/app/views/org/admin/organ_domains/index.html.erb +5 -0
- data/app/views/org/admin/organs/_edit_form.html.erb +6 -0
- data/app/views/org/admin/organs/_filter_form.html.erb +9 -0
- data/app/views/org/admin/organs/_form.html.erb +6 -0
- data/app/views/org/admin/organs/_index_tbody.html.erb +17 -0
- data/app/views/org/admin/organs/_index_thead.html.erb +9 -0
- data/app/views/org/admin/organs/_index_tr.html.erb +22 -0
- data/app/views/org/admin/organs/_new_form.html.erb +8 -0
- data/app/views/org/admin/organs/_organ.json.jbuilder +7 -0
- data/app/views/org/admin/organs/_show.json.jbuilder +1 -0
- data/app/views/org/admin/organs/_show_table.html.erb +16 -0
- data/app/views/org/admin/organs/index.html.erb +4 -0
- data/app/views/org/admin/organs/index.json.jbuilder +1 -0
- data/app/views/org/admin/organs/show.json.jbuilder +1 -0
- data/app/views/org/admin/resign_reasons/_edit_form.html.erb +4 -0
- data/app/views/org/admin/resign_reasons/_filter_form.html.erb +7 -0
- data/app/views/org/admin/resign_reasons/_form.html.erb +3 -0
- data/app/views/org/admin/resign_reasons/_new_form.html.erb +4 -0
- data/app/views/org/admin/resign_reasons/_resign_reason.html.erb +13 -0
- data/app/views/org/admin/resign_reasons/index.html.erb +30 -0
- data/app/views/org/admin/resigns/_edit_form.html.erb +4 -0
- data/app/views/org/admin/resigns/_form.html.erb +6 -0
- data/app/views/org/admin/resigns/_index_tbody.html.erb +23 -0
- data/app/views/org/admin/resigns/_index_thead.html.erb +6 -0
- data/app/views/org/admin/resigns/_new_form.html.erb +4 -0
- data/app/views/org/admin/resigns/_search_chart1_form.html.erb +9 -0
- data/app/views/org/admin/resigns/_search_chart2_form.html.erb +8 -0
- data/app/views/org/admin/resigns/_search_form.html.erb +8 -0
- data/app/views/org/admin/resigns/charts.html.erb +19 -0
- data/app/views/org/admin/resigns/index.html.erb +1 -0
- data/app/views/org/admin/resigns/my.html.erb +1 -0
- data/app/views/org/admin/resigns/show.html.erb +47 -0
- data/app/views/org/admin/super_job_titles/_breadcrumb.html.erb +6 -0
- data/app/views/org/admin/super_job_titles/_edit_form.html.erb +4 -0
- data/app/views/org/admin/super_job_titles/_filter_form.html.erb +9 -0
- data/app/views/org/admin/super_job_titles/_form.html.erb +3 -0
- data/app/views/org/admin/super_job_titles/_index_tbody.html.erb +13 -0
- data/app/views/org/admin/super_job_titles/_index_thead.html.erb +6 -0
- data/app/views/org/admin/super_job_titles/_new_form.html.erb +4 -0
- data/app/views/org/admin/super_job_titles/_show_table.html.erb +12 -0
- data/app/views/org/admin/super_job_titles/index.html.erb +5 -0
- data/app/views/org/admin/supports/_edit_form.html.erb +4 -0
- data/app/views/org/admin/supports/_filter_form.html.erb +8 -0
- data/app/views/org/admin/supports/_form.html.erb +6 -0
- data/app/views/org/admin/supports/_index_tbody.html.erb +5 -0
- data/app/views/org/admin/supports/_index_thead.html.erb +6 -0
- data/app/views/org/admin/supports/_new_form.html.erb +4 -0
- data/app/views/org/admin/supports/index.html.erb +5 -0
- data/app/views/org/admin/tutorials/_edit_form.html.erb +4 -0
- data/app/views/org/admin/tutorials/_filter_form.html.erb +9 -0
- data/app/views/org/admin/tutorials/_form.html.erb +5 -0
- data/app/views/org/admin/tutorials/_index_tbody.html.erb +19 -0
- data/app/views/org/admin/tutorials/_index_thead.html.erb +15 -0
- data/app/views/org/admin/tutorials/_new_form.html.erb +8 -0
- data/app/views/org/admin/tutorials/index.html.erb +5 -0
- data/app/views/org/admin/tutorials/my.html.erb +5 -0
- data/app/views/org/board/base/_nav.html.erb +4 -0
- data/app/views/org/board/members/_form.html+phone.erb +29 -0
- data/app/views/org/board/members/_form.html.erb +4 -0
- data/app/views/org/board/members/_member.json.jbuilder +11 -0
- data/app/views/org/board/members/_new_form.html+phone.erb +4 -0
- data/app/views/org/board/members/_new_form.html.erb +4 -0
- data/app/views/org/board/members/index.html+phone.erb +40 -0
- data/app/views/org/board/members/index.html.erb +28 -0
- data/app/views/org/board/members/index.json.jbuilder +1 -0
- data/app/views/org/board/members/login.json.jbuilder +1 -0
- data/app/views/org/board/organs/_form.html.erb +4 -0
- data/app/views/org/board/organs/_new_form.html.erb +4 -0
- data/app/views/org/board/organs/create.turbo_stream.erb +3 -0
- data/app/views/org/board/organs/index.html+phone.erb +9 -0
- data/app/views/org/board/organs/index.html.erb +41 -0
- data/app/views/org/board/organs/showx.html.erb +1 -0
- data/app/views/org/me/base/_nav.html.erb +3 -0
- data/app/views/org/me/departments/_breadcrumb.html.erb +5 -0
- data/app/views/org/me/departments/_department.html.erb +31 -0
- data/app/views/org/me/departments/_filter_form.html.erb +9 -0
- data/app/views/org/me/departments/_index_thead.html.erb +5 -0
- data/app/views/org/me/departments/_index_tr.html.erb +10 -0
- data/app/views/org/me/departments/_member.html.erb +11 -0
- data/app/views/org/me/departments/_nav_show.erb +16 -0
- data/app/views/org/me/departments/index.html.erb +11 -0
- data/app/views/org/me/departments/index2.html.erb +46 -0
- data/app/views/org/me/home/index.html.erb +8 -0
- data/app/views/org/me/job_transfers/_form.html.erb +8 -0
- data/app/views/org/me/job_transfers/_index_tbody.html.erb +7 -0
- data/app/views/org/me/job_transfers/_index_thead.html.erb +6 -0
- data/app/views/org/me/job_transfers/_tabs.html.erb +9 -0
- data/app/views/org/me/job_transfers/index.html.erb +25 -0
- data/app/views/org/me/members/_badges.html.erb +13 -0
- data/app/views/org/me/members/_edit.html+phone.erb +10 -0
- data/app/views/org/me/members/_edit_form.html.erb +6 -0
- data/app/views/org/me/members/_member.json.jbuilder +6 -0
- data/app/views/org/me/members/_show.json.jbuilder +1 -0
- data/app/views/org/me/members/_show_table.html.erb +24 -0
- data/app/views/org/me/members/index.json.jbuilder +1 -0
- data/app/views/org/me/members/show.json.jbuilder +1 -0
- data/app/views/org/me/orders/_search_form.html.erb +7 -0
- data/app/views/org/me/orders/dinners.html.erb +32 -0
- data/app/views/org/me/orders/new.html.erb +5 -0
- data/app/views/org/me/orders/show.html.erb +0 -0
- data/app/views/org/me/resigns/_form.html.erb +12 -0
- data/app/views/org/me/resigns/_tabs.html.erb +4 -0
- data/app/views/org/me/resigns/show.html.erb +45 -0
- data/app/views/org/me/tutorials/_form.html.erb +6 -0
- data/app/views/org/me/tutorials/_menu.html.erb +11 -0
- data/app/views/org/me/tutorials/_search_form.html.erb +7 -0
- data/app/views/org/me/tutorials/index.html.erb +35 -0
- data/app/views/org/me/tutorials/perform.html.erb +21 -0
- data/app/views/org/me/tutorials/tutorings.html.erb +40 -0
- data/app/views/org/members/_filter_form.html.erb +9 -0
- data/app/views/org/members/_filter_table.html.erb +11 -0
- data/app/views/org/members/groups.json.jbuilder +5 -0
- data/app/views/org/members/index.html.erb +24 -0
- data/app/views/org/members/journals.json.jbuilder +9 -0
- data/app/views/org/members/people.json.jbuilder +14 -0
- data/app/views/org/members/sections.json.jbuilder +5 -0
- data/app/views/org/members/show.html+phone.erb +23 -0
- data/app/views/org/members/show.html.erb +39 -0
- data/app/views/org/organs/_form_search.html.erb +11 -0
- data/app/views/org/organs/form_search.js.erb +1 -0
- data/app/views/org/organs/index.html+phone.erb +20 -0
- data/app/views/org/organs/index.html.erb +18 -0
- data/app/views/org/organs/show.html.erb +0 -0
- data/app/views/org/panel/base/_nav.html.erb +3 -0
- data/app/views/org/panel/organs/_edit_form.html.erb +6 -0
- data/app/views/org/panel/organs/_filter_form.html.erb +9 -0
- data/app/views/org/panel/organs/_form.html.erb +5 -0
- data/app/views/org/panel/organs/_index_tbody.html.erb +28 -0
- data/app/views/org/panel/organs/_index_thead.html.erb +12 -0
- data/app/views/org/panel/organs/_index_tr.html.erb +19 -0
- data/app/views/org/panel/organs/_new_form.html.erb +6 -0
- data/app/views/org/panel/organs/_show_table.html.erb +16 -0
- data/app/views/org/panel/organs/index.html.erb +5 -0
- data/app/views/our/_nav_bar.html.erb +18 -0
- data/app/views/our/_nav_choosex.html.erb +23 -0
- data/app/views/panel/_org_nav.html.erb +10 -0
- data/config/locales/en.attributes.yml +37 -0
- data/config/locales/en.controller.yml +113 -0
- data/config/locales/en.enum.yml +31 -0
- data/config/locales/zh.attributes.yml +89 -0
- data/config/locales/zh.controller.yml +116 -0
- data/config/locales/zh.enum.yml +31 -0
- data/config/locales/zh.help.yml +7 -0
- data/config/routes.rb +152 -0
- data/lib/rails_org/config.rb +13 -0
- data/lib/rails_org/default_form.rb +17 -0
- data/lib/rails_org/engine.rb +19 -0
- data/lib/rails_org.rb +3 -0
- data/test/application_system_test_case.rb +5 -0
- data/test/controllers/department_journals_controller_test.rb +48 -0
- data/test/controllers/job_transfers_controller_test.rb +48 -0
- data/test/controllers/journal_transfers_controller_test.rb +48 -0
- data/test/controllers/org/admin/authorized_tokens_controller_test.rb +49 -0
- data/test/controllers/org/admin/department_grants_controller_test.rb +48 -0
- data/test/controllers/org/admin/departments_controller_test.rb +51 -0
- data/test/controllers/org/admin/job_descriptions_controller_test.rb +48 -0
- data/test/controllers/org/admin/job_titles_controller_test.rb +51 -0
- data/test/controllers/org/admin/member_departments_controller_test.rb +48 -0
- data/test/controllers/org/admin/organ_domains_controller_test.rb +49 -0
- data/test/controllers/org/admin/organ_handles_controller_test.rb +48 -0
- data/test/controllers/org/admin/organ_tokens_controller_test.rb +48 -0
- data/test/controllers/org/admin/super_job_titles_controller_test.rb +51 -0
- data/test/controllers/org/mine/members_controller_test.rb +49 -0
- data/test/controllers/resign_reasons_controller_test.rb +48 -0
- data/test/controllers/resigns_controller_test.rb +48 -0
- data/test/controllers/tutorials_controller_test.rb +48 -0
- data/test/dummy/Gemfile +59 -0
- data/test/dummy/Gemfile.lock +379 -0
- data/test/dummy/README.md +12 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/default_avatar.jpg +0 -0
- data/test/dummy/app/assets/images/logo.png +0 -0
- data/test/dummy/app/assets/javascripts/admin/application.js +1 -0
- data/test/dummy/app/assets/javascripts/application.js +11 -0
- data/test/dummy/app/assets/javascripts/phone.js +5 -0
- data/test/dummy/app/assets/stylesheets/css.scss +4 -0
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/active_storage/base_controller.rb +19 -0
- data/test/dummy/app/controllers/admin_controller.rb +3 -0
- data/test/dummy/app/controllers/application_controller.rb +12 -0
- data/test/dummy/app/controllers/home_controller.rb +6 -0
- data/test/dummy/app/controllers/me_controller.rb +4 -0
- data/test/dummy/app/controllers/my_controller.rb +4 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/auth/user.rb +7 -0
- data/test/dummy/app/views/home/index.css +3 -0
- data/test/dummy/app/views/home/index.html.erb +0 -0
- data/test/dummy/app/views/layouts/_right_menu.html.erb +3 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/vite +19 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config/application.rb +20 -0
- data/test/dummy/config/boot.rb +9 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/credentials/development.key +1 -0
- data/test/dummy/config/credentials/test.key +1 -0
- data/test/dummy/config/credentials.yml.enc +1 -0
- data/test/dummy/config/database.yml +16 -0
- data/test/dummy/config/environment.rb +3 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +74 -0
- data/test/dummy/config/environments/test.rb +47 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +14 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +2 -0
- data/test/dummy/config/master.key +1 -0
- data/test/dummy/config/puma.rb +34 -0
- data/test/dummy/config/routes.rb +14 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/config/storage.yml +11 -0
- data/test/dummy/config/vite/base.js +7 -0
- data/test/dummy/config/vite/development.js +6 -0
- data/test/dummy/config/vite/production.js +6 -0
- data/test/dummy/config.ru +7 -0
- data/test/dummy/lib/deploy.rb +115 -0
- data/test/dummy/package.json +27 -0
- data/test/dummy/postcss.config.js +11 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/yarn.lock +2147 -0
- data/test/factories/attendance_logs.rb +5 -0
- data/test/factories/badges.rb +5 -0
- data/test/factories/bands.rb +5 -0
- data/test/factories/department_grants.rb +8 -0
- data/test/factories/department_journals.rb +5 -0
- data/test/factories/departments.rb +12 -0
- data/test/factories/job_descriptions.rb +5 -0
- data/test/factories/job_titles.rb +9 -0
- data/test/factories/job_transfers.rb +5 -0
- data/test/factories/resigns.rb +5 -0
- data/test/factories/super_job_titles.rb +8 -0
- data/test/factories/tutorials.rb +5 -0
- data/test/mailers/previews/the_notify_mailer_preview.rb +9 -0
- data/test/models/department_test.rb +7 -0
- data/test/models/job_description_test.rb +7 -0
- data/test/models/job_title/department_job_title_test.rb +1 -0
- data/test/models/job_title/super_job_title_test.rb +1 -0
- data/test/models/job_title_test.rb +10 -0
- data/test/models/job_transfer_test.rb +7 -0
- data/test/models/resign_test.rb +7 -0
- data/test/models/teacher_test.rb +7 -0
- data/test/models/tutorial_test.rb +7 -0
- data/test/system/org/admin/authorized_tokens_test.rb +51 -0
- data/test/system/org/admin/organ_domains_test.rb +51 -0
- data/test/system/org/mine/members_test.rb +41 -0
- data/test/test_helper.rb +14 -0
- metadata +654 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
zh:
|
2
|
+
activerecord:
|
3
|
+
enum:
|
4
|
+
job_transfer:
|
5
|
+
state:
|
6
|
+
init: 申请
|
7
|
+
approved: 批准
|
8
|
+
denied: 拒绝
|
9
|
+
resign:
|
10
|
+
state:
|
11
|
+
init: 申请
|
12
|
+
approved: 批准
|
13
|
+
denied: 拒绝
|
14
|
+
tutorial:
|
15
|
+
accepted_status:
|
16
|
+
very_advance: Very advance
|
17
|
+
advance: 提前一个月转正
|
18
|
+
normal: 正常转正
|
19
|
+
overdue: 延期转正
|
20
|
+
very_overdue: Very overdue
|
21
|
+
state:
|
22
|
+
init: Pending
|
23
|
+
interning: Interning Ⅰ
|
24
|
+
probation: Probation Ⅱ
|
25
|
+
added_probation: Probation
|
26
|
+
accepted: Accepted
|
27
|
+
verified:
|
28
|
+
unverified: Unverified
|
29
|
+
superior_approved: Superior Approved
|
30
|
+
admin_approved: Org Approved
|
31
|
+
md_approved: MD Approved
|
data/config/routes.rb
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
namespace :me do
|
4
|
+
root 'home#index'
|
5
|
+
end
|
6
|
+
|
7
|
+
namespace 'org', defaults: { business: 'org' } do
|
8
|
+
resources :members, only: [:index, :show] do
|
9
|
+
collection do
|
10
|
+
get :search
|
11
|
+
end
|
12
|
+
end
|
13
|
+
resources :organs, only: [:index, :show] do
|
14
|
+
collection do
|
15
|
+
get :form_search
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
namespace :me, defaults: { namespace: 'me' } do
|
20
|
+
resource :member, except: [:new, :create]
|
21
|
+
resources :departments
|
22
|
+
resources :tutorials do
|
23
|
+
collection do
|
24
|
+
get :tutorings
|
25
|
+
end
|
26
|
+
member do
|
27
|
+
get :perform
|
28
|
+
end
|
29
|
+
end
|
30
|
+
resource :resign
|
31
|
+
resources :job_transfers do
|
32
|
+
get :departments, on: :collection
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
namespace :board, defaults: { namespace: 'board' } do
|
37
|
+
resources :organs
|
38
|
+
resources :members, only: [:index, :new, :create] do
|
39
|
+
collection do
|
40
|
+
get :near
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
namespace :panel, defaults: { namespace: 'panel' } do
|
46
|
+
resources :organs do
|
47
|
+
resources :organ_domains
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
namespace :admin, defaults: { namespace: 'admin' } do
|
52
|
+
root 'home#index' unless has_named_route? 'admin_root'
|
53
|
+
controller :home do
|
54
|
+
get :index
|
55
|
+
end
|
56
|
+
resource :current_organ, controller: 'current_organ'
|
57
|
+
resources :organs do
|
58
|
+
collection do
|
59
|
+
get :all
|
60
|
+
end
|
61
|
+
resources :organ_domains
|
62
|
+
end
|
63
|
+
resources :departments do
|
64
|
+
collection do
|
65
|
+
get :supports
|
66
|
+
get :parents
|
67
|
+
get :my
|
68
|
+
get :search
|
69
|
+
get :filter
|
70
|
+
end
|
71
|
+
member do
|
72
|
+
get :need
|
73
|
+
end
|
74
|
+
resources :job_titles do
|
75
|
+
collection do
|
76
|
+
post 'department' => :create_department
|
77
|
+
end
|
78
|
+
member do
|
79
|
+
patch :move_lower
|
80
|
+
patch :move_higher
|
81
|
+
patch :reorder
|
82
|
+
end
|
83
|
+
end
|
84
|
+
resources :job_descriptions
|
85
|
+
end
|
86
|
+
resources :super_job_titles do
|
87
|
+
member do
|
88
|
+
patch :move_lower
|
89
|
+
patch :move_higher
|
90
|
+
patch :reorder
|
91
|
+
end
|
92
|
+
end
|
93
|
+
resources :members do
|
94
|
+
collection do
|
95
|
+
get :options
|
96
|
+
get :departments
|
97
|
+
get :leaders
|
98
|
+
patch :sync_all
|
99
|
+
get 'add_item/:item' => :add_item, as: :add_item
|
100
|
+
get 'remove_item/:item' => :remove_item, as: :remove_item
|
101
|
+
end
|
102
|
+
member do
|
103
|
+
get :profile
|
104
|
+
get :token
|
105
|
+
patch :mock
|
106
|
+
end
|
107
|
+
resources :member_departments do
|
108
|
+
collection do
|
109
|
+
get :options
|
110
|
+
end
|
111
|
+
member do
|
112
|
+
get 'options' => :member_options
|
113
|
+
end
|
114
|
+
end
|
115
|
+
resources :authorized_tokens
|
116
|
+
end
|
117
|
+
resources :supports do
|
118
|
+
collection do
|
119
|
+
get :departments
|
120
|
+
end
|
121
|
+
end
|
122
|
+
resources :tutorials do
|
123
|
+
collection do
|
124
|
+
get :my
|
125
|
+
end
|
126
|
+
end
|
127
|
+
resources :job_transfers do
|
128
|
+
member do
|
129
|
+
patch :trigger
|
130
|
+
end
|
131
|
+
collection do
|
132
|
+
get :my
|
133
|
+
end
|
134
|
+
end
|
135
|
+
resources :resigns do
|
136
|
+
collection do
|
137
|
+
get :my
|
138
|
+
get :charts
|
139
|
+
end
|
140
|
+
end
|
141
|
+
resources :resign_reasons do
|
142
|
+
collection do
|
143
|
+
get :parents
|
144
|
+
end
|
145
|
+
end
|
146
|
+
scope ':record_class/:record_column' do
|
147
|
+
resources :department_grants
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module RailsOrg
|
2
|
+
module DefaultForm
|
3
|
+
|
4
|
+
def collection_members_select(method, value_method, text_method, options = {}, html_options = {})
|
5
|
+
organ_handle = OrganHandle.find_by(record_class: object.class.base_class.name, record_column: method)
|
6
|
+
if organ_handle
|
7
|
+
job_title_ids = organ_handle.department_grants.default_where(organ_id: @template.current_organ&.id).pluck(:job_title_id)
|
8
|
+
collection = Member.select(:id, text_method).default_where('member_departments.job_title_id': job_title_ids)
|
9
|
+
else
|
10
|
+
collection = []
|
11
|
+
end
|
12
|
+
collection_select(method, collection, value_method, text_method, options, html_options)
|
13
|
+
end
|
14
|
+
|
15
|
+
::DefaultForm::FormBuilder.include self
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rails_com'
|
2
|
+
module RailsOrg
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
|
5
|
+
config.generators do |g|
|
6
|
+
g.rails = {
|
7
|
+
assets: false,
|
8
|
+
stylesheets: false,
|
9
|
+
helper: false
|
10
|
+
}
|
11
|
+
g.test_unit = {
|
12
|
+
fixture: true,
|
13
|
+
fixture_replacement: :factory_girl
|
14
|
+
}
|
15
|
+
g.templates.unshift File.expand_path('lib/templates', RailsCom::Engine.root)
|
16
|
+
end
|
17
|
+
|
18
|
+
end # :nodoc:
|
19
|
+
end
|
data/lib/rails_org.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class DepartmentJournalsControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@department_journal = department_journals(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get department_journals_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_department_journal_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create department_journal" do
|
19
|
+
assert_difference('DepartmentJournal.count') do
|
20
|
+
post department_journals_url, params: { department_journal: { } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to department_journal_url(DepartmentJournal.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show department_journal" do
|
27
|
+
get department_journal_url(@department_journal)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_department_journal_url(@department_journal)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update department_journal" do
|
37
|
+
patch department_journal_url(@department_journal), params: { department_journal: { } }
|
38
|
+
assert_redirected_to department_journal_url(@department_journal)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy department_journal" do
|
42
|
+
assert_difference('DepartmentJournal.count', -1) do
|
43
|
+
delete department_journal_url(@department_journal)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to department_journals_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class JobTransfersControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@job_transfer = job_transfers(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get job_transfers_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_job_transfer_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create job_transfer" do
|
19
|
+
assert_difference('JobTransfer.count') do
|
20
|
+
post job_transfers_url, params: { job_transfer: { } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to job_transfer_url(JobTransfer.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show job_transfer" do
|
27
|
+
get job_transfer_url(@job_transfer)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_job_transfer_url(@job_transfer)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update job_transfer" do
|
37
|
+
patch job_transfer_url(@job_transfer), params: { job_transfer: { } }
|
38
|
+
assert_redirected_to job_transfer_url(@job_transfer)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy job_transfer" do
|
42
|
+
assert_difference('JobTransfer.count', -1) do
|
43
|
+
delete job_transfer_url(@job_transfer)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to job_transfers_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class JournalTransfersControllerTest < ActionDispatch::IntegrationTest
|
4
|
+
setup do
|
5
|
+
@journal_transfer = journal_transfers(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get journal_transfers_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should get new" do
|
14
|
+
get new_journal_transfer_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test "should create journal_transfer" do
|
19
|
+
assert_difference('JournalTransfer.count') do
|
20
|
+
post journal_transfers_url, params: { journal_transfer: { } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_redirected_to journal_transfer_url(JournalTransfer.last)
|
24
|
+
end
|
25
|
+
|
26
|
+
test "should show journal_transfer" do
|
27
|
+
get journal_transfer_url(@journal_transfer)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test "should get edit" do
|
32
|
+
get edit_journal_transfer_url(@journal_transfer)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test "should update journal_transfer" do
|
37
|
+
patch journal_transfer_url(@journal_transfer), params: { journal_transfer: { } }
|
38
|
+
assert_redirected_to journal_transfer_url(@journal_transfer)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "should destroy journal_transfer" do
|
42
|
+
assert_difference('JournalTransfer.count', -1) do
|
43
|
+
delete journal_transfer_url(@journal_transfer)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_redirected_to journal_transfers_url
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
class Org::Admin::AuthorizedTokensControllerTest < ActionDispatch::IntegrationTest
|
3
|
+
|
4
|
+
setup do
|
5
|
+
@org_admin_authorized_token = create org_admin_authorized_tokens
|
6
|
+
end
|
7
|
+
|
8
|
+
test 'index ok' do
|
9
|
+
get admin_authorized_tokens_url
|
10
|
+
assert_response :success
|
11
|
+
end
|
12
|
+
|
13
|
+
test 'new ok' do
|
14
|
+
get new_admin_authorized_token_url
|
15
|
+
assert_response :success
|
16
|
+
end
|
17
|
+
|
18
|
+
test 'create ok' do
|
19
|
+
assert_difference('AuthorizedToken.count') do
|
20
|
+
post admin_authorized_tokens_url, params: { #{singular_table_name}: { #{attributes_string} } }
|
21
|
+
end
|
22
|
+
|
23
|
+
assert_response :success
|
24
|
+
end
|
25
|
+
|
26
|
+
test 'show ok' do
|
27
|
+
get admin_authorized_token_url(@org_admin_authorized_token)
|
28
|
+
assert_response :success
|
29
|
+
end
|
30
|
+
|
31
|
+
test 'edit ok' do
|
32
|
+
get edit_admin_authorized_token_url(@org_admin_authorized_token)
|
33
|
+
assert_response :success
|
34
|
+
end
|
35
|
+
|
36
|
+
test 'update ok' do
|
37
|
+
patch admin_authorized_token_url(@org_admin_authorized_token), params: { #{singular_table_name}: { #{attributes_string} } }
|
38
|
+
assert_response :success
|
39
|
+
end
|
40
|
+
|
41
|
+
test 'destroy ok' do
|
42
|
+
assert_difference('AuthorizedToken.count', -1) do
|
43
|
+
delete admin_authorized_token_url(@org_admin_authorized_token)
|
44
|
+
end
|
45
|
+
|
46
|
+
assert_response :success
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|