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,12 @@
|
|
1
|
+
<div class="ui top attached borderless menu">
|
2
|
+
<div class="right menu">
|
3
|
+
<div class="item">
|
4
|
+
<%= link_to t('org.admin.departments.new.title'), new_admin_department_path, class: 'ui mini teal primary button' %>
|
5
|
+
</div>
|
6
|
+
<div class="item">
|
7
|
+
<%= link_to t('.export'), find_data_list_table_lists_path('DepartmentExport', request.query_parameters), class: 'ui mini secondary button' %>
|
8
|
+
</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class="breadcrumb has-succeeds-separator">
|
2
|
+
<ul>
|
3
|
+
<li><%= link_to t('org.admin.departments.index.title'), { action: 'index' } %></li>
|
4
|
+
<% @department.ancestors.reverse.each do |ancestor| %>
|
5
|
+
<li><%= link_to ancestor.name, { action: 'show', id: ancestor.id } %></li>
|
6
|
+
<% end %>
|
7
|
+
<li class="is-active"><%= @department.name %></li>
|
8
|
+
</ul>
|
9
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<th><%= Member.human_attribute_name(:name) %></th>
|
2
|
+
<th><%= Member.human_attribute_name(:identity) %></th>
|
3
|
+
<th><%= Member.human_attribute_name(:job_titles) %></th>
|
4
|
+
<th><%= Member.human_attribute_name(:join_on) %></th>
|
5
|
+
<th>
|
6
|
+
<%= link_to new_admin_member_path(department_id: @department.id), class: 'button is-link is-small' do %>
|
7
|
+
<i class="fas fa-plus"></i><%= t('.new') %>
|
8
|
+
<% end %>
|
9
|
+
</th>
|
@@ -0,0 +1 @@
|
|
1
|
+
json.department @department, partial: 'department', as: :department
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<%= render layout: 'index_tree_table', locals: { cache_key: Org::Department.column_names.hash } do %>
|
2
|
+
<% @departments.each do |department| %>
|
3
|
+
<%= render partial: 'index_tbody', layout: 'index_tr', locals: { model: department, display: 'table-row' } %>
|
4
|
+
<%# 防止非新建下级按钮创建部门时无 parent_id 导致重复显示 %>
|
5
|
+
<% (department.inferiors - @departments).each do |inferior| %>
|
6
|
+
<%# 防止特殊情况下重复显示 %>
|
7
|
+
<% unless inferior.superior_id == inferior.parent_id %>
|
8
|
+
<%= render partial: 'index_tbody', layout: 'index_tr', object: inferior, locals: { model: inferior, display: 'table-row' } %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<%= paginate @departments %>
|
@@ -0,0 +1 @@
|
|
1
|
+
json.departments @departments, partial: 'department', as: :department
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<div class="ui segment breadcrumb">
|
2
|
+
<%= link_to 'Back', admin_departments_path, class: 'section' %>
|
3
|
+
<i class="fas fa-angle-right divider"></i>
|
4
|
+
<div class="active section">Edit</div>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<div class="ui segment">
|
8
|
+
<%= form_with model: @department, scope: :department, url: admin_department_path(@department), local: true do |f| %>
|
9
|
+
<%= f.number_field :needed_member %>
|
10
|
+
<%= f.submit %>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%= render 'filter_form' %>
|
2
|
+
<%= render 'filter_table' %>
|
3
|
+
|
4
|
+
<div class="columns">
|
5
|
+
<div class="column">
|
6
|
+
<table class="table is-hoverable is-fullwidth">
|
7
|
+
<thead>
|
8
|
+
<tr>
|
9
|
+
|
10
|
+
</tr>
|
11
|
+
</thead>
|
12
|
+
|
13
|
+
<tbody>
|
14
|
+
<% @members.each do |member| %>
|
15
|
+
<%= render partial: 'member', locals: { member: member } %>
|
16
|
+
<% end %>
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
|
20
|
+
<%= paginate @members %>
|
21
|
+
</div>
|
22
|
+
<div class="column is-narrow">
|
23
|
+
<%= render 'nav_show' %>
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%= render 'menu' %>
|
2
|
+
|
3
|
+
<div class="ui attached segment">
|
4
|
+
<%= render 'search_form' %>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<table class="ui bottom attached celled table">
|
8
|
+
<thead>
|
9
|
+
<tr>
|
10
|
+
<th><%= Department.human_attribute_name(:name) %></th>
|
11
|
+
<th><%= Department.human_attribute_name(:office) %></th>
|
12
|
+
<th><%= Department.human_attribute_name(:leader) %></th>
|
13
|
+
<% Department::SUPPORTS.each do |text| %>
|
14
|
+
<th><%= Department.human_attribute_name(text) %></th>
|
15
|
+
<% end %>
|
16
|
+
<th>Actions</th>
|
17
|
+
</tr>
|
18
|
+
</thead>
|
19
|
+
|
20
|
+
<tbody>
|
21
|
+
<% @departments.each do |department| %>
|
22
|
+
<%= render partial: 'department_support', locals: { node: department } %>
|
23
|
+
<%= draw_tree(department, partial: 'org/admin/departments/department_support') %>
|
24
|
+
<% end %>
|
25
|
+
</tbody>
|
26
|
+
</table>
|
27
|
+
|
28
|
+
<%= paginate @departments %>
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= render 'error_messages', target: f.object %>
|
2
|
+
<%= f.text_area :duties %>
|
3
|
+
<%= f.text_area :requirements %>
|
4
|
+
<%= f.text_area :advanced_requirements %>
|
5
|
+
<%= f.text_field :english_requirement %>
|
6
|
+
<%= f.text_field :degree_requirement %>
|
7
|
+
<%= f.number_field :salary_min %>
|
8
|
+
<%= f.number_field :salary_max %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<td><%= model.duties %></td>
|
2
|
+
<td><%= model.requirements %></td>
|
3
|
+
<td><%= model.advanced_requirements %></td>
|
4
|
+
<td><%= model.english_requirement %></td>
|
5
|
+
<td><%= model.degree_requirement %></td>
|
6
|
+
<td><%= model.salary_min %></td>
|
7
|
+
<td><%= model.salary_max %></td>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<th><%= Org::JobDescription.human_attribute_name(:duties) %></th>
|
2
|
+
<th><%= Org::JobDescription.human_attribute_name(:requirements) %></th>
|
3
|
+
<th><%= Org::JobDescription.human_attribute_name(:advanced_requirements) %></th>
|
4
|
+
<th><%= Org::JobDescription.human_attribute_name(:english_requirement) %></th>
|
5
|
+
<th><%= Org::JobDescription.human_attribute_name(:degree_requirement) %></th>
|
6
|
+
<th><%= Org::JobDescription.human_attribute_name(:salary_min) %></th>
|
7
|
+
<th><%= Org::JobDescription.human_attribute_name(:salary_max) %></th>
|
8
|
+
<th></th>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<div class="breadcrumb has-succeeds-separator">
|
2
|
+
<ul>
|
3
|
+
<li><%= link_to t('org.admin.departments.index.title'), { controller: 'departments' } %></li>
|
4
|
+
<li><%= link_to @department.name, { controller: 'departments', action: 'show', id: params[:department_id] } %></li>
|
5
|
+
<li class="is-active"><%= t('.title') %></li>
|
6
|
+
</ul>
|
7
|
+
</div>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<th>
|
2
|
+
<%= Org::JobTitle.human_attribute_name(:grade) %>
|
3
|
+
<span data-tooltip="<%= Org::JobTitle.help_i18n(:grade) %>"><i class="grey question circle icon"></i></span>
|
4
|
+
</th>
|
5
|
+
<th><%= Org::JobTitle.human_attribute_name(:name) %></th>
|
6
|
+
<th><%= Org::JobTitle.human_attribute_name(:description) %></th>
|
7
|
+
<th><%= Org::JobTitle.human_attribute_name(:department_id) %></th>
|
8
|
+
<th><%= Org::JobTitle.human_attribute_name(:role_ids) %></th>
|
9
|
+
<th></th>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<tr>
|
2
|
+
<td>
|
3
|
+
<%= job_title.grade %>
|
4
|
+
<%= button_to({ action: 'move_lower', id: job_title }, method: :patch) do %>
|
5
|
+
<i class="fas fa-arrow-down"></i>
|
6
|
+
<% end %>
|
7
|
+
<%= button_to({ action: 'move_higher', id: job_title }, method: :patch) do %>
|
8
|
+
<i class="fas fa-arrow-up"></i>
|
9
|
+
<% end %>
|
10
|
+
</td>
|
11
|
+
<td><%= job_title.name %></td>
|
12
|
+
<td><%= job_title.description %></td>
|
13
|
+
<td data-controller="input">
|
14
|
+
<% if job_title.department_id == @department.id %>
|
15
|
+
<span><%= job_title.department.full_name %></span>
|
16
|
+
<% elsif job_title.department %>
|
17
|
+
<%= link_to job_title.department.full_name, admin_department_job_titles_path(job_title.department_id) %>
|
18
|
+
<% else %>
|
19
|
+
<%= link_to t('org.admin.job_titles.index.title'), admin_super_job_titles_path %>
|
20
|
+
<% end %>
|
21
|
+
</td>
|
22
|
+
<td>
|
23
|
+
<div>
|
24
|
+
<% job_title.roles.pluck(:name).each do |role| %>
|
25
|
+
<span><%= role %></span>
|
26
|
+
<% end %>
|
27
|
+
<%= link_to({ controller: 'roled/admin/who_roles', action: 'edit', who_type: 'JobTitle', who_id: job_title.id }, aria: { label: t('roled.admin.who_roles.edit.title') }) do %>
|
28
|
+
<i class="fas fa-user-shield"></i>
|
29
|
+
<% end %>
|
30
|
+
</div>
|
31
|
+
</td>
|
32
|
+
<td data-controller="input">
|
33
|
+
<% if job_title.department_id == @department.id %>
|
34
|
+
<%= link_to({ action: 'edit', id: job_title.id }, data: { turbo_frame: 'modal' }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %>
|
35
|
+
<i class="fas fa-pencil-alt"></i>
|
36
|
+
<% end %>
|
37
|
+
<% end %>
|
38
|
+
<% if job_title.super_job_title %>
|
39
|
+
<%= form_with theme: nil, scope: nil, url: { action: 'destroy', id: job_title.id }, method: :delete, data: { controller: 'input' } do |f| %>
|
40
|
+
<%= f.check_box :department_id, checked: true, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
|
41
|
+
<label data-action="click->input#check"></label>
|
42
|
+
<% end %>
|
43
|
+
<% else %>
|
44
|
+
<%= button_to({ action: 'destroy', id: job_title.id }, method: :delete, aria: { label: t('.destroy') }, data: { confirm: t('.confirm') }, class: 'button is-small is-rounded is-light') do %>
|
45
|
+
<i class="fas fa-trash-alt"></i>
|
46
|
+
<% end %>
|
47
|
+
<% end %>
|
48
|
+
</td>
|
49
|
+
</tr>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<tr>
|
2
|
+
<td class="has-text-right"><%= Org::JobTitle.human_attribute_name(:department) %></td>
|
3
|
+
<td><%= @job_title.department.name %></td>
|
4
|
+
</tr>
|
5
|
+
<tr>
|
6
|
+
<td class="has-text-right"><%= Org::JobTitle.human_attribute_name(:name) %></td>
|
7
|
+
<td><%= @job_title.name %></td>
|
8
|
+
</tr>
|
9
|
+
<tr>
|
10
|
+
<td class="has-text-right"><%= Org::JobTitle.human_attribute_name(:grade) %></td>
|
11
|
+
<td><%= @job_title.grade %></td>
|
12
|
+
</tr>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<tr>
|
2
|
+
<td><%= super_job_title.grade %></td>
|
3
|
+
<td><%= super_job_title.name %></td>
|
4
|
+
<td><%= super_job_title.description %></td>
|
5
|
+
<td></td>
|
6
|
+
<td></td>
|
7
|
+
<td>
|
8
|
+
<%= form_with theme: nil, scope: nil, url: { action: 'create_department' }, data: { controller: 'input' } do |f| %>
|
9
|
+
<%= f.hidden_field :super_job_title_id, value: super_job_title.id %>
|
10
|
+
<%= f.check_box :department_id, value: @department.id, checked: false, data: { input_target: 'checkbox' }, id: nil, class: 'switch is-rounded' %>
|
11
|
+
<label data-action="click->input#check"></label>
|
12
|
+
<% end %>
|
13
|
+
</td>
|
14
|
+
</tr>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<%= render layout: 'index_table', locals: { cache_key: Org::JobTitle.column_names.hash } do %>
|
2
|
+
<%= render partial: 'super_job_titles', collection: @super_job_titles, as: :super_job_title %>
|
3
|
+
<%= render partial: 'job_titles', collection: @job_titles, as: :job_title %>
|
4
|
+
<% end %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<table class="as-search">
|
2
|
+
<tr>
|
3
|
+
<th><%= JobTransfer.human_attribute_name(:state) %></th>
|
4
|
+
<td>
|
5
|
+
<%= link_to t('.all'), filter_params(except: [:state]), class: active_params(state: '', active: 'button is-info', item: 'button is-light') %>
|
6
|
+
<% JobTransfer.states.keys.each do |state| %>
|
7
|
+
<%= link_to JobTransfer.enum_i18n(:state, state), filter_params(state: state), class: active_params(state: state, active: 'button is-info', item: 'button is-light') %>
|
8
|
+
<% end %>
|
9
|
+
</td>
|
10
|
+
</tr>
|
11
|
+
</table>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= render 'error_messages', target: @job_transfer %>
|
2
|
+
<%= f.collection_select :to_office_id, Office.all, :id, :name, prompt: true, required: true %>
|
3
|
+
<%= render partial: 'com/nodes/outer_select', locals: { f: f, outer: 'to_department', class_name: 'Department' } %>
|
4
|
+
<%= f.date_field :transfer_on, required: true %>
|
5
|
+
<%= f.text_area :reason_note, required: true %>
|
6
|
+
<%= f.select :state, options_for_select(JobTransfer.options_i18n(:state), @job_transfer.state) %>
|
7
|
+
<%= f.text_area :comment %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<tr>
|
2
|
+
<td><%= job_transfer.member.name %></td>
|
3
|
+
<td>
|
4
|
+
<p><%= job_transfer.from_office&.name %></p>
|
5
|
+
<p><%= job_transfer.from_department&.full_name %></p>
|
6
|
+
<p><%= job_transfer.from_job_title&.name %></p>
|
7
|
+
</td>
|
8
|
+
<td>
|
9
|
+
<p><%= job_transfer.to_office&.name %></p>
|
10
|
+
<p><%= job_transfer.to_department&.full_name %></p>
|
11
|
+
<p><%= job_transfer.to_job_title&.name %></p>
|
12
|
+
</td>
|
13
|
+
<td><%= job_transfer.transfer_on %></td>
|
14
|
+
<td>
|
15
|
+
<label class="ui label"><%= job_transfer.state_i18n %></label>
|
16
|
+
<% if job_transfer.next_operator == current_user %>
|
17
|
+
<div class="ui mini buttons">
|
18
|
+
<%= link_to 'Approve', new_check_path(JobTransfer.name, job_transfer.id, state: job_transfer.next_state_state), class: 'ui positive button' %>
|
19
|
+
<div class="or"></div>
|
20
|
+
<%= link_to 'Reject', new_check_path(JobTransfer.name, job_transfer.id, state: JobTransfer.states[:rejected]), class: 'ui negative button' %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
</td>
|
24
|
+
<td class="ui labels">
|
25
|
+
<%= link_to 'Detail', admin_job_transfer_path(job_transfer), class: 'ui blue label' %>
|
26
|
+
<%= link_to 'Edit', edit_admin_job_transfer_path(job_transfer), class: 'ui pink label' %>
|
27
|
+
<%= link_to t('.destroy'), admin_job_transfer_path(job_transfer), method: :delete, data: { confirm: t('.confirm') }, class: 'ui red label' %>
|
28
|
+
</td>
|
29
|
+
</tr>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<div class="ui segment breadcrumb">
|
2
|
+
<%= link_to 'Back', admin_job_transfers_path, class: 'section' %>
|
3
|
+
<i class="fas fa-angle-right divider"></i>
|
4
|
+
<div class="active section">Show</div>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<table class="table is-hoverable is-fullwidth">
|
8
|
+
<thead>
|
9
|
+
<tr>
|
10
|
+
<th class="three wide"></th>
|
11
|
+
<th></th>
|
12
|
+
</tr>
|
13
|
+
</thead>
|
14
|
+
<tbody>
|
15
|
+
<tr>
|
16
|
+
<td class="has-text-right"><%= JobTransfer.human_attribute_name(:member) %></td>
|
17
|
+
<td><%= @job_transfer.member.name %></td>
|
18
|
+
</tr>
|
19
|
+
<tr>
|
20
|
+
<td class="has-text-right">From</td>
|
21
|
+
<td><p><%= @job_transfer.from_office&.name %></p>
|
22
|
+
<p><%= @job_transfer.from_department&.full_name %></p>
|
23
|
+
<p><%= @job_transfer.from_job_title&.name %></p></td>
|
24
|
+
</tr>
|
25
|
+
<tr>
|
26
|
+
<td class="has-text-right">To</td>
|
27
|
+
<td><p><%= @job_transfer.to_office&.name %></p>
|
28
|
+
<p><%= @job_transfer.to_department&.full_name %></p>
|
29
|
+
<p><%= @job_transfer.to_job_title&.name %></p></td>
|
30
|
+
</tr>
|
31
|
+
<tr>
|
32
|
+
<td class="has-text-right">Detail</td>
|
33
|
+
<td><%= @job_transfer.reason_note %></td>
|
34
|
+
</tr>
|
35
|
+
<tr>
|
36
|
+
<td class="has-text-right"><%= JobTransfer.human_attribute_name(:transfer_on) %></td>
|
37
|
+
<td><%= @job_transfer.transfer_on %></td>
|
38
|
+
</tr>
|
39
|
+
<tr>
|
40
|
+
<td class="has-text-right"><%= JobTransfer.human_attribute_name(:state) %></td>
|
41
|
+
<td><%= @job_transfer.state_i18n %></td>
|
42
|
+
</tr>
|
43
|
+
<tr>
|
44
|
+
<td class="has-text-right"><%= JobTransfer.human_attribute_name(:created_at) %></td>
|
45
|
+
<td><time data-controller="time"><%= @job_transfer.created_at&.to_s(:rfc822) %></time></td>
|
46
|
+
</tr>
|
47
|
+
<tr><td></td>
|
48
|
+
<td>
|
49
|
+
<%= link_to 'Edit', edit_admin_job_transfer_path(@job_transfer), class: 'ui pink label' %>
|
50
|
+
<%= link_to t('.destroy'), admin_job_transfer_path(@job_transfer), method: :delete, data: { confirm: t('.confirm') }, class: 'ui red label' %>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
</tbody>
|
54
|
+
</table>
|