gaku 0.2.4 → 0.3.0.pre.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +66 -0
- data/VERSION +1 -1
- data/bin/.gaku.swp +0 -0
- data/bin/gaku +91 -0
- data/common_gaku_dependencies.rb +3 -2
- data/common_gaku_gemspec_mixin.rb +2 -4
- data/docker-compose.yml +30 -0
- data/gaku.gemspec +23 -8
- data/lib/gaku.rb +3 -2
- data/lib/gaku/container.rb +39 -0
- data/wait-for-it.sh +177 -0
- metadata +24 -1670
- data/.gitignore +0 -88
- data/.hound.yml +0 -36
- data/.rspec +0 -2
- data/.rubocop.yml +0 -36
- data/.travis.yml +0 -44
- data/LICENSE.md +0 -19
- data/README.md +0 -203
- data/admin/.rspec +0 -2
- data/admin/Gemfile +0 -7
- data/admin/Guardfile +0 -40
- data/admin/Rakefile +0 -17
- data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.eot +0 -0
- data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.svg +0 -228
- data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.ttf +0 -0
- data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.woff +0 -0
- data/admin/app/assets/javascripts/gaku/admin.js.coffee +0 -49
- data/admin/app/assets/javascripts/gaku/admin/admin.coffee +0 -51
- data/admin/app/assets/javascripts/gaku/admin/base.js.coffee +0 -138
- data/admin/app/assets/javascripts/gaku/admin/slide.js.erb +0 -14
- data/admin/app/assets/stylesheets/gaku/admin.css +0 -12
- data/admin/app/assets/stylesheets/gaku/admin/bootstrap_and_theme.css.scss +0 -586
- data/admin/app/assets/stylesheets/gaku/admin/disposals.css.scss +0 -14
- data/admin/app/assets/stylesheets/gaku/admin/gaku.css.scss +0 -216
- data/admin/app/assets/templates/roster.xls +0 -0
- data/admin/app/controllers/concerns/admin_picture_controller.rb +0 -28
- data/admin/app/controllers/gaku/admin/attendance_types_controller.rb +0 -60
- data/admin/app/controllers/gaku/admin/badge_types_controller.rb +0 -62
- data/admin/app/controllers/gaku/admin/base_controller.rb +0 -43
- data/admin/app/controllers/gaku/admin/campuses/addresses_controller.rb +0 -60
- data/admin/app/controllers/gaku/admin/campuses/contacts_controller.rb +0 -73
- data/admin/app/controllers/gaku/admin/campuses_controller.rb +0 -68
- data/admin/app/controllers/gaku/admin/commute_method_types_controller.rb +0 -55
- data/admin/app/controllers/gaku/admin/contact_types_controller.rb +0 -55
- data/admin/app/controllers/gaku/admin/departments_controller.rb +0 -55
- data/admin/app/controllers/gaku/admin/enrollment_statuses_controller.rb +0 -59
- data/admin/app/controllers/gaku/admin/grading_method_sets/grading_method_set_items_controller.rb +0 -70
- data/admin/app/controllers/gaku/admin/grading_method_sets_controller.rb +0 -69
- data/admin/app/controllers/gaku/admin/grading_methods_controller.rb +0 -61
- data/admin/app/controllers/gaku/admin/home_controller.rb +0 -11
- data/admin/app/controllers/gaku/admin/presets_controller.rb +0 -90
- data/admin/app/controllers/gaku/admin/roles_controller.rb +0 -55
- data/admin/app/controllers/gaku/admin/school_years/semesters_controller.rb +0 -57
- data/admin/app/controllers/gaku/admin/school_years_controller.rb +0 -59
- data/admin/app/controllers/gaku/admin/schools/programs_controller.rb +0 -86
- data/admin/app/controllers/gaku/admin/schools_controller.rb +0 -87
- data/admin/app/controllers/gaku/admin/simple_grade_types_controller.rb +0 -71
- data/admin/app/controllers/gaku/admin/specialties_controller.rb +0 -60
- data/admin/app/controllers/gaku/admin/states_controller.rb +0 -92
- data/admin/app/controllers/gaku/admin/states_list_controller.rb +0 -20
- data/admin/app/controllers/gaku/admin/student_review_categories_controller.rb +0 -57
- data/admin/app/controllers/gaku/admin/system_tools_controller.rb +0 -8
- data/admin/app/controllers/gaku/admin/templates_controller.rb +0 -69
- data/admin/app/controllers/gaku/admin/users_controller.rb +0 -80
- data/admin/app/helpers/gaku/admin_helper.rb +0 -27
- data/admin/app/helpers/gaku/presets_helper.rb +0 -10
- data/admin/app/helpers/gaku/shared_helper.rb +0 -35
- data/admin/app/overrides/admin_menu.rb +0 -7
- data/admin/app/views/gaku/admin/attendance_types/_attendance_type.html.slim +0 -2
- data/admin/app/views/gaku/admin/attendance_types/_attendance_types.html.slim +0 -25
- data/admin/app/views/gaku/admin/attendance_types/_fields.html.slim +0 -9
- data/admin/app/views/gaku/admin/attendance_types/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/attendance_types/_form_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/attendance_types/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/attendance_types/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/attendance_types/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/attendance_types/edit.js.erb +0 -4
- data/admin/app/views/gaku/admin/attendance_types/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/attendance_types/index.json.rb +0 -1
- data/admin/app/views/gaku/admin/attendance_types/new.js.erb +0 -4
- data/admin/app/views/gaku/admin/attendance_types/update.js.erb +0 -4
- data/admin/app/views/gaku/admin/badge_types/_badge_type.html.slim +0 -2
- data/admin/app/views/gaku/admin/badge_types/_badge_types.html.slim +0 -23
- data/admin/app/views/gaku/admin/badge_types/_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/badge_types/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/badge_types/_form_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/badge_types/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/badge_types/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/badge_types/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/badge_types/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/badge_types/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/badge_types/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/badge_types/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/campuses/_campus.html.slim +0 -4
- data/admin/app/views/gaku/admin/campuses/_campuses.html.slim +0 -21
- data/admin/app/views/gaku/admin/campuses/_edit_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/campuses/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/campuses/_form_fields.html.slim +0 -1
- data/admin/app/views/gaku/admin/campuses/addresses/_address.html.slim +0 -6
- data/admin/app/views/gaku/admin/campuses/addresses/_address_row_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/campuses/addresses/_addresses.html.slim +0 -23
- data/admin/app/views/gaku/admin/campuses/addresses/_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/campuses/addresses/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/campuses/addresses/_form_fields.html.slim +0 -25
- data/admin/app/views/gaku/admin/campuses/addresses/_modal.html.slim +0 -5
- data/admin/app/views/gaku/admin/campuses/addresses/create.js.erb +0 -6
- data/admin/app/views/gaku/admin/campuses/addresses/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/campuses/addresses/edit.js.erb +0 -4
- data/admin/app/views/gaku/admin/campuses/addresses/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/campuses/addresses/new.js.erb +0 -4
- data/admin/app/views/gaku/admin/campuses/addresses/update.js.erb +0 -4
- data/admin/app/views/gaku/admin/campuses/contacts/_contact.html.slim +0 -3
- data/admin/app/views/gaku/admin/campuses/contacts/_contacts.html.slim +0 -22
- data/admin/app/views/gaku/admin/campuses/contacts/_delete_link.html.slim +0 -1
- data/admin/app/views/gaku/admin/campuses/contacts/_fields.html.slim +0 -11
- data/admin/app/views/gaku/admin/campuses/contacts/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/campuses/contacts/_form_fields.html.slim +0 -14
- data/admin/app/views/gaku/admin/campuses/contacts/_modal.html.slim +0 -5
- data/admin/app/views/gaku/admin/campuses/contacts/_primary_field.html.slim +0 -6
- data/admin/app/views/gaku/admin/campuses/contacts/create.js.erb +0 -20
- data/admin/app/views/gaku/admin/campuses/contacts/destroy.js.erb +0 -8
- data/admin/app/views/gaku/admin/campuses/contacts/edit.js.erb +0 -4
- data/admin/app/views/gaku/admin/campuses/contacts/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/campuses/contacts/make_primary.js.erb +0 -6
- data/admin/app/views/gaku/admin/campuses/contacts/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/campuses/contacts/soft_delete.js.erb +0 -8
- data/admin/app/views/gaku/admin/campuses/contacts/update.js.erb +0 -14
- data/admin/app/views/gaku/admin/campuses/create.js.erb +0 -9
- data/admin/app/views/gaku/admin/campuses/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/campuses/edit.html.slim +0 -34
- data/admin/app/views/gaku/admin/campuses/edit.js.erb +0 -1
- data/admin/app/views/gaku/admin/campuses/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/campuses/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/campuses/update.js.erb +0 -2
- data/admin/app/views/gaku/admin/commute_method_types/_commute_method_type.html.slim +0 -2
- data/admin/app/views/gaku/admin/commute_method_types/_commute_method_types.html.slim +0 -18
- data/admin/app/views/gaku/admin/commute_method_types/_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/commute_method_types/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/commute_method_types/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/commute_method_types/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/commute_method_types/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/commute_method_types/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/commute_method_types/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/commute_method_types/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/commute_method_types/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/contact_types/_contact_type.html.slim +0 -2
- data/admin/app/views/gaku/admin/contact_types/_contact_types.html.slim +0 -18
- data/admin/app/views/gaku/admin/contact_types/_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/contact_types/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/contact_types/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/contact_types/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/contact_types/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/contact_types/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/contact_types/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/contact_types/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/contact_types/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/departments/_department.html.slim +0 -2
- data/admin/app/views/gaku/admin/departments/_departments.html.slim +0 -21
- data/admin/app/views/gaku/admin/departments/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/departments/_form_fields.html.slim +0 -1
- data/admin/app/views/gaku/admin/departments/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/departments/_table_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/departments/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/departments/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/departments/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/departments/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/departments/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/departments/update.js.erb +0 -4
- data/admin/app/views/gaku/admin/enrollment_statuses/_enrollment_status.html.slim +0 -2
- data/admin/app/views/gaku/admin/enrollment_statuses/_enrollment_statuses.html.slim +0 -20
- data/admin/app/views/gaku/admin/enrollment_statuses/_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/enrollment_statuses/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/enrollment_statuses/_form_fields.html.slim +0 -3
- data/admin/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/enrollment_statuses/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/enrollment_statuses/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/enrollment_statuses/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/enrollment_statuses/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/enrollment_statuses/update.js.erb +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/_fields.html.slim +0 -9
- data/admin/app/views/gaku/admin/grading_method_sets/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/_form_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/_grading_method_set.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/_grading_method_sets.html.slim +0 -24
- data/admin/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/_show.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/grading_method_sets/destroy.js.erb +0 -7
- data/admin/app/views/gaku/admin/grading_method_sets/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_fields.html.slim +0 -9
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form_fields.html.slim +0 -1
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_item.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +0 -23
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/grading_method_sets/make_primary.js.erb +0 -6
- data/admin/app/views/gaku/admin/grading_method_sets/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_method_sets/show.js.erb +0 -1
- data/admin/app/views/gaku/admin/grading_method_sets/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_methods/_criteria_form_fields.html.slim +0 -19
- data/admin/app/views/gaku/admin/grading_methods/_criteria_template.html.slim +0 -11
- data/admin/app/views/gaku/admin/grading_methods/_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/grading_methods/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/grading_methods/_form_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/grading_methods/_grading_method.html.slim +0 -2
- data/admin/app/views/gaku/admin/grading_methods/_grading_methods.html.slim +0 -21
- data/admin/app/views/gaku/admin/grading_methods/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/grading_methods/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/grading_methods/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/grading_methods/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_methods/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/grading_methods/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/grading_methods/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/home/index.html.slim +0 -6
- data/admin/app/views/gaku/admin/presets/_address.html.slim +0 -22
- data/admin/app/views/gaku/admin/presets/_chooser_fields.html.slim +0 -91
- data/admin/app/views/gaku/admin/presets/_export_formats.html.slim +0 -20
- data/admin/app/views/gaku/admin/presets/_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/presets/_grading.html.slim +0 -15
- data/admin/app/views/gaku/admin/presets/_locale.html.slim +0 -6
- data/admin/app/views/gaku/admin/presets/_names_order.html.slim +0 -15
- data/admin/app/views/gaku/admin/presets/_no_states_select.html.slim +0 -1
- data/admin/app/views/gaku/admin/presets/_pagination.html.slim +0 -26
- data/admin/app/views/gaku/admin/presets/_person.html.slim +0 -9
- data/admin/app/views/gaku/admin/presets/_preset.html.slim +0 -2
- data/admin/app/views/gaku/admin/presets/_presets.html.slim +0 -19
- data/admin/app/views/gaku/admin/presets/_states_select.html.slim +0 -3
- data/admin/app/views/gaku/admin/presets/_student.html.slim +0 -19
- data/admin/app/views/gaku/admin/presets/_tabs.html.slim +0 -50
- data/admin/app/views/gaku/admin/presets/edit.html.slim +0 -1
- data/admin/app/views/gaku/admin/presets/edit.js.erb +0 -7
- data/admin/app/views/gaku/admin/presets/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/presets/states_list.js.erb +0 -5
- data/admin/app/views/gaku/admin/presets/update.js.erb +0 -1
- data/admin/app/views/gaku/admin/roles/_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/roles/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/roles/_form_fields.html.slim +0 -1
- data/admin/app/views/gaku/admin/roles/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/roles/_role.html.slim +0 -2
- data/admin/app/views/gaku/admin/roles/_roles.html.slim +0 -21
- data/admin/app/views/gaku/admin/roles/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/roles/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/roles/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/roles/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/roles/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/roles/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/school_years/_edit_form.html.slim +0 -4
- data/admin/app/views/gaku/admin/school_years/_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/school_years/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/school_years/_form_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/school_years/_modal.html.slim +0 -5
- data/admin/app/views/gaku/admin/school_years/_school_year.html.slim +0 -3
- data/admin/app/views/gaku/admin/school_years/_school_years.html.slim +0 -23
- data/admin/app/views/gaku/admin/school_years/_show_table.html.slim +0 -10
- data/admin/app/views/gaku/admin/school_years/create.js.erb +0 -10
- data/admin/app/views/gaku/admin/school_years/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/school_years/edit.html.slim +0 -20
- data/admin/app/views/gaku/admin/school_years/edit.js.erb +0 -7
- data/admin/app/views/gaku/admin/school_years/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/school_years/new.js.erb +0 -5
- data/admin/app/views/gaku/admin/school_years/semesters/_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/school_years/semesters/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/school_years/semesters/_modal.html.slim +0 -5
- data/admin/app/views/gaku/admin/school_years/semesters/_semester.html.slim +0 -3
- data/admin/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +0 -22
- data/admin/app/views/gaku/admin/school_years/semesters/create.js.erb +0 -10
- data/admin/app/views/gaku/admin/school_years/semesters/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/school_years/semesters/edit.js.erb +0 -6
- data/admin/app/views/gaku/admin/school_years/semesters/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/school_years/semesters/new.js.erb +0 -4
- data/admin/app/views/gaku/admin/school_years/semesters/update.js.erb +0 -8
- data/admin/app/views/gaku/admin/school_years/update.js.erb +0 -8
- data/admin/app/views/gaku/admin/schools/_edit_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/schools/_edit_master_form.html.slim +0 -10
- data/admin/app/views/gaku/admin/schools/_fields.html.slim +0 -9
- data/admin/app/views/gaku/admin/schools/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/schools/_form_fields.html.slim +0 -25
- data/admin/app/views/gaku/admin/schools/_school.html.slim +0 -8
- data/admin/app/views/gaku/admin/schools/_schools.html.slim +0 -26
- data/admin/app/views/gaku/admin/schools/_show_table.html.slim +0 -35
- data/admin/app/views/gaku/admin/schools/_tabs.html.slim +0 -15
- data/admin/app/views/gaku/admin/schools/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/schools/destroy.js.erb +0 -1
- data/admin/app/views/gaku/admin/schools/edit.html.slim +0 -42
- data/admin/app/views/gaku/admin/schools/edit.js.erb +0 -1
- data/admin/app/views/gaku/admin/schools/edit_master.html.slim +0 -42
- data/admin/app/views/gaku/admin/schools/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/schools/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/_fields.html.slim +0 -9
- data/admin/app/views/gaku/admin/schools/programs/_form.html.slim +0 -14
- data/admin/app/views/gaku/admin/schools/programs/_form_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/schools/programs/_modal.html.slim +0 -3
- data/admin/app/views/gaku/admin/schools/programs/_program.html.slim +0 -2
- data/admin/app/views/gaku/admin/schools/programs/_programs.html.slim +0 -23
- data/admin/app/views/gaku/admin/schools/programs/create.js.erb +0 -8
- data/admin/app/views/gaku/admin/schools/programs/destroy.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/schools/programs/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +0 -6
- data/admin/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +0 -11
- data/admin/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +0 -10
- data/admin/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +0 -10
- data/admin/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/programs/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/schools/update.js.erb +0 -1
- data/admin/app/views/gaku/admin/shared/_ajax_picture.html.slim +0 -8
- data/admin/app/views/gaku/admin/shared/_ajax_upload_picture.html.slim +0 -14
- data/admin/app/views/gaku/admin/shared/_picture.html.slim +0 -6
- data/admin/app/views/gaku/admin/shared/_upload_picture.html.slim +0 -7
- data/admin/app/views/gaku/admin/shared/remove_picture.js.erb +0 -3
- data/admin/app/views/gaku/admin/shared/set_picture.js.erb +0 -3
- data/admin/app/views/gaku/admin/simple_grade_types/_fields.html.slim +0 -8
- data/admin/app/views/gaku/admin/simple_grade_types/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/simple_grade_types/_form_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/simple_grade_types/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/simple_grade_types/_simple_grade_type.html.slim +0 -2
- data/admin/app/views/gaku/admin/simple_grade_types/_simple_grade_types.html.slim +0 -24
- data/admin/app/views/gaku/admin/simple_grade_types/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/simple_grade_types/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/simple_grade_types/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/simple_grade_types/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/simple_grade_types/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/simple_grade_types/update.js.erb +0 -4
- data/admin/app/views/gaku/admin/specialties/_fields.html.slim +0 -7
- data/admin/app/views/gaku/admin/specialties/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/specialties/_form_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/specialties/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/specialties/_specialties.html.slim +0 -22
- data/admin/app/views/gaku/admin/specialties/_specialty.html.slim +0 -2
- data/admin/app/views/gaku/admin/specialties/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/specialties/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/specialties/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/specialties/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/specialties/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/specialties/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/states/_country_select_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/states/_country_table.html.slim +0 -11
- data/admin/app/views/gaku/admin/states/_fields.html.slim +0 -8
- data/admin/app/views/gaku/admin/states/_form.html.slim +0 -4
- data/admin/app/views/gaku/admin/states/_form_fields.html.slim +0 -14
- data/admin/app/views/gaku/admin/states/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/states/_state.html.slim +0 -2
- data/admin/app/views/gaku/admin/states/_states.html.slim +0 -16
- data/admin/app/views/gaku/admin/states/country_states.js.erb +0 -2
- data/admin/app/views/gaku/admin/states/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/states/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/states/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/states/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/states/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/states/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/states_list/_no_states_select.html.slim +0 -4
- data/admin/app/views/gaku/admin/states_list/_states_select.html.slim +0 -3
- data/admin/app/views/gaku/admin/states_list/index.js.erb +0 -5
- data/admin/app/views/gaku/admin/student_review_categories/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/student_review_categories/_form_fields.html.slim +0 -1
- data/admin/app/views/gaku/admin/student_review_categories/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/student_review_categories/_student_review_categories.html.slim +0 -18
- data/admin/app/views/gaku/admin/student_review_categories/_student_review_category.html.slim +0 -2
- data/admin/app/views/gaku/admin/student_review_categories/_table_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/student_review_categories/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/student_review_categories/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/student_review_categories/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/student_review_categories/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/student_review_categories/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/student_review_categories/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/system_tools/index.html.slim +0 -1
- data/admin/app/views/gaku/admin/templates/_error_msg.html.slim +0 -8
- data/admin/app/views/gaku/admin/templates/_fields.html.slim +0 -8
- data/admin/app/views/gaku/admin/templates/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/templates/_form_fields.html.slim +0 -4
- data/admin/app/views/gaku/admin/templates/_modal.html.slim +0 -7
- data/admin/app/views/gaku/admin/templates/_template.html.slim +0 -2
- data/admin/app/views/gaku/admin/templates/_templates.html.slim +0 -21
- data/admin/app/views/gaku/admin/templates/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/templates/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/templates/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/templates/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/templates/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/templates/update.js.erb +0 -3
- data/admin/app/views/gaku/admin/users/_fields.html.slim +0 -5
- data/admin/app/views/gaku/admin/users/_form.html.slim +0 -3
- data/admin/app/views/gaku/admin/users/_form_fields.html.slim +0 -14
- data/admin/app/views/gaku/admin/users/_modal.html.slim +0 -4
- data/admin/app/views/gaku/admin/users/_user.html.slim +0 -2
- data/admin/app/views/gaku/admin/users/_users.html.slim +0 -22
- data/admin/app/views/gaku/admin/users/create.js.erb +0 -7
- data/admin/app/views/gaku/admin/users/destroy.js.erb +0 -2
- data/admin/app/views/gaku/admin/users/edit.js.erb +0 -3
- data/admin/app/views/gaku/admin/users/index.js.erb +0 -1
- data/admin/app/views/gaku/admin/users/new.js.erb +0 -3
- data/admin/app/views/gaku/admin/users/update.js.erb +0 -4
- data/admin/app/views/gaku/layouts/admin/edit.html.slim +0 -10
- data/admin/app/views/gaku/layouts/admin/gaku.html.slim +0 -27
- data/admin/app/views/gaku/layouts/admin/index.html.slim +0 -11
- data/admin/app/views/gaku/layouts/admin/show.html.slim +0 -10
- data/admin/app/views/gaku/shared/_delete_link.html.slim +0 -1
- data/admin/app/views/gaku/shared/_delete_modal.html.slim +0 -11
- data/admin/app/views/gaku/shared/_errors.html.slim +0 -6
- data/admin/app/views/gaku/shared/_flash.html.slim +0 -4
- data/admin/app/views/gaku/shared/_language_bar.html.slim +0 -8
- data/admin/app/views/gaku/shared/_login_widget.html.slim +0 -15
- data/admin/app/views/gaku/shared/_manage_buttons.html.slim +0 -4
- data/admin/app/views/gaku/shared/_modal_config.html.slim +0 -37
- data/admin/app/views/gaku/shared/_multi_errors.html.slim +0 -6
- data/admin/app/views/gaku/shared/_picture.html.slim +0 -8
- data/admin/app/views/gaku/shared/_upload_picture.html.slim +0 -7
- data/admin/app/views/gaku/shared/error.js.erb +0 -2
- data/admin/app/views/gaku/shared/menu/_admin.html.erb +0 -1
- data/admin/app/views/gaku/shared/menu/_admin_menu.html.erb +0 -154
- data/admin/app/views/gaku/shared/multi_error.js.erb +0 -2
- data/admin/app/views/gaku/shared/notice.js.erb +0 -2
- data/admin/config/initializers/wrap_parameters.rb +0 -14
- data/admin/config/routes.rb +0 -79
- data/admin/gaku_admin.gemspec +0 -46
- data/admin/lib/gaku/admin.rb +0 -32
- data/admin/lib/gaku/admin/engine.rb +0 -28
- data/admin/lib/gaku/app_responder.rb +0 -6
- data/admin/lib/gaku_admin.rb +0 -1
- data/admin/lib/tasks/admin_user.rake +0 -106
- data/admin/lib/tasks/core.rake +0 -65
- data/admin/lib/tasks/reset.rake +0 -37
- data/admin/spec/controllers/gaku/admin/badge_types_controller_spec.rb +0 -138
- data/admin/spec/controllers/gaku/admin/departments_controller_spec.rb +0 -151
- data/admin/spec/controllers/gaku/admin/grading/grading_method_set_items_controller_spec.rb +0 -177
- data/admin/spec/controllers/gaku/admin/grading/grading_method_sets_controller_spec.rb +0 -182
- data/admin/spec/controllers/gaku/admin/grading/grading_methods_controller_spec.rb +0 -153
- data/admin/spec/controllers/gaku/admin/presets_controller_spec.rb +0 -65
- data/admin/spec/controllers/gaku/admin/roles_controller_spec.rb +0 -151
- data/admin/spec/controllers/gaku/admin/school_years/school_years_controller_spec.rb +0 -158
- data/admin/spec/controllers/gaku/admin/school_years/semesters_controller_spec.rb +0 -142
- data/admin/spec/controllers/gaku/admin/schools/campuses/addresses_controller_spec.rb +0 -130
- data/admin/spec/controllers/gaku/admin/schools/campuses/campuses_controller_spec.rb +0 -142
- data/admin/spec/controllers/gaku/admin/schools/schools_controller_spec.rb +0 -203
- data/admin/spec/controllers/gaku/admin/simple_grade_types_controller_spec.rb +0 -168
- data/admin/spec/controllers/gaku/admin/specialties_controller_spec.rb +0 -161
- data/admin/spec/controllers/gaku/admin/templates_controller_spec.rb +0 -149
- data/admin/spec/controllers/gaku/admin/types_and_methods/attendance_types_controller_spec.rb +0 -175
- data/admin/spec/controllers/gaku/admin/types_and_methods/commute_method_types_controller_spec.rb +0 -157
- data/admin/spec/controllers/gaku/admin/types_and_methods/contact_types_controller_spec.rb +0 -151
- data/admin/spec/controllers/gaku/admin/types_and_methods/enrollment_statuses_controller_spec.rb +0 -152
- data/admin/spec/controllers/gaku/admin/users_controller_spec.rb +0 -151
- data/admin/spec/features/achievements/badge_types_spec.rb +0 -76
- data/admin/spec/features/achievements/simple_grade_types_spec.rb +0 -91
- data/admin/spec/features/departments_spec.rb +0 -77
- data/admin/spec/features/grading/grading_method_set_items_spec.rb +0 -90
- data/admin/spec/features/grading/grading_method_sets_spec.rb +0 -124
- data/admin/spec/features/grading/grading_methods_spec.rb +0 -105
- data/admin/spec/features/presets/address_preset_spec.rb +0 -37
- data/admin/spec/features/presets/chooser_fields_preset_spec.rb +0 -41
- data/admin/spec/features/presets/export_formats_spec.rb +0 -31
- data/admin/spec/features/presets/grading_preset_spec.rb +0 -32
- data/admin/spec/features/presets/locale_preset_spec.rb +0 -29
- data/admin/spec/features/presets/names_order_preset_spec.rb +0 -29
- data/admin/spec/features/presets/pagination_preset_spec.rb +0 -37
- data/admin/spec/features/presets/person_preset_spec.rb +0 -28
- data/admin/spec/features/presets/time_format_spec.rb +0 -29
- data/admin/spec/features/roles_spec.rb +0 -87
- data/admin/spec/features/school_years/school_years_spec.rb +0 -114
- data/admin/spec/features/school_years/semesters_spec.rb +0 -147
- data/admin/spec/features/schools/campuses/addresses_spec.rb +0 -114
- data/admin/spec/features/schools/campuses/campuses_spec.rb +0 -60
- data/admin/spec/features/schools/campuses/contacts_spec.rb +0 -56
- data/admin/spec/features/schools/campuses/picture_spec.rb +0 -48
- data/admin/spec/features/schools/picture_spec.rb +0 -46
- data/admin/spec/features/schools/programs_spec.rb +0 -123
- data/admin/spec/features/schools/school_details_spec.rb +0 -48
- data/admin/spec/features/schools/school_levels_spec.rb +0 -63
- data/admin/spec/features/schools/schools_spec.rb +0 -75
- data/admin/spec/features/specialties_spec.rb +0 -85
- data/admin/spec/features/system_tools/backup_spec.rb +0 -7
- data/admin/spec/features/templates_spec.rb +0 -100
- data/admin/spec/features/types_and_methods/attendance_types_spec.rb +0 -82
- data/admin/spec/features/types_and_methods/commute_method_types_spec.rb +0 -77
- data/admin/spec/features/types_and_methods/contact_types_spec.rb +0 -77
- data/admin/spec/features/types_and_methods/enrollment_statuses_spec.rb +0 -77
- data/admin/spec/features/types_and_methods/states_spec.rb +0 -114
- data/admin/spec/features/types_and_methods/student_review_categories_spec.rb +0 -77
- data/admin/spec/features/users_spec.rb +0 -90
- data/admin/spec/routing/admin/campuses/addresses_routes_spec.rb +0 -56
- data/admin/spec/routing/admin/campuses/campuses_routing_spec.rb +0 -80
- data/admin/spec/routing/admin/campuses/contacts_routing_spec.rb +0 -56
- data/admin/spec/routing/admin/school_years/school_years_routing_spec.rb +0 -67
- data/admin/spec/routing/admin/school_years/semesters_routing_spec.rb +0 -57
- data/admin/spec/routing/admin/schools/schools_routes_spec.rb +0 -79
- data/admin/spec/routing/admin/simple_grade_types_routing_spec.rb +0 -51
- data/admin/spec/routing/admin/templates_routing_spec.rb +0 -59
- data/admin/spec/spec_helper.rb +0 -5
- data/admin/spec/spec_helper_controllers.rb +0 -5
- data/admin/spec/spec_helper_routing.rb +0 -4
- data/admin/spec/support/120x120.jpg +0 -0
- data/admin/spec/support/controllers/matchers/have_attributes_matcher.rb +0 -8
- data/admin/spec/support/controllers/shared_examples/allow.rb +0 -10
- data/admin/spec/support/controllers/shared_examples/deny.rb +0 -27
- data/admin/spec/support/features/shared_examples/addresses_spec.rb +0 -160
- data/admin/spec/support/features/shared_examples/avatarable_spec.rb +0 -16
- data/admin/spec/support/features/shared_examples/contacts_spec.rb +0 -121
- data/admin/spec/support/features/uploaded_file.rb +0 -6
- data/admin/spec/support/sample_roster.ods +0 -0
- data/admin/spec/support/test.txt +0 -1
- data/core/.rspec +0 -2
- data/core/Gemfile +0 -3
- data/core/Guardfile +0 -40
- data/core/Rakefile +0 -17
- data/core/app/assets/images/background.jpg +0 -0
- data/core/app/assets/images/check.png +0 -0
- data/core/app/assets/images/cross.png +0 -0
- data/core/app/assets/images/down_arrow.gif +0 -0
- data/core/app/assets/images/elements/highlight.png +0 -0
- data/core/app/assets/images/elements/toolbar1.png +0 -0
- data/core/app/assets/images/gaku-logo-gear.png +0 -0
- data/core/app/assets/images/gaku-logo-gear.svg +0 -188
- data/core/app/assets/images/gaku-logo.png +0 -0
- data/core/app/assets/images/gaku-logo.svg +0 -69
- data/core/app/assets/images/gakuengine.png +0 -0
- data/core/app/assets/images/gakuengine20.png +0 -0
- data/core/app/assets/images/icon-chair.png +0 -0
- data/core/app/assets/images/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
- data/core/app/assets/images/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
- data/core/app/assets/images/images/ui-bg_glass_20_555555_1x400.png +0 -0
- data/core/app/assets/images/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
- data/core/app/assets/images/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
- data/core/app/assets/images/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
- data/core/app/assets/images/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
- data/core/app/assets/images/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
- data/core/app/assets/images/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
- data/core/app/assets/images/images/ui-icons_222222_256x240.png +0 -0
- data/core/app/assets/images/images/ui-icons_4b8e0b_256x240.png +0 -0
- data/core/app/assets/images/images/ui-icons_a83300_256x240.png +0 -0
- data/core/app/assets/images/images/ui-icons_cccccc_256x240.png +0 -0
- data/core/app/assets/images/images/ui-icons_ffffff_256x240.png +0 -0
- data/core/app/assets/images/missing_original.png +0 -0
- data/core/app/assets/images/missing_thumb.png +0 -0
- data/core/app/assets/images/rails.png +0 -0
- data/core/app/assets/images/raw/GAKU Colors.png +0 -0
- data/core/app/assets/images/raw/GAKU Engine G Logo + Text Logo [#87CAF3](900x816px).svg +0 -75
- data/core/app/assets/images/raw/GAKU Engine Gear + Text Logo.svg +0 -200
- data/core/app/assets/images/raw/top-logo.svg +0 -188
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_flat_65_ffffff_40x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_highlight-hard_40_aaaaaa_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_highlight-soft_50_aaaaaa_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_inset-hard_40_111111_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_inset-hard_45_cd0a0a_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_inset-hard_55_165e83_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_inset-soft_55_00a3af_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-bg_inset-soft_99_00a3af_1x100.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_222222_256x240.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_70f000_256x240.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_bbbbbb_256x240.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_ededed_256x240.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_ffcf29_256x240.png +0 -0
- data/core/app/assets/images/themes/gakuengine/images/ui-icons_ffffff_256x240.png +0 -0
- data/core/app/assets/images/tick.png +0 -0
- data/core/app/assets/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/core/app/assets/images/up_arrow.gif +0 -0
- data/core/app/controllers/gaku/core_controller.rb +0 -62
- data/core/app/decorators/gaku/course_decorator.rb +0 -14
- data/core/app/decorators/gaku/guardian_decorator.rb +0 -6
- data/core/app/decorators/gaku/person_decorator.rb +0 -59
- data/core/app/decorators/gaku/student_decorator.rb +0 -44
- data/core/app/decorators/gaku/teacher_decorator.rb +0 -6
- data/core/app/models/concerns/addresses.rb +0 -17
- data/core/app/models/concerns/contacts.rb +0 -17
- data/core/app/models/concerns/enrollmentable.rb +0 -9
- data/core/app/models/concerns/gradable.rb +0 -14
- data/core/app/models/concerns/notes.rb +0 -7
- data/core/app/models/concerns/pagination.rb +0 -7
- data/core/app/models/concerns/person.rb +0 -27
- data/core/app/models/concerns/picture.rb +0 -7
- data/core/app/models/concerns/semesterable.rb +0 -12
- data/core/app/models/concerns/student_reviewable.rb +0 -7
- data/core/app/models/gaku/ability.rb +0 -57
- data/core/app/models/gaku/address.rb +0 -90
- data/core/app/models/gaku/admin_ability.rb +0 -20
- data/core/app/models/gaku/assignment.rb +0 -13
- data/core/app/models/gaku/assignment_score.rb +0 -12
- data/core/app/models/gaku/attachment.rb +0 -16
- data/core/app/models/gaku/attendance.rb +0 -14
- data/core/app/models/gaku/attendance_type.rb +0 -13
- data/core/app/models/gaku/badge.rb +0 -8
- data/core/app/models/gaku/badge_type.rb +0 -14
- data/core/app/models/gaku/campus.rb +0 -18
- data/core/app/models/gaku/class_group.rb +0 -27
- data/core/app/models/gaku/commute_method_type.rb +0 -13
- data/core/app/models/gaku/contact.rb +0 -62
- data/core/app/models/gaku/contact_type.rb +0 -11
- data/core/app/models/gaku/country.rb +0 -30
- data/core/app/models/gaku/course.rb +0 -43
- data/core/app/models/gaku/course_group.rb +0 -12
- data/core/app/models/gaku/course_group_enrollment.rb +0 -15
- data/core/app/models/gaku/department.rb +0 -15
- data/core/app/models/gaku/enrollment.rb +0 -85
- data/core/app/models/gaku/enrollment_status.rb +0 -23
- data/core/app/models/gaku/exam.rb +0 -106
- data/core/app/models/gaku/exam_portion.rb +0 -82
- data/core/app/models/gaku/exam_portion_score.rb +0 -10
- data/core/app/models/gaku/exam_schedule.rb +0 -9
- data/core/app/models/gaku/exam_score.rb +0 -9
- data/core/app/models/gaku/exam_session.rb +0 -14
- data/core/app/models/gaku/exam_syllabus.rb +0 -13
- data/core/app/models/gaku/external_school_record.rb +0 -22
- data/core/app/models/gaku/extracurricular_activity.rb +0 -13
- data/core/app/models/gaku/faculty.rb +0 -10
- data/core/app/models/gaku/grading_method.rb +0 -31
- data/core/app/models/gaku/grading_method_connector.rb +0 -35
- data/core/app/models/gaku/grading_method_set.rb +0 -33
- data/core/app/models/gaku/grading_method_set_item.rb +0 -31
- data/core/app/models/gaku/guardian.rb +0 -20
- data/core/app/models/gaku/install.rb +0 -6
- data/core/app/models/gaku/lesson.rb +0 -8
- data/core/app/models/gaku/lesson_plan.rb +0 -11
- data/core/app/models/gaku/level.rb +0 -15
- data/core/app/models/gaku/note.rb +0 -7
- data/core/app/models/gaku/preset.rb +0 -65
- data/core/app/models/gaku/program.rb +0 -26
- data/core/app/models/gaku/program_level.rb +0 -8
- data/core/app/models/gaku/program_specialty.rb +0 -8
- data/core/app/models/gaku/program_syllabus.rb +0 -9
- data/core/app/models/gaku/role.rb +0 -12
- data/core/app/models/gaku/schedule.rb +0 -4
- data/core/app/models/gaku/scholarship_status.rb +0 -13
- data/core/app/models/gaku/school.rb +0 -51
- data/core/app/models/gaku/school_role.rb +0 -11
- data/core/app/models/gaku/school_year.rb +0 -20
- data/core/app/models/gaku/semester.rb +0 -55
- data/core/app/models/gaku/semester_attendance.rb +0 -14
- data/core/app/models/gaku/semester_connector.rb +0 -27
- data/core/app/models/gaku/simple_grade.rb +0 -16
- data/core/app/models/gaku/simple_grade_type.rb +0 -13
- data/core/app/models/gaku/specialty.rb +0 -17
- data/core/app/models/gaku/state.rb +0 -45
- data/core/app/models/gaku/student.rb +0 -137
- data/core/app/models/gaku/student_exam_session.rb +0 -11
- data/core/app/models/gaku/student_guardian.rb +0 -6
- data/core/app/models/gaku/student_review.rb +0 -11
- data/core/app/models/gaku/student_review_category.rb +0 -13
- data/core/app/models/gaku/student_specialty.rb +0 -15
- data/core/app/models/gaku/syllabus.rb +0 -20
- data/core/app/models/gaku/teacher.rb +0 -7
- data/core/app/models/gaku/template.rb +0 -16
- data/core/app/models/gaku/user.rb +0 -42
- data/core/app/models/gaku/user_role.rb +0 -6
- data/core/app/services/gaku/contact_creation.rb +0 -49
- data/core/app/services/gaku/contact_updation.rb +0 -41
- data/core/app/services/gaku/student_selection.rb +0 -57
- data/core/app/services/gaku/user_creator.rb +0 -31
- data/core/app/views/gaku/admin/grading_methods/_arguments_form_fields.html.slim +0 -19
- data/core/app/views/gaku/admin/grading_methods/_arguments_template.html.slim +0 -11
- data/core/app/views/gaku/shared/menu/_global.html.erb +0 -2
- data/core/config/initializers/active_record.rb +0 -41
- data/core/config/initializers/devise.rb +0 -216
- data/core/config/initializers/i18n.rb +0 -26
- data/core/config/initializers/inflections.rb +0 -19
- data/core/config/initializers/kaminari.rb +0 -10
- data/core/config/initializers/locale.rb +0 -2
- data/core/config/initializers/redis.rb +0 -5
- data/core/config/initializers/translation_missing.rb +0 -11
- data/core/config/routes.rb +0 -12
- data/core/core_dependencies.rb +0 -24
- data/core/db/default/gaku/attendance_types.rb +0 -85
- data/core/db/default/gaku/commute_method_types.rb +0 -19
- data/core/db/default/gaku/contact_types.yml +0 -20
- data/core/db/default/gaku/countries.rb +0 -14
- data/core/db/default/gaku/departments.rb +0 -14
- data/core/db/default/gaku/enrollment_status.rb +0 -40
- data/core/db/default/gaku/master_school.rb +0 -7
- data/core/db/default/gaku/presets.rb +0 -30
- data/core/db/default/gaku/roles.yml +0 -2
- data/core/db/default/gaku/scholarship_statuses.rb +0 -22
- data/core/db/default/gaku/states.rb +0 -9
- data/core/db/migrate/20120202111850_presets.rb +0 -30
- data/core/db/migrate/20131014065028_translations.rb +0 -77
- data/core/db/migrate/20131025073352_gaku_core.rb +0 -628
- data/core/db/migrate/20140128141752_change_grading_methods_arguments_field.rb +0 -5
- data/core/db/migrate/20140130182100_change_fields_external_school_record.rb +0 -7
- data/core/db/migrate/20140131113337_create_student_configs.rb +0 -21
- data/core/db/migrate/20140207093618_drop_student_configs.rb +0 -5
- data/core/db/migrate/20140213113405_create_grading_method_connectors_table.rb +0 -9
- data/core/db/migrate/20140304094422_create_gaku_exam_sessions_table.rb +0 -10
- data/core/db/migrate/20140304101025_create_gaku_student_exam_session_table.rb +0 -8
- data/core/db/migrate/20140325073941_add_time_format_24_to_presets_table.rb +0 -5
- data/core/db/migrate/20140408111314_remove_semester_join_tables.rb +0 -6
- data/core/db/migrate/20140408111358_create_semester_connectors_table.rb +0 -8
- data/core/db/migrate/20140423093155_create_enrollments_table.rb +0 -11
- data/core/db/migrate/20140423100114_clean_enrollments_join_models.rb +0 -8
- data/core/db/migrate/20140429112725_add_counters_to_enrollmentable.rb +0 -11
- data/core/db/migrate/20140604104210_rename_method_to_grading_method.rb +0 -5
- data/core/db/migrate/20140604113045_add_default_value_to_curved.rb +0 -5
- data/core/db/migrate/20140610091053_add_seat_number_to_enrollments.rb +0 -5
- data/core/db/migrate/20140701104700_change_hstore_to_string_criteria.rb +0 -5
- data/core/db/migrate/20140715135152_create_semester_attendance_table.rb +0 -16
- data/core/db/migrate/20140718105226_create_student_review_categories_table.rb +0 -13
- data/core/db/migrate/20140728121353_create_student_review_table.rb +0 -12
- data/core/db/migrate/20150213095508_improve_countries_and_states.rb +0 -5
- data/core/db/schema.rb +0 -481
- data/core/db/seeds.rb +0 -5
- data/core/gaku_core.gemspec +0 -40
- data/core/lib/gaku/class_name_detector.rb +0 -23
- data/core/lib/gaku/core.rb +0 -28
- data/core/lib/gaku/core/console_colors.rb +0 -22
- data/core/lib/gaku/core/engine.rb +0 -31
- data/core/lib/gaku/core/url_helpers.rb +0 -5
- data/core/lib/gaku/grading/collection/base_method.rb +0 -30
- data/core/lib/gaku/grading/collection/calculations.rb +0 -36
- data/core/lib/gaku/grading/collection/interval.rb +0 -55
- data/core/lib/gaku/grading/collection/ordinal.rb +0 -10
- data/core/lib/gaku/grading/collection/percentage.rb +0 -10
- data/core/lib/gaku/grading/collection/result.rb +0 -18
- data/core/lib/gaku/grading/collection/score.rb +0 -10
- data/core/lib/gaku/grading/single/base_method.rb +0 -30
- data/core/lib/gaku/grading/single/calculations.rb +0 -42
- data/core/lib/gaku/grading/single/interval.rb +0 -7
- data/core/lib/gaku/grading/single/ordinal.rb +0 -30
- data/core/lib/gaku/grading/single/pass_fail.rb +0 -2
- data/core/lib/gaku/grading/single/percentage.rb +0 -26
- data/core/lib/gaku/grading/single/ratio.rb +0 -2
- data/core/lib/gaku/grading/single/result.rb +0 -18
- data/core/lib/gaku/grading/single/score.rb +0 -15
- data/core/lib/gaku/migrations.rb +0 -30
- data/core/lib/gaku/streamer/sse.rb +0 -22
- data/core/lib/gaku/testing/auth_helpers.rb +0 -29
- data/core/lib/gaku/testing/common_rake.rb +0 -33
- data/core/lib/gaku/testing/controller_helpers.rb +0 -105
- data/core/lib/gaku/testing/coverage.rb +0 -20
- data/core/lib/gaku/testing/deferred_garbage_collection.rb +0 -20
- data/core/lib/gaku/testing/factories.rb +0 -5
- data/core/lib/gaku/testing/factories/address_factory.rb +0 -22
- data/core/lib/gaku/testing/factories/assignment_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/assignment_score_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/attachment_factory.rb +0 -15
- data/core/lib/gaku/testing/factories/attendance_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/attendance_type_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/badge_factory.rb +0 -12
- data/core/lib/gaku/testing/factories/badge_type_factory.rb +0 -12
- data/core/lib/gaku/testing/factories/campus_factory.rb +0 -19
- data/core/lib/gaku/testing/factories/class_group_factory.rb +0 -24
- data/core/lib/gaku/testing/factories/commute_method_type_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/contact_creation_factory.rb +0 -18
- data/core/lib/gaku/testing/factories/contact_factory.rb +0 -19
- data/core/lib/gaku/testing/factories/contact_type_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/country_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/course_enrollment_factory.rb +0 -12
- data/core/lib/gaku/testing/factories/course_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/course_group_enrollment_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/course_group_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/department_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/enrollment_factory.rb +0 -10
- data/core/lib/gaku/testing/factories/enrollment_status_factory.rb +0 -28
- data/core/lib/gaku/testing/factories/exam_factory.rb +0 -28
- data/core/lib/gaku/testing/factories/exam_portion_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/exam_portion_score_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/exam_schedule_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/exam_score_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/exam_session_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/external_school_record_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/extracurricular_activity_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/faculty_factory.rb +0 -6
- data/core/lib/gaku/testing/factories/grading_method_connector_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/grading_method_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/grading_method_set_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/grading_method_set_item_factory.rb +0 -12
- data/core/lib/gaku/testing/factories/guardian_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/lesson_factory.rb +0 -7
- data/core/lib/gaku/testing/factories/lesson_plan_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/level_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/note_factory.rb +0 -12
- data/core/lib/gaku/testing/factories/preset_factory.rb +0 -17
- data/core/lib/gaku/testing/factories/program_factory.rb +0 -38
- data/core/lib/gaku/testing/factories/program_level_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/program_specialty.rb +0 -8
- data/core/lib/gaku/testing/factories/program_syllabus_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/role_factory.rb +0 -43
- data/core/lib/gaku/testing/factories/schedule_factory.rb +0 -9
- data/core/lib/gaku/testing/factories/scholarship_status_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/school_factory.rb +0 -32
- data/core/lib/gaku/testing/factories/school_role_factory.rb +0 -7
- data/core/lib/gaku/testing/factories/school_year_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/semester_attendance_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/semester_connectors_factory.rb +0 -11
- data/core/lib/gaku/testing/factories/semester_factory.rb +0 -29
- data/core/lib/gaku/testing/factories/simple_grade_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/simple_grade_type_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/specialty_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/state_factory.rb +0 -14
- data/core/lib/gaku/testing/factories/student_exam_session_factory.rb +0 -8
- data/core/lib/gaku/testing/factories/student_factory.rb +0 -61
- data/core/lib/gaku/testing/factories/student_review_category_factory.rb +0 -7
- data/core/lib/gaku/testing/factories/student_review_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/student_specialty_factory.rb +0 -13
- data/core/lib/gaku/testing/factories/syllabus_factory.rb +0 -20
- data/core/lib/gaku/testing/factories/teacher_factory.rb +0 -15
- data/core/lib/gaku/testing/factories/template_factory.rb +0 -16
- data/core/lib/gaku/testing/factories/traits.rb +0 -104
- data/core/lib/gaku/testing/factories/user_factory.rb +0 -41
- data/core/lib/gaku/testing/factories/user_role_factory.rb +0 -8
- data/core/lib/gaku_core.rb +0 -1
- data/core/lib/generators/gaku/dummy/dummy_generator.rb +0 -103
- data/core/lib/generators/gaku/dummy/templates/rails/application.rb +0 -10
- data/core/lib/generators/gaku/dummy/templates/rails/boot.rb +0 -6
- data/core/lib/generators/gaku/dummy/templates/rails/database.yml +0 -17
- data/core/lib/generators/gaku/dummy/templates/rails/routes.rb +0 -3
- data/core/lib/generators/gaku/dummy/templates/rails/script/rails +0 -7
- data/core/lib/generators/gaku/install/install_generator.rb +0 -150
- data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/admin/all.js +0 -10
- data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/archive/all.js +0 -10
- data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/frontend/all.js +0 -10
- data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/admin/all.css +0 -9
- data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/archive/all.css +0 -9
- data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/frontend/all.css +0 -9
- data/core/lib/tasks/admin_user.rake +0 -105
- data/core/lib/tasks/core.rake +0 -65
- data/core/lib/tasks/reset.rake +0 -37
- data/core/spec/lib/gaku/grading/collection/calculations_spec.rb +0 -52
- data/core/spec/lib/gaku/grading/collection/interval_spec.rb +0 -56
- data/core/spec/lib/gaku/grading/collection/ordinal_spec.rb +0 -36
- data/core/spec/lib/gaku/grading/collection/percentage_spec.rb +0 -31
- data/core/spec/lib/gaku/grading/collection/result_spec.rb +0 -13
- data/core/spec/lib/gaku/grading/collection/score_spec.rb +0 -31
- data/core/spec/lib/gaku/grading/single/calculations_spec.rb +0 -88
- data/core/spec/lib/gaku/grading/single/ordinal_spec.rb +0 -95
- data/core/spec/lib/gaku/grading/single/percentage_spec.rb +0 -52
- data/core/spec/lib/gaku/grading/single/result_spec.rb +0 -12
- data/core/spec/lib/gaku/grading/single/score_spec.rb +0 -54
- data/core/spec/models/address_spec.rb +0 -124
- data/core/spec/models/assignment_score_spec.rb +0 -19
- data/core/spec/models/assignment_spec.rb +0 -19
- data/core/spec/models/attachment_spec.rb +0 -20
- data/core/spec/models/attendance_spec.rb +0 -21
- data/core/spec/models/attendance_type_spec.rb +0 -19
- data/core/spec/models/badge_spec.rb +0 -15
- data/core/spec/models/badge_type_spec.rb +0 -20
- data/core/spec/models/campus_spec.rb +0 -71
- data/core/spec/models/class_group_spec.rb +0 -91
- data/core/spec/models/commute_method_type_spec.rb +0 -19
- data/core/spec/models/contact_spec.rb +0 -30
- data/core/spec/models/contact_type_spec.rb +0 -19
- data/core/spec/models/country_spec.rb +0 -21
- data/core/spec/models/course_group_enrollment_spec.rb +0 -19
- data/core/spec/models/course_group_spec.rb +0 -19
- data/core/spec/models/course_spec.rb +0 -82
- data/core/spec/models/department_spec.rb +0 -22
- data/core/spec/models/enrollment_spec.rb +0 -44
- data/core/spec/models/enrollment_status_spec.rb +0 -24
- data/core/spec/models/exam_portion_score_spec.rb +0 -16
- data/core/spec/models/exam_portion_spec.rb +0 -46
- data/core/spec/models/exam_schedule_spec.rb +0 -17
- data/core/spec/models/exam_score_spec.rb +0 -15
- data/core/spec/models/exam_session_spec.rb +0 -20
- data/core/spec/models/exam_spec.rb +0 -99
- data/core/spec/models/exam_syllabus_spec.rb +0 -16
- data/core/spec/models/external_school_record_spec.rb +0 -32
- data/core/spec/models/extracurricular_activity_spec.rb +0 -45
- data/core/spec/models/factories_spec.rb +0 -12
- data/core/spec/models/faculty_spec.rb +0 -17
- data/core/spec/models/grading_method_connector_spec.rb +0 -19
- data/core/spec/models/grading_method_set_item_spec.rb +0 -20
- data/core/spec/models/grading_method_set_spec.rb +0 -33
- data/core/spec/models/grading_method_spec.rb +0 -30
- data/core/spec/models/guardian_spec.rb +0 -66
- data/core/spec/models/lesson_plan_spec.rb +0 -43
- data/core/spec/models/lesson_spec.rb +0 -14
- data/core/spec/models/level_spec.rb +0 -22
- data/core/spec/models/note_spec.rb +0 -14
- data/core/spec/models/preset_spec.rb +0 -21
- data/core/spec/models/program_level_spec.rb +0 -15
- data/core/spec/models/program_spec.rb +0 -35
- data/core/spec/models/program_specialty_spec.rb +0 -15
- data/core/spec/models/program_syllabus_spec.rb +0 -16
- data/core/spec/models/role_spec.rb +0 -20
- data/core/spec/models/scholarship_status_spec.rb +0 -19
- data/core/spec/models/school_role_spec.rb +0 -19
- data/core/spec/models/school_spec.rb +0 -22
- data/core/spec/models/school_year_spec.rb +0 -20
- data/core/spec/models/semester_attendance_spec.rb +0 -15
- data/core/spec/models/semester_connector_spec.rb +0 -23
- data/core/spec/models/semester_spec.rb +0 -73
- data/core/spec/models/simple_grade_spec.rb +0 -16
- data/core/spec/models/simple_grade_type_spec.rb +0 -19
- data/core/spec/models/specialty_spec.rb +0 -25
- data/core/spec/models/state_spec.rb +0 -26
- data/core/spec/models/student_exam_session_spec.rb +0 -16
- data/core/spec/models/student_guardian_spec.rb +0 -10
- data/core/spec/models/student_review_category_spec.rb +0 -18
- data/core/spec/models/student_review_spec.rb +0 -23
- data/core/spec/models/student_spec.rb +0 -285
- data/core/spec/models/student_speciality_spec.rb +0 -16
- data/core/spec/models/syllabus_spec.rb +0 -72
- data/core/spec/models/teacher_spec.rb +0 -85
- data/core/spec/models/template_spec.rb +0 -19
- data/core/spec/models/user_role_spec.rb +0 -10
- data/core/spec/models/user_spec.rb +0 -68
- data/core/spec/services/contact_creation_spec.rb +0 -90
- data/core/spec/services/contact_updation_spec.rb +0 -78
- data/core/spec/services/student_selection_spec.rb +0 -65
- data/core/spec/services/user_creator_spec.rb +0 -58
- data/core/spec/spec_helper_base.rb +0 -24
- data/core/spec/spec_helper_models.rb +0 -39
- data/core/spec/support/120x120.jpg +0 -0
- data/core/spec/support/models/matchers/accept_nested_attributes_for_matcher.rb +0 -43
- data/core/spec/support/models/shared_examples/addressable.rb +0 -3
- data/core/spec/support/models/shared_examples/avatarable.rb +0 -3
- data/core/spec/support/models/shared_examples/contactable.rb +0 -3
- data/core/spec/support/models/shared_examples/enrollmentable.rb +0 -4
- data/core/spec/support/models/shared_examples/gradable.rb +0 -4
- data/core/spec/support/models/shared_examples/notable.rb +0 -3
- data/core/spec/support/models/shared_examples/person.rb +0 -4
- data/core/spec/support/models/shared_examples/semesterable.rb +0 -4
- data/core/spec/support/models/shared_examples/student_reviewable.rb +0 -3
- data/core/spec/support/sample_roster.ods +0 -0
- data/doc/authorized_service_providers/Genshin/genshin_okazaki_office.geojson +0 -13
- data/frontend/.gitignore +0 -3
- data/frontend/.rspec +0 -2
- data/frontend/Gemfile +0 -9
- data/frontend/Guardfile +0 -40
- data/frontend/Rakefile +0 -17
- data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.eot +0 -0
- data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.svg +0 -228
- data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.ttf +0 -0
- data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.woff +0 -0
- data/frontend/app/assets/javascripts/gaku/frontend.js.coffee +0 -49
- data/frontend/app/assets/javascripts/gaku/frontend/base.js.coffee +0 -231
- data/frontend/app/assets/javascripts/gaku/frontend/class_groups.js.coffee +0 -21
- data/frontend/app/assets/javascripts/gaku/frontend/courses.js.coffee +0 -36
- data/frontend/app/assets/javascripts/gaku/frontend/exams.js.coffee +0 -25
- data/frontend/app/assets/javascripts/gaku/frontend/extracurricular_activities.js.coffee +0 -12
- data/frontend/app/assets/javascripts/gaku/frontend/guardians.js.coffee +0 -14
- data/frontend/app/assets/javascripts/gaku/frontend/slide.js.erb +0 -14
- data/frontend/app/assets/javascripts/gaku/frontend/students.js.coffee +0 -45
- data/frontend/app/assets/javascripts/gaku/frontend/syllabuses.js.coffee +0 -9
- data/frontend/app/assets/javascripts/gaku/frontend/teachers.js.coffee +0 -14
- data/frontend/app/assets/stylesheets/gaku/bootstrap_and_theme.css.scss +0 -582
- data/frontend/app/assets/stylesheets/gaku/frontend.css +0 -14
- data/frontend/app/assets/stylesheets/gaku/frontend/class_groups.css.scss +0 -19
- data/frontend/app/assets/stylesheets/gaku/frontend/course_groups.css.scss +0 -14
- data/frontend/app/assets/stylesheets/gaku/frontend/courses.css.scss +0 -19
- data/frontend/app/assets/stylesheets/gaku/frontend/exams.css.scss +0 -72
- data/frontend/app/assets/stylesheets/gaku/frontend/gaku.css.scss +0 -216
- data/frontend/app/assets/stylesheets/gaku/frontend/students.css.scss +0 -22
- data/frontend/app/assets/templates/roster.xls +0 -0
- data/frontend/app/controllers/concerns/picture_controller.rb +0 -29
- data/frontend/app/controllers/concerns/poly_controller.rb +0 -49
- data/frontend/app/controllers/concerns/polymorphic_resource_concern.rb +0 -48
- data/frontend/app/controllers/concerns/student_chooser_controller.rb +0 -41
- data/frontend/app/controllers/gaku/addresses_controller.rb +0 -103
- data/frontend/app/controllers/gaku/attachments_controller.rb +0 -82
- data/frontend/app/controllers/gaku/attendances_controller.rb +0 -28
- data/frontend/app/controllers/gaku/class_groups/enrollments_controller.rb +0 -30
- data/frontend/app/controllers/gaku/class_groups/semester_attendances_controller.rb +0 -53
- data/frontend/app/controllers/gaku/class_groups/student_reviews_controller.rb +0 -60
- data/frontend/app/controllers/gaku/class_groups_controller.rb +0 -128
- data/frontend/app/controllers/gaku/contacts_controller.rb +0 -84
- data/frontend/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +0 -63
- data/frontend/app/controllers/gaku/course_groups_controller.rb +0 -90
- data/frontend/app/controllers/gaku/courses/exams_controller.rb +0 -36
- data/frontend/app/controllers/gaku/courses_controller.rb +0 -110
- data/frontend/app/controllers/gaku/devise/passwords_controller.rb +0 -4
- data/frontend/app/controllers/gaku/devise/registrations_controller.rb +0 -60
- data/frontend/app/controllers/gaku/devise/sessions_controller.rb +0 -15
- data/frontend/app/controllers/gaku/enrollments_controller.rb +0 -130
- data/frontend/app/controllers/gaku/exam_portion_scores_controller.rb +0 -49
- data/frontend/app/controllers/gaku/exams/exam_portions_controller.rb +0 -84
- data/frontend/app/controllers/gaku/exams/exam_sessions_controller.rb +0 -58
- data/frontend/app/controllers/gaku/exams_controller.rb +0 -127
- data/frontend/app/controllers/gaku/extracurricular_activities_controller.rb +0 -72
- data/frontend/app/controllers/gaku/gaku_controller.rb +0 -34
- data/frontend/app/controllers/gaku/grading_method_connectors_controller.rb +0 -109
- data/frontend/app/controllers/gaku/guardians_controller.rb +0 -66
- data/frontend/app/controllers/gaku/home_controller.rb +0 -11
- data/frontend/app/controllers/gaku/notes_controller.rb +0 -86
- data/frontend/app/controllers/gaku/realtime_controller.rb +0 -28
- data/frontend/app/controllers/gaku/search_controller.rb +0 -16
- data/frontend/app/controllers/gaku/semester_connectors_controller.rb +0 -66
- data/frontend/app/controllers/gaku/states_list_controller.rb +0 -21
- data/frontend/app/controllers/gaku/student_selection_controller.rb +0 -58
- data/frontend/app/controllers/gaku/students/badges_controller.rb +0 -65
- data/frontend/app/controllers/gaku/students/class_group_enrollments_controller.rb +0 -53
- data/frontend/app/controllers/gaku/students/course_enrollments_controller.rb +0 -53
- data/frontend/app/controllers/gaku/students/external_school_records_controller.rb +0 -63
- data/frontend/app/controllers/gaku/students/extracurricular_activity_enrollments_controller.rb +0 -53
- data/frontend/app/controllers/gaku/students/simple_grades_controller.rb +0 -69
- data/frontend/app/controllers/gaku/students/student_specialties_controller.rb +0 -68
- data/frontend/app/controllers/gaku/students_controller.rb +0 -182
- data/frontend/app/controllers/gaku/syllabuses/assignments_controller.rb +0 -20
- data/frontend/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +0 -43
- data/frontend/app/controllers/gaku/syllabuses/exams_controller.rb +0 -69
- data/frontend/app/controllers/gaku/syllabuses_controller.rb +0 -75
- data/frontend/app/controllers/gaku/teachers_controller.rb +0 -79
- data/frontend/app/helpers/gaku/autocomplete_helper.rb +0 -31
- data/frontend/app/helpers/gaku/exam_helper.rb +0 -13
- data/frontend/app/helpers/gaku/frontend_helper.rb +0 -58
- data/frontend/app/helpers/gaku/person_helper.rb +0 -78
- data/frontend/app/helpers/gaku/shared_helper.rb +0 -25
- data/frontend/app/helpers/gaku/student_chooser_helper.rb +0 -11
- data/frontend/app/helpers/gaku/students_helper.rb +0 -29
- data/frontend/app/overrides/frontend_menu.rb +0 -6
- data/frontend/app/views/gaku/addresses/_address.html.slim +0 -5
- data/frontend/app/views/gaku/addresses/_addresses.html.slim +0 -26
- data/frontend/app/views/gaku/addresses/_delete_link.html.slim +0 -1
- data/frontend/app/views/gaku/addresses/_fields.html.slim +0 -13
- data/frontend/app/views/gaku/addresses/_form.html.slim +0 -3
- data/frontend/app/views/gaku/addresses/_form_fields.html.slim +0 -23
- data/frontend/app/views/gaku/addresses/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/addresses/_primary_field.html.slim +0 -5
- data/frontend/app/views/gaku/addresses/create.js.erb +0 -13
- data/frontend/app/views/gaku/addresses/destroy.js.erb +0 -9
- data/frontend/app/views/gaku/addresses/edit.js.erb +0 -4
- data/frontend/app/views/gaku/addresses/index.js.erb +0 -1
- data/frontend/app/views/gaku/addresses/make_primary.js.erb +0 -7
- data/frontend/app/views/gaku/addresses/new.js.erb +0 -4
- data/frontend/app/views/gaku/addresses/recovery.js.erb +0 -1
- data/frontend/app/views/gaku/addresses/show/_address.html.slim +0 -9
- data/frontend/app/views/gaku/addresses/show/_addresses.html.slim +0 -19
- data/frontend/app/views/gaku/addresses/soft_delete.js.erb +0 -9
- data/frontend/app/views/gaku/addresses/update.js.erb +0 -5
- data/frontend/app/views/gaku/attachments/_attachment.html.slim +0 -2
- data/frontend/app/views/gaku/attachments/_attachments.html.slim +0 -20
- data/frontend/app/views/gaku/attachments/_form.html.slim +0 -3
- data/frontend/app/views/gaku/attachments/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/attachments/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/attachments/_table_fields.html.slim +0 -9
- data/frontend/app/views/gaku/attachments/create.js.erb +0 -8
- data/frontend/app/views/gaku/attachments/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/attachments/edit.js.erb +0 -3
- data/frontend/app/views/gaku/attachments/new.js.erb +0 -3
- data/frontend/app/views/gaku/attachments/recovery.js.erb +0 -1
- data/frontend/app/views/gaku/attachments/soft_delete.js.erb +0 -3
- data/frontend/app/views/gaku/attachments/update.js.erb +0 -5
- data/frontend/app/views/gaku/class_groups/_class_group.html.slim +0 -4
- data/frontend/app/views/gaku/class_groups/_class_groups.html.slim +0 -11
- data/frontend/app/views/gaku/class_groups/_class_groups_with_semester.html.slim +0 -12
- data/frontend/app/views/gaku/class_groups/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/class_groups/_fields.html.slim +0 -3
- data/frontend/app/views/gaku/class_groups/_form.html.slim +0 -3
- data/frontend/app/views/gaku/class_groups/_form_fields.html.slim +0 -7
- data/frontend/app/views/gaku/class_groups/advanced_search.js.erb +0 -30
- data/frontend/app/views/gaku/class_groups/create.js.erb +0 -6
- data/frontend/app/views/gaku/class_groups/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/class_groups/edit.html.slim +0 -18
- data/frontend/app/views/gaku/class_groups/edit.js.erb +0 -1
- data/frontend/app/views/gaku/class_groups/enrollments/_enrollment.html.slim +0 -2
- data/frontend/app/views/gaku/class_groups/enrollments/_enrollments.html.slim +0 -21
- data/frontend/app/views/gaku/class_groups/enrollments/_form.html.slim +0 -4
- data/frontend/app/views/gaku/class_groups/enrollments/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/class_groups/enrollments/_table_fields.html.slim +0 -5
- data/frontend/app/views/gaku/class_groups/enrollments/create.js.erb +0 -11
- data/frontend/app/views/gaku/class_groups/enrollments/create_from_selection.js.erb +0 -7
- data/frontend/app/views/gaku/class_groups/enrollments/destroy.js.erb +0 -9
- data/frontend/app/views/gaku/class_groups/enrollments/index.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/class_groups/enrollments/sort.js.erb +0 -3
- data/frontend/app/views/gaku/class_groups/enrollments/student_selection.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/index.html.slim +0 -25
- data/frontend/app/views/gaku/class_groups/new.js.erb +0 -3
- data/frontend/app/views/gaku/class_groups/search/_form.html.slim +0 -18
- data/frontend/app/views/gaku/class_groups/search/_semester_form.html.slim +0 -23
- data/frontend/app/views/gaku/class_groups/semester_advanced_search.js.erb +0 -30
- data/frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim +0 -27
- data/frontend/app/views/gaku/class_groups/semester_attendances/index.js.erb +0 -1
- data/frontend/app/views/gaku/class_groups/student_reviews/_edit_modal.html.slim +0 -4
- data/frontend/app/views/gaku/class_groups/student_reviews/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/class_groups/student_reviews/_new_modal.html.slim +0 -4
- data/frontend/app/views/gaku/class_groups/student_reviews/_show_modal.html.slim +0 -11
- data/frontend/app/views/gaku/class_groups/student_reviews/create.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/student_reviews/destroy.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/student_reviews/edit.js.erb +0 -5
- data/frontend/app/views/gaku/class_groups/student_reviews/index.js.erb +0 -8
- data/frontend/app/views/gaku/class_groups/student_reviews/update.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/update.js.erb +0 -1
- data/frontend/app/views/gaku/class_groups/with_semester.html.slim +0 -26
- data/frontend/app/views/gaku/class_groups/with_semester.js.erb +0 -2
- data/frontend/app/views/gaku/class_groups/without_semester.html.slim +0 -26
- data/frontend/app/views/gaku/class_groups/without_semester.js.erb +0 -2
- data/frontend/app/views/gaku/contacts/_contact.html.slim +0 -5
- data/frontend/app/views/gaku/contacts/_contacts.html.slim +0 -22
- data/frontend/app/views/gaku/contacts/_delete_link.html.slim +0 -1
- data/frontend/app/views/gaku/contacts/_fields.html.slim +0 -12
- data/frontend/app/views/gaku/contacts/_form.html.slim +0 -4
- data/frontend/app/views/gaku/contacts/_form_fields.html.slim +0 -14
- data/frontend/app/views/gaku/contacts/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/contacts/_primary_field.html.slim +0 -5
- data/frontend/app/views/gaku/contacts/create.js.erb +0 -22
- data/frontend/app/views/gaku/contacts/destroy.js.erb +0 -10
- data/frontend/app/views/gaku/contacts/edit.js.erb +0 -4
- data/frontend/app/views/gaku/contacts/index.js.erb +0 -2
- data/frontend/app/views/gaku/contacts/make_primary.js.erb +0 -6
- data/frontend/app/views/gaku/contacts/new.js.erb +0 -3
- data/frontend/app/views/gaku/contacts/recovery.js.erb +0 -1
- data/frontend/app/views/gaku/contacts/show/_contact.html.slim +0 -7
- data/frontend/app/views/gaku/contacts/show/_contacts.html.slim +0 -15
- data/frontend/app/views/gaku/contacts/soft_delete.js.erb +0 -8
- data/frontend/app/views/gaku/contacts/update.js.erb +0 -14
- data/frontend/app/views/gaku/course_groups/_course_group.html.slim +0 -4
- data/frontend/app/views/gaku/course_groups/_course_groups.html.slim +0 -7
- data/frontend/app/views/gaku/course_groups/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/course_groups/_fields.html.slim +0 -1
- data/frontend/app/views/gaku/course_groups/_form.html.slim +0 -3
- data/frontend/app/views/gaku/course_groups/_form_fields.html.slim +0 -1
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/_course.html.slim +0 -4
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +0 -22
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +0 -4
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +0 -8
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/index.js.erb +0 -1
- data/frontend/app/views/gaku/course_groups/course_group_enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/course_groups/create.js.erb +0 -6
- data/frontend/app/views/gaku/course_groups/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/course_groups/edit.html.slim +0 -17
- data/frontend/app/views/gaku/course_groups/edit.js.erb +0 -1
- data/frontend/app/views/gaku/course_groups/index.html.slim +0 -14
- data/frontend/app/views/gaku/course_groups/new.js.erb +0 -3
- data/frontend/app/views/gaku/course_groups/update.js.erb +0 -1
- data/frontend/app/views/gaku/courses/_course.html.slim +0 -7
- data/frontend/app/views/gaku/courses/_courses.html.slim +0 -24
- data/frontend/app/views/gaku/courses/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/courses/_form.html.slim +0 -3
- data/frontend/app/views/gaku/courses/_form_fields.html.slim +0 -5
- data/frontend/app/views/gaku/courses/create.js.erb +0 -6
- data/frontend/app/views/gaku/courses/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/courses/edit.html.slim +0 -27
- data/frontend/app/views/gaku/courses/edit.js.erb +0 -1
- data/frontend/app/views/gaku/courses/exams/_exam.html.slim +0 -5
- data/frontend/app/views/gaku/courses/exams/_exam_portion_head.html.slim +0 -5
- data/frontend/app/views/gaku/courses/exams/_exams.html.slim +0 -14
- data/frontend/app/views/gaku/courses/exams/_grading_table_head.html.slim +0 -12
- data/frontend/app/views/gaku/courses/exams/_grading_table_student_field.html.slim +0 -15
- data/frontend/app/views/gaku/courses/exams/grading.html.slim +0 -7
- data/frontend/app/views/gaku/courses/exams/index.js.erb +0 -1
- data/frontend/app/views/gaku/courses/index.html.slim +0 -14
- data/frontend/app/views/gaku/courses/new.js.erb +0 -3
- data/frontend/app/views/gaku/courses/update.js.erb +0 -1
- data/frontend/app/views/gaku/devise/confirmations/new.html.slim +0 -9
- data/frontend/app/views/gaku/devise/mailer/confirmation_instructions.html.slim +0 -4
- data/frontend/app/views/gaku/devise/mailer/reset_password_instructions.html.slim +0 -6
- data/frontend/app/views/gaku/devise/mailer/unlock_instructions.html.slim +0 -5
- data/frontend/app/views/gaku/devise/passwords/edit.html.slim +0 -14
- data/frontend/app/views/gaku/devise/passwords/new.html.slim +0 -8
- data/frontend/app/views/gaku/devise/registrations/edit.html.slim +0 -31
- data/frontend/app/views/gaku/devise/registrations/new.html.slim +0 -27
- data/frontend/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +0 -26
- data/frontend/app/views/gaku/devise/sessions/new.html.slim +0 -24
- data/frontend/app/views/gaku/devise/shared/_links.html.erb +0 -25
- data/frontend/app/views/gaku/devise/unlocks/new.html.slim +0 -9
- data/frontend/app/views/gaku/enrollments/_enrollment.html.slim +0 -2
- data/frontend/app/views/gaku/enrollments/_enrollments.html.slim +0 -19
- data/frontend/app/views/gaku/enrollments/_form.html.slim +0 -3
- data/frontend/app/views/gaku/enrollments/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/enrollments/_table_fields.html.slim +0 -3
- data/frontend/app/views/gaku/enrollments/create.js.erb +0 -6
- data/frontend/app/views/gaku/enrollments/create_from_selection.js.erb +0 -7
- data/frontend/app/views/gaku/enrollments/destroy.js.erb +0 -4
- data/frontend/app/views/gaku/enrollments/index.js.erb +0 -1
- data/frontend/app/views/gaku/enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/enrollments/student_selection.js.erb +0 -2
- data/frontend/app/views/gaku/exam_divisions/_form.html.erb +0 -29
- data/frontend/app/views/gaku/exam_divisions/edit.html.erb +0 -6
- data/frontend/app/views/gaku/exam_divisions/index.html.erb +0 -27
- data/frontend/app/views/gaku/exam_divisions/new.html.erb +0 -5
- data/frontend/app/views/gaku/exam_divisions/show.html.erb +0 -20
- data/frontend/app/views/gaku/exams/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/exams/_exam.html.slim +0 -2
- data/frontend/app/views/gaku/exams/_exams.html.slim +0 -21
- data/frontend/app/views/gaku/exams/_form.html.slim +0 -16
- data/frontend/app/views/gaku/exams/_form_fields.html.slim +0 -17
- data/frontend/app/views/gaku/exams/_table_fields.html.slim +0 -8
- data/frontend/app/views/gaku/exams/_tabs.html.slim +0 -20
- data/frontend/app/views/gaku/exams/_weight_check_widget.html.slim +0 -20
- data/frontend/app/views/gaku/exams/create.js.erb +0 -7
- data/frontend/app/views/gaku/exams/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/exams/edit.html.slim +0 -26
- data/frontend/app/views/gaku/exams/edit.js.erb +0 -1
- data/frontend/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +0 -4
- data/frontend/app/views/gaku/exams/exam_portions/_edit_form.html.slim +0 -14
- data/frontend/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +0 -2
- data/frontend/app/views/gaku/exams/exam_portions/_exam_portion_menu_link.html.slim +0 -1
- data/frontend/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +0 -3
- data/frontend/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +0 -24
- data/frontend/app/views/gaku/exams/exam_portions/_form.html.slim +0 -3
- data/frontend/app/views/gaku/exams/exam_portions/_table_fields.slim +0 -4
- data/frontend/app/views/gaku/exams/exam_portions/_tabs.html.slim +0 -11
- data/frontend/app/views/gaku/exams/exam_portions/create.js.erb +0 -53
- data/frontend/app/views/gaku/exams/exam_portions/destroy.js.erb +0 -10
- data/frontend/app/views/gaku/exams/exam_portions/edit.html.slim +0 -1
- data/frontend/app/views/gaku/exams/exam_portions/edit.js.erb +0 -1
- data/frontend/app/views/gaku/exams/exam_portions/index.js.erb +0 -1
- data/frontend/app/views/gaku/exams/exam_portions/new.js.erb +0 -3
- data/frontend/app/views/gaku/exams/exam_portions/show.html.slim +0 -30
- data/frontend/app/views/gaku/exams/exam_portions/update.js.erb +0 -2
- data/frontend/app/views/gaku/exams/exam_sessions/_exam_session.html.slim +0 -2
- data/frontend/app/views/gaku/exams/exam_sessions/_exam_sessions.html.slim +0 -20
- data/frontend/app/views/gaku/exams/exam_sessions/_form.html.slim +0 -3
- data/frontend/app/views/gaku/exams/exam_sessions/_form_fields.html.slim +0 -10
- data/frontend/app/views/gaku/exams/exam_sessions/_students.html.slim +0 -1
- data/frontend/app/views/gaku/exams/exam_sessions/_table_fields.html.slim +0 -6
- data/frontend/app/views/gaku/exams/exam_sessions/_tabs.html.slim +0 -10
- data/frontend/app/views/gaku/exams/exam_sessions/create.js.erb +0 -7
- data/frontend/app/views/gaku/exams/exam_sessions/destroy.js.erb +0 -0
- data/frontend/app/views/gaku/exams/exam_sessions/edit.html.slim +0 -16
- data/frontend/app/views/gaku/exams/exam_sessions/new.js.erb +0 -4
- data/frontend/app/views/gaku/exams/exam_sessions/update.js.erb +0 -0
- data/frontend/app/views/gaku/exams/export.xls.rb +0 -66
- data/frontend/app/views/gaku/exams/index.html.slim +0 -21
- data/frontend/app/views/gaku/exams/new.js.erb +0 -3
- data/frontend/app/views/gaku/exams/show.html.slim +0 -28
- data/frontend/app/views/gaku/extracurricular_activities/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +0 -7
- data/frontend/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +0 -4
- data/frontend/app/views/gaku/extracurricular_activities/_fields.html.slim +0 -1
- data/frontend/app/views/gaku/extracurricular_activities/_form.html.slim +0 -3
- data/frontend/app/views/gaku/extracurricular_activities/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/extracurricular_activities/create.js.erb +0 -6
- data/frontend/app/views/gaku/extracurricular_activities/destroy.js.erb +0 -2
- data/frontend/app/views/gaku/extracurricular_activities/edit.html.slim +0 -16
- data/frontend/app/views/gaku/extracurricular_activities/edit.js.erb +0 -1
- data/frontend/app/views/gaku/extracurricular_activities/index.html.slim +0 -15
- data/frontend/app/views/gaku/extracurricular_activities/new.js.erb +0 -3
- data/frontend/app/views/gaku/extracurricular_activities/update.js.erb +0 -1
- data/frontend/app/views/gaku/grading_method_connectors/_form.html.slim +0 -3
- data/frontend/app/views/gaku/grading_method_connectors/_form_fields.html.slim +0 -1
- data/frontend/app/views/gaku/grading_method_connectors/_grading_method_connector.html.slim +0 -2
- data/frontend/app/views/gaku/grading_method_connectors/_grading_method_connectors.html.slim +0 -23
- data/frontend/app/views/gaku/grading_method_connectors/_set_form.html.slim +0 -6
- data/frontend/app/views/gaku/grading_method_connectors/_table_fields.html.slim +0 -4
- data/frontend/app/views/gaku/grading_method_connectors/add_set.js.erb +0 -12
- data/frontend/app/views/gaku/grading_method_connectors/create.js.erb +0 -10
- data/frontend/app/views/gaku/grading_method_connectors/destroy.js.erb +0 -5
- data/frontend/app/views/gaku/grading_method_connectors/index.js.erb +0 -1
- data/frontend/app/views/gaku/grading_method_connectors/new.js.erb +0 -7
- data/frontend/app/views/gaku/grading_method_connectors/new_set.js.erb +0 -6
- data/frontend/app/views/gaku/guardians/_delete_modal.html.slim +0 -11
- data/frontend/app/views/gaku/guardians/_edit_form.html.slim +0 -10
- data/frontend/app/views/gaku/guardians/_form.html.slim +0 -3
- data/frontend/app/views/gaku/guardians/_form_fields.html.slim +0 -4
- data/frontend/app/views/gaku/guardians/_guardian.html.slim +0 -6
- data/frontend/app/views/gaku/guardians/_guardians.html.slim +0 -21
- data/frontend/app/views/gaku/guardians/create.js.erb +0 -7
- data/frontend/app/views/gaku/guardians/destroy.js.erb +0 -2
- data/frontend/app/views/gaku/guardians/edit.html.slim +0 -32
- data/frontend/app/views/gaku/guardians/edit.js.erb +0 -1
- data/frontend/app/views/gaku/guardians/index.js.erb +0 -1
- data/frontend/app/views/gaku/guardians/new.js.erb +0 -3
- data/frontend/app/views/gaku/guardians/recovery.js.erb +0 -1
- data/frontend/app/views/gaku/home/_user_info.html.slim +0 -7
- data/frontend/app/views/gaku/home/_user_menu.html.slim +0 -4
- data/frontend/app/views/gaku/home/index.html.slim +0 -8
- data/frontend/app/views/gaku/layouts/edit.html.slim +0 -10
- data/frontend/app/views/gaku/layouts/gaku.html.slim +0 -22
- data/frontend/app/views/gaku/layouts/home.html.slim +0 -1
- data/frontend/app/views/gaku/layouts/index.html.slim +0 -12
- data/frontend/app/views/gaku/layouts/show.html.slim +0 -10
- data/frontend/app/views/gaku/notes/_buttons.html.slim +0 -4
- data/frontend/app/views/gaku/notes/_fields.html.slim +0 -2
- data/frontend/app/views/gaku/notes/_form.html.slim +0 -6
- data/frontend/app/views/gaku/notes/_form_fields.html.slim +0 -6
- data/frontend/app/views/gaku/notes/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/notes/_note.html.slim +0 -4
- data/frontend/app/views/gaku/notes/_notes.html.slim +0 -19
- data/frontend/app/views/gaku/notes/_show_modal.html.slim +0 -4
- data/frontend/app/views/gaku/notes/create.js.erb +0 -13
- data/frontend/app/views/gaku/notes/destroy.js.erb +0 -5
- data/frontend/app/views/gaku/notes/edit.js.erb +0 -3
- data/frontend/app/views/gaku/notes/index.js.erb +0 -1
- data/frontend/app/views/gaku/notes/new.js.erb +0 -3
- data/frontend/app/views/gaku/notes/show.js.erb +0 -2
- data/frontend/app/views/gaku/notes/show/_notes.html.slim +0 -17
- data/frontend/app/views/gaku/notes/update.js.erb +0 -4
- data/frontend/app/views/gaku/semester_connectors/_form.html.slim +0 -4
- data/frontend/app/views/gaku/semester_connectors/_form_fields.html.slim +0 -3
- data/frontend/app/views/gaku/semester_connectors/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/semester_connectors/_semester_connector.html.slim +0 -2
- data/frontend/app/views/gaku/semester_connectors/_semester_connectors.html.slim +0 -17
- data/frontend/app/views/gaku/semester_connectors/_table_fields.html.slim +0 -4
- data/frontend/app/views/gaku/semester_connectors/create.js.erb +0 -8
- data/frontend/app/views/gaku/semester_connectors/destroy.js.erb +0 -4
- data/frontend/app/views/gaku/semester_connectors/edit.js.erb +0 -3
- data/frontend/app/views/gaku/semester_connectors/index.js.erb +0 -1
- data/frontend/app/views/gaku/semester_connectors/new.js.erb +0 -4
- data/frontend/app/views/gaku/semester_connectors/update.js.erb +0 -3
- data/frontend/app/views/gaku/shared/_ajax_picture.html.slim +0 -8
- data/frontend/app/views/gaku/shared/_ajax_upload_picture.html.slim +0 -14
- data/frontend/app/views/gaku/shared/_delete_link.html.slim +0 -1
- data/frontend/app/views/gaku/shared/_delete_modal.html.slim +0 -11
- data/frontend/app/views/gaku/shared/_delete_modal_without_soft.html.slim +0 -11
- data/frontend/app/views/gaku/shared/_errors.html.slim +0 -6
- data/frontend/app/views/gaku/shared/_flash.html.slim +0 -4
- data/frontend/app/views/gaku/shared/_language_bar.html.slim +0 -8
- data/frontend/app/views/gaku/shared/_login_widget.html.slim +0 -15
- data/frontend/app/views/gaku/shared/_manage_buttons.html.slim +0 -4
- data/frontend/app/views/gaku/shared/_menubar.html.slim +0 -7
- data/frontend/app/views/gaku/shared/_modal_config.html.slim +0 -37
- data/frontend/app/views/gaku/shared/_multi_errors.html.slim +0 -6
- data/frontend/app/views/gaku/shared/error.js.erb +0 -2
- data/frontend/app/views/gaku/shared/fields/_address_and_contact_show_table.html.slim +0 -6
- data/frontend/app/views/gaku/shared/fields/_attachment_fields.html.slim +0 -9
- data/frontend/app/views/gaku/shared/fields/_course_fields.html.slim +0 -4
- data/frontend/app/views/gaku/shared/fields/_course_show_fields.html.slim +0 -3
- data/frontend/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +0 -7
- data/frontend/app/views/gaku/shared/fields/_person_edit_table.html.slim +0 -7
- data/frontend/app/views/gaku/shared/fields/_person_show_table.html.slim +0 -15
- data/frontend/app/views/gaku/shared/fields/_semester_fields.html.slim +0 -1
- data/frontend/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +0 -14
- data/frontend/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +0 -17
- data/frontend/app/views/gaku/shared/js/remove_picture.js.erb +0 -3
- data/frontend/app/views/gaku/shared/js/set_picture.js.erb +0 -3
- data/frontend/app/views/gaku/shared/menu/_frontend.html.erb +0 -22
- data/frontend/app/views/gaku/shared/multi_error.js.erb +0 -2
- data/frontend/app/views/gaku/shared/notice.js.erb +0 -2
- data/frontend/app/views/gaku/shared/overrides/students/_import_link.html.slim +0 -0
- data/frontend/app/views/gaku/shared/overrides/syllabuses/_import_link.html.slim +0 -0
- data/frontend/app/views/gaku/shared/student_chooser/_chooser.html.slim +0 -7
- data/frontend/app/views/gaku/shared/student_chooser/_chooser_widget.html.slim +0 -10
- data/frontend/app/views/gaku/shared/student_chooser/_modal.html.slim +0 -3
- data/frontend/app/views/gaku/shared/student_selection/_chooser.html.slim +0 -16
- data/frontend/app/views/gaku/shared/student_selection/_modal.html.slim +0 -3
- data/frontend/app/views/gaku/states_list/_no_states_select.html.slim +0 -4
- data/frontend/app/views/gaku/states_list/_states_select.html.slim +0 -3
- data/frontend/app/views/gaku/states_list/index.js.erb +0 -5
- data/frontend/app/views/gaku/student_selection/_selected_student.html.slim +0 -4
- data/frontend/app/views/gaku/student_selection/add.js.erb +0 -3
- data/frontend/app/views/gaku/student_selection/clear.js.erb +0 -2
- data/frontend/app/views/gaku/student_selection/collection.js.erb +0 -0
- data/frontend/app/views/gaku/student_selection/index.js.erb +0 -10
- data/frontend/app/views/gaku/student_selection/remove.js.erb +0 -8
- data/frontend/app/views/gaku/students/_chooser_widget.html.slim +0 -18
- data/frontend/app/views/gaku/students/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/students/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/_form_fields.html.slim +0 -22
- data/frontend/app/views/gaku/students/_student.html.slim +0 -4
- data/frontend/app/views/gaku/students/_student_unit.html.slim +0 -4
- data/frontend/app/views/gaku/students/_students.html.slim +0 -64
- data/frontend/app/views/gaku/students/_table_fields.html.slim +0 -63
- data/frontend/app/views/gaku/students/advanced_search.js.erb +0 -66
- data/frontend/app/views/gaku/students/badges/_badge.html.slim +0 -2
- data/frontend/app/views/gaku/students/badges/_badges.html.slim +0 -20
- data/frontend/app/views/gaku/students/badges/_edit.html.slim +0 -9
- data/frontend/app/views/gaku/students/badges/_fields.html.slim +0 -8
- data/frontend/app/views/gaku/students/badges/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/badges/_form_fields.html.slim +0 -1
- data/frontend/app/views/gaku/students/badges/create.js.erb +0 -9
- data/frontend/app/views/gaku/students/badges/destroy.js.erb +0 -4
- data/frontend/app/views/gaku/students/badges/edit.js.erb +0 -3
- data/frontend/app/views/gaku/students/badges/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/badges/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/badges/update.js.erb +0 -3
- data/frontend/app/views/gaku/students/chosen.js.erb +0 -10
- data/frontend/app/views/gaku/students/class_group_enrollments/_class_group_enrollment.html.slim +0 -5
- data/frontend/app/views/gaku/students/class_group_enrollments/_class_group_enrollments.html.slim +0 -19
- data/frontend/app/views/gaku/students/class_group_enrollments/_form.html.slim +0 -4
- data/frontend/app/views/gaku/students/class_group_enrollments/create.js.erb +0 -13
- data/frontend/app/views/gaku/students/class_group_enrollments/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/students/class_group_enrollments/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/class_group_enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +0 -3
- data/frontend/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +0 -17
- data/frontend/app/views/gaku/students/course_enrollments/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/course_enrollments/create.js.erb +0 -9
- data/frontend/app/views/gaku/students/course_enrollments/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/students/course_enrollments/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/course_enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/create.js.erb +0 -8
- data/frontend/app/views/gaku/students/destroy.js.erb +0 -2
- data/frontend/app/views/gaku/students/edit.html.slim +0 -67
- data/frontend/app/views/gaku/students/edit.js.erb +0 -1
- data/frontend/app/views/gaku/students/external_school_records/_external_school_record.html.slim +0 -2
- data/frontend/app/views/gaku/students/external_school_records/_external_school_records.html.slim +0 -24
- data/frontend/app/views/gaku/students/external_school_records/_fields.html.slim +0 -10
- data/frontend/app/views/gaku/students/external_school_records/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/external_school_records/_form_fields.html.slim +0 -17
- data/frontend/app/views/gaku/students/external_school_records/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/students/external_school_records/create.js.erb +0 -9
- data/frontend/app/views/gaku/students/external_school_records/destroy.js.erb +0 -4
- data/frontend/app/views/gaku/students/external_school_records/edit.js.erb +0 -4
- data/frontend/app/views/gaku/students/external_school_records/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/external_school_records/new.js.erb +0 -4
- data/frontend/app/views/gaku/students/external_school_records/update.js.erb +0 -3
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/_extracurricular_activity_enrollment.html.slim +0 -3
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/_extracurricular_activity_enrollments.html.slim +0 -17
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/create.js.erb +0 -9
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/extracurricular_activity_enrollments/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/importer/index.html.slim +0 -26
- data/frontend/app/views/gaku/students/index.html.slim +0 -21
- data/frontend/app/views/gaku/students/index.js.erb +0 -2
- data/frontend/app/views/gaku/students/new.html.slim +0 -3
- data/frontend/app/views/gaku/students/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/search/_academic.html.slim +0 -22
- data/frontend/app/views/gaku/students/search/_address.html.slim +0 -34
- data/frontend/app/views/gaku/students/search/_advanced_form.html.slim +0 -36
- data/frontend/app/views/gaku/students/search/_extended.slim +0 -108
- data/frontend/app/views/gaku/students/search/_form.html.slim +0 -8
- data/frontend/app/views/gaku/students/search/_student.html.slim +0 -36
- data/frontend/app/views/gaku/students/simple_grades/_edit.html.slim +0 -6
- data/frontend/app/views/gaku/students/simple_grades/_fields.html.slim +0 -8
- data/frontend/app/views/gaku/students/simple_grades/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/simple_grades/_form_fields.html.slim +0 -7
- data/frontend/app/views/gaku/students/simple_grades/_simple_grade.html.slim +0 -2
- data/frontend/app/views/gaku/students/simple_grades/_simple_grades.html.slim +0 -21
- data/frontend/app/views/gaku/students/simple_grades/create.js.erb +0 -10
- data/frontend/app/views/gaku/students/simple_grades/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/students/simple_grades/edit.js.erb +0 -6
- data/frontend/app/views/gaku/students/simple_grades/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/simple_grades/new.js.erb +0 -6
- data/frontend/app/views/gaku/students/simple_grades/update.js.erb +0 -3
- data/frontend/app/views/gaku/students/student_specialties/_edit.html.slim +0 -6
- data/frontend/app/views/gaku/students/student_specialties/_fields.html.slim +0 -5
- data/frontend/app/views/gaku/students/student_specialties/_form.html.slim +0 -3
- data/frontend/app/views/gaku/students/student_specialties/_form_fields.html.slim +0 -2
- data/frontend/app/views/gaku/students/student_specialties/_student_specialties.html.slim +0 -18
- data/frontend/app/views/gaku/students/student_specialties/_student_specialty.html.slim +0 -2
- data/frontend/app/views/gaku/students/student_specialties/create.js.erb +0 -10
- data/frontend/app/views/gaku/students/student_specialties/destroy.js.erb +0 -4
- data/frontend/app/views/gaku/students/student_specialties/edit.js.erb +0 -3
- data/frontend/app/views/gaku/students/student_specialties/index.js.erb +0 -1
- data/frontend/app/views/gaku/students/student_specialties/new.js.erb +0 -3
- data/frontend/app/views/gaku/students/student_specialties/update.js.erb +0 -3
- data/frontend/app/views/gaku/syllabuses/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/syllabuses/_fields.html.slim +0 -7
- data/frontend/app/views/gaku/syllabuses/_form.html.slim +0 -3
- data/frontend/app/views/gaku/syllabuses/_form_fields.html.slim +0 -12
- data/frontend/app/views/gaku/syllabuses/_syllabus.html.slim +0 -2
- data/frontend/app/views/gaku/syllabuses/_syllabuses.html.slim +0 -12
- data/frontend/app/views/gaku/syllabuses/create.js.erb +0 -7
- data/frontend/app/views/gaku/syllabuses/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/syllabuses/edit.html.slim +0 -16
- data/frontend/app/views/gaku/syllabuses/edit.js.erb +0 -1
- data/frontend/app/views/gaku/syllabuses/exam_syllabuses/_form.html.slim +0 -6
- data/frontend/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +0 -12
- data/frontend/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +0 -6
- data/frontend/app/views/gaku/syllabuses/exam_syllabuses/new.js.erb +0 -8
- data/frontend/app/views/gaku/syllabuses/exams/_exam.html.slim +0 -3
- data/frontend/app/views/gaku/syllabuses/exams/_exams.html.slim +0 -29
- data/frontend/app/views/gaku/syllabuses/exams/_fields.html.slim +0 -10
- data/frontend/app/views/gaku/syllabuses/exams/_form.html.slim +0 -17
- data/frontend/app/views/gaku/syllabuses/exams/_form_fields.html.slim +0 -10
- data/frontend/app/views/gaku/syllabuses/exams/_modal.html.slim +0 -4
- data/frontend/app/views/gaku/syllabuses/exams/create.js.erb +0 -9
- data/frontend/app/views/gaku/syllabuses/exams/destroy.js.erb +0 -3
- data/frontend/app/views/gaku/syllabuses/exams/edit.js.erb +0 -3
- data/frontend/app/views/gaku/syllabuses/exams/index.js.erb +0 -1
- data/frontend/app/views/gaku/syllabuses/exams/new.js.erb +0 -8
- data/frontend/app/views/gaku/syllabuses/exams/update.js.erb +0 -4
- data/frontend/app/views/gaku/syllabuses/importer/index.html.slim +0 -14
- data/frontend/app/views/gaku/syllabuses/index.html.slim +0 -14
- data/frontend/app/views/gaku/syllabuses/new.js.erb +0 -3
- data/frontend/app/views/gaku/syllabuses/update.js.erb +0 -1
- data/frontend/app/views/gaku/teachers/_edit_form.html.slim +0 -9
- data/frontend/app/views/gaku/teachers/_fields.html.slim +0 -9
- data/frontend/app/views/gaku/teachers/_form.html.slim +0 -3
- data/frontend/app/views/gaku/teachers/_form_fields.html.slim +0 -1
- data/frontend/app/views/gaku/teachers/_teacher.html.slim +0 -5
- data/frontend/app/views/gaku/teachers/_teachers.html.slim +0 -11
- data/frontend/app/views/gaku/teachers/create.js.erb +0 -8
- data/frontend/app/views/gaku/teachers/destroy.js.erb +0 -1
- data/frontend/app/views/gaku/teachers/edit.html.slim +0 -27
- data/frontend/app/views/gaku/teachers/edit.js.erb +0 -1
- data/frontend/app/views/gaku/teachers/index.html.slim +0 -16
- data/frontend/app/views/gaku/teachers/new.js.erb +0 -3
- data/frontend/app/views/gaku/teachers/show.html.slim +0 -11
- data/frontend/app/views/kaminari/_first_page.html.erb +0 -11
- data/frontend/app/views/kaminari/_gap.html.erb +0 -8
- data/frontend/app/views/kaminari/_last_page.html.erb +0 -11
- data/frontend/app/views/kaminari/_next_page.html.erb +0 -11
- data/frontend/app/views/kaminari/_page.html.erb +0 -12
- data/frontend/app/views/kaminari/_paginator.html.erb +0 -27
- data/frontend/app/views/kaminari/_prev_page.html.erb +0 -11
- data/frontend/config/initializers/wrap_parameters.rb +0 -14
- data/frontend/config/routes.rb +0 -173
- data/frontend/coverage/.last_run.json +0 -5
- data/frontend/coverage/.resultset.json +0 -179
- data/frontend/gaku_frontend.gemspec +0 -51
- data/frontend/lib/gaku/app_responder.rb +0 -6
- data/frontend/lib/gaku/class_name_detector.rb +0 -23
- data/frontend/lib/gaku/frontend.rb +0 -36
- data/frontend/lib/gaku/frontend/engine.rb +0 -30
- data/frontend/lib/gaku_frontend.rb +0 -1
- data/frontend/lib/tasks/admin_user.rake +0 -105
- data/frontend/lib/tasks/core.rake +0 -65
- data/frontend/lib/tasks/reset.rake +0 -37
- data/frontend/spec/controllers/gaku/addresses_controller_spec.rb +0 -152
- data/frontend/spec/controllers/gaku/class_groups/class_groups_controller_spec.rb +0 -156
- data/frontend/spec/controllers/gaku/contacts_controller_spec.rb +0 -152
- data/frontend/spec/controllers/gaku/course_groups/course_group_enrollments_controller.rb +0 -98
- data/frontend/spec/controllers/gaku/course_groups/course_groups_controller_spec.rb +0 -142
- data/frontend/spec/controllers/gaku/courses/courses_controller_spec.rb +0 -143
- data/frontend/spec/controllers/gaku/exams/exam_portions_controller_spec.rb +0 -141
- data/frontend/spec/controllers/gaku/exams/exam_sessions_controller_spec.rb +0 -147
- data/frontend/spec/controllers/gaku/exams/exams_controller_spec.rb +0 -152
- data/frontend/spec/controllers/gaku/extracurricular_activities_controller_spec.rb +0 -174
- data/frontend/spec/controllers/gaku/guardians_controller_spec.rb +0 -125
- data/frontend/spec/controllers/gaku/notes_controller_spec.rb +0 -143
- data/frontend/spec/controllers/gaku/student_selection_controller_spec.rb +0 -66
- data/frontend/spec/controllers/gaku/students/badges_controller_spec.rb +0 -134
- data/frontend/spec/controllers/gaku/students/external_school_records_controller_spec.rb +0 -154
- data/frontend/spec/controllers/gaku/students/simple_grades_controller_spec.rb +0 -154
- data/frontend/spec/controllers/gaku/students/student_specialties_controller_spec.rb +0 -134
- data/frontend/spec/controllers/gaku/students/students_controller_spec.rb +0 -481
- data/frontend/spec/controllers/gaku/syllabuses_controller_spec.rb +0 -161
- data/frontend/spec/controllers/gaku/teachers_controller_spec.rb +0 -159
- data/frontend/spec/coverage/.last_run.json +0 -5
- data/frontend/spec/coverage/.resultset.json +0 -103
- data/frontend/spec/features/other/change_language_spec.rb +0 -25
- data/frontend/spec/features/other/class_groups/class_groups_spec.rb +0 -96
- data/frontend/spec/features/other/class_groups/enrollments_spec.rb +0 -109
- data/frontend/spec/features/other/class_groups/notes_spec.rb +0 -32
- data/frontend/spec/features/other/class_groups/semester_attendances_spec.rb +0 -52
- data/frontend/spec/features/other/class_groups/semester_connectors_spec.rb +0 -106
- data/frontend/spec/features/other/class_groups/student_reviews_spec.rb +0 -77
- data/frontend/spec/features/other/course_groups/course_groups_spec.rb +0 -75
- data/frontend/spec/features/other/course_groups/courses_spec.rb +0 -38
- data/frontend/spec/features/other/courses/courses_spec.rb +0 -137
- data/frontend/spec/features/other/courses/enrollments_spec.rb +0 -96
- data/frontend/spec/features/other/courses/exams_spec.rb +0 -36
- data/frontend/spec/features/other/courses/grading_method_connectors_spec.rb +0 -99
- data/frontend/spec/features/other/courses/notes_spec.rb +0 -32
- data/frontend/spec/features/other/courses/semester_connectors_spec.rb +0 -97
- data/frontend/spec/features/other/exams/exam_portions/attachments_spec.rb +0 -90
- data/frontend/spec/features/other/exams/exam_portions/exam_portions_spec.rb +0 -86
- data/frontend/spec/features/other/exams/exam_sessions_spec.rb +0 -75
- data/frontend/spec/features/other/exams/exams_spec.rb +0 -138
- data/frontend/spec/features/other/exams/grading_method_connectors_spec.rb +0 -106
- data/frontend/spec/features/other/exams/notes_spec.rb +0 -32
- data/frontend/spec/features/other/extracurricular_activities/enrollments_spec.rb +0 -84
- data/frontend/spec/features/other/extracurricular_activities/extracurricular_activities_spec.rb +0 -66
- data/frontend/spec/features/other/sign_in_spec.rb +0 -78
- data/frontend/spec/features/other/sign_out_spec.rb +0 -16
- data/frontend/spec/features/other/sign_up_spec.rb +0 -70
- data/frontend/spec/features/other/syllabuses/exams_spec.rb +0 -161
- data/frontend/spec/features/other/syllabuses/notes_spec.rb +0 -32
- data/frontend/spec/features/other/syllabuses/syllabuses_spec.rb +0 -72
- data/frontend/spec/features/other/teachers/addresses_spec.rb +0 -62
- data/frontend/spec/features/other/teachers/contacts_spec.rb +0 -55
- data/frontend/spec/features/other/teachers/notes_spec.rb +0 -34
- data/frontend/spec/features/other/teachers/picture_spec.rb +0 -54
- data/frontend/spec/features/other/teachers/teachers_spec.rb +0 -81
- data/frontend/spec/features/students/addresses_spec.rb +0 -62
- data/frontend/spec/features/students/badges_spec.rb +0 -91
- data/frontend/spec/features/students/class_group_enrollments_spec.rb +0 -91
- data/frontend/spec/features/students/commute_methods_spec.rb +0 -22
- data/frontend/spec/features/students/contacts_spec.rb +0 -59
- data/frontend/spec/features/students/course_enrollments_spec.rb +0 -62
- data/frontend/spec/features/students/enrollment_status_spec.rb +0 -22
- data/frontend/spec/features/students/external_school_records_spec.rb +0 -70
- data/frontend/spec/features/students/extracurricular_activity_enrollments_spec.rb +0 -64
- data/frontend/spec/features/students/guardians/addresses_spec.rb +0 -67
- data/frontend/spec/features/students/guardians/contacts_spec.rb +0 -53
- data/frontend/spec/features/students/guardians/guardians_spec.rb +0 -74
- data/frontend/spec/features/students/guardians/picture_spec.rb +0 -57
- data/frontend/spec/features/students/notes_spec.rb +0 -33
- data/frontend/spec/features/students/picture_spec.rb +0 -54
- data/frontend/spec/features/students/preset_spec.rb +0 -473
- data/frontend/spec/features/students/scholarship_status_spec.rb +0 -22
- data/frontend/spec/features/students/simple_grades_spec.rb +0 -84
- data/frontend/spec/features/students/student_specialties_spec.rb +0 -76
- data/frontend/spec/features/students/students_selection_spec.rb +0 -150
- data/frontend/spec/features/students/students_spec.rb +0 -245
- data/frontend/spec/requests/class_groups/enrollments_spec.rb +0 -236
- data/frontend/spec/requests/courses/enrollments_spec.rb +0 -242
- data/frontend/spec/requests/extracurricular_activities/enrollments_spec.rb +0 -258
- data/frontend/spec/routing/class_groups/enrollments_routing_spec.rb +0 -55
- data/frontend/spec/routing/courses/enrollments_routing_spec.rb +0 -55
- data/frontend/spec/routing/extracurricular_activities/enrollments_routing_spec.rb +0 -55
- data/frontend/spec/routing/guardians_routing_spec.rb +0 -79
- data/frontend/spec/routing/student_routes_spec.rb +0 -44
- data/frontend/spec/routing/students/badges_routes_spec.rb +0 -62
- data/frontend/spec/routing/students/external_school_records_routing_spec.rb +0 -62
- data/frontend/spec/routing/students/simple_grades_routes_spec.rb +0 -62
- data/frontend/spec/routing/students/student_specialties_routes_spec.rb +0 -62
- data/frontend/spec/routing/teachers_routes_spec.rb +0 -75
- data/frontend/spec/spec_helper.rb +0 -5
- data/frontend/spec/spec_helper_controllers.rb +0 -4
- data/frontend/spec/spec_helper_routing.rb +0 -4
- data/frontend/spec/support/120x120.jpg +0 -0
- data/frontend/spec/support/controllers/matchers/have_attributes_matcher.rb +0 -8
- data/frontend/spec/support/controllers/shared_examples/allow.rb +0 -10
- data/frontend/spec/support/controllers/shared_examples/deny.rb +0 -27
- data/frontend/spec/support/features/shared_examples/addresses_spec.rb +0 -169
- data/frontend/spec/support/features/shared_examples/avatarable_spec.rb +0 -20
- data/frontend/spec/support/features/shared_examples/contacts_spec.rb +0 -121
- data/frontend/spec/support/features/shared_examples/course_enrollable_spec.rb +0 -77
- data/frontend/spec/support/features/shared_examples/notes_spec.rb +0 -85
- data/frontend/spec/support/models/matchers/accept_nested_attributes_for_matcher.rb +0 -42
- data/frontend/spec/support/models/shared_examples/addressable.rb +0 -3
- data/frontend/spec/support/models/shared_examples/avatarable.rb +0 -3
- data/frontend/spec/support/models/shared_examples/contactable.rb +0 -3
- data/frontend/spec/support/models/shared_examples/notable.rb +0 -3
- data/frontend/spec/support/models/shared_examples/person.rb +0 -4
- data/frontend/spec/support/models/shared_examples/thrashable.rb +0 -6
- data/sample/Rakefile +0 -4
- data/sample/db/sample/gaku/01_syllabuses.rb +0 -128
- data/sample/db/sample/gaku/02_courses.rb +0 -12
- data/sample/db/sample/gaku/20-grading_methods.rb +0 -32
- data/sample/db/sample/gaku/badge_types.rb +0 -8
- data/sample/db/sample/gaku/changes/student_changes.rb +0 -33
- data/sample/db/sample/gaku/class_groups.rb +0 -32
- data/sample/db/sample/gaku/course_groups.rb +0 -7
- data/sample/db/sample/gaku/disposals/address_and_contact_disposals.rb +0 -26
- data/sample/db/sample/gaku/disposals/attachment_disposals.rb +0 -17
- data/sample/db/sample/gaku/disposals/course_group_disposals.rb +0 -8
- data/sample/db/sample/gaku/disposals/exam_disposals.rb +0 -8
- data/sample/db/sample/gaku/disposals/student_disposals.rb +0 -10
- data/sample/db/sample/gaku/disposals/teacher_disposals.rb +0 -8
- data/sample/db/sample/gaku/exams.rb +0 -11
- data/sample/db/sample/gaku/extracurricular_activities.rb +0 -4
- data/sample/db/sample/gaku/grading_widget.rb +0 -25
- data/sample/db/sample/gaku/images/120x120.jpg +0 -0
- data/sample/db/sample/gaku/roles.rb +0 -6
- data/sample/db/sample/gaku/schools.rb +0 -22
- data/sample/db/sample/gaku/specialties.rb +0 -4
- data/sample/db/sample/gaku/students.rb +0 -20
- data/sample/db/sample/gaku/teachers.rb +0 -16
- data/sample/db/sample/gaku/users.rb +0 -58
- data/sample/gaku_sample.gemspec +0 -20
- data/sample/lib/gaku_sample.rb +0 -10
- data/sample/lib/sample_counters.rb +0 -23
- data/sample/lib/shared_sample_data.rb +0 -142
- data/sample/lib/tasks/sample.rake +0 -73
- data/testing/Rakefile +0 -12
- data/testing/gaku_testing.gemspec +0 -17
- data/testing/lib/gaku/testing.rb +0 -10
- data/testing/lib/gaku/testing/engine.rb +0 -10
- data/testing/lib/gaku/testing/env.rb +0 -19
- data/testing/lib/gaku/testing/feature_helpers.rb +0 -155
- data/testing/lib/gaku/testing/flash_helpers.rb +0 -35
- data/testing/lib/gaku/testing/spec_helpers/spec_helper.rb +0 -50
- data/testing/lib/gaku/testing/spec_helpers/spec_helper_base.rb +0 -21
- data/testing/lib/gaku/testing/spec_helpers/spec_helper_controllers.rb +0 -45
- data/testing/lib/gaku/testing/spec_helpers/spec_helper_models.rb +0 -38
- data/testing/lib/gaku/testing/spec_helpers/spec_helper_routing.rb +0 -6
- data/testing/lib/gaku_testing.rb +0 -1
@@ -1,60 +0,0 @@
|
|
1
|
-
class Gaku::Devise::RegistrationsController < Devise::RegistrationsController
|
2
|
-
# helper Gaku::GakuHelper
|
3
|
-
layout 'gaku/layouts/gaku'
|
4
|
-
|
5
|
-
def set_up_admin_account
|
6
|
-
resource = build_resource({})
|
7
|
-
respond_with resource
|
8
|
-
end
|
9
|
-
|
10
|
-
def create
|
11
|
-
build_resource(user_params)
|
12
|
-
|
13
|
-
if resource.save
|
14
|
-
if resource.active_for_authentication?
|
15
|
-
set_flash_message :notice, :signed_up if is_navigational_format?
|
16
|
-
sign_up(resource_name, resource)
|
17
|
-
respond_with resource, location: after_sign_up_path_for(resource)
|
18
|
-
else
|
19
|
-
set_flash_message :notice, :"signed_up_but_#{resource.inactive_message}" if is_navigational_format?
|
20
|
-
expire_session_data_after_sign_in!
|
21
|
-
respond_with resource, location: after_inactive_sign_up_path_for(resource)
|
22
|
-
end
|
23
|
-
else
|
24
|
-
clean_up_passwords resource
|
25
|
-
respond_with resource
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def create_admin
|
30
|
-
build_resource(user_params)
|
31
|
-
admin_role = Gaku::Role.where(name: 'Admin').first_or_create!
|
32
|
-
resource.roles << admin_role
|
33
|
-
|
34
|
-
if resource.save
|
35
|
-
if resource.active_for_authentication?
|
36
|
-
set_flash_message :notice, :signed_up if is_navigational_format?
|
37
|
-
sign_up(resource_name, resource)
|
38
|
-
respond_with resource, location: after_sign_up_path_for(resource)
|
39
|
-
else
|
40
|
-
set_flash_message :notice, :"signed_up_but_#{resource.inactive_message}" if is_navigational_format?
|
41
|
-
expire_session_data_after_sign_in!
|
42
|
-
respond_with resource, location: after_inactive_sign_up_path_for(resource)
|
43
|
-
end
|
44
|
-
else
|
45
|
-
clean_up_passwords resource
|
46
|
-
respond_with resource
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
protected
|
51
|
-
|
52
|
-
def user_params
|
53
|
-
params.require(:user).permit(user_attr)
|
54
|
-
end
|
55
|
-
|
56
|
-
def user_attr
|
57
|
-
%i( username email password password_confirmation )
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class Gaku::Devise::SessionsController < Devise::SessionsController
|
2
|
-
# helper Gaku::GakuHelper
|
3
|
-
layout 'gaku/layouts/gaku'
|
4
|
-
|
5
|
-
skip_before_filter :require_login, except: %i( new create )
|
6
|
-
|
7
|
-
def create
|
8
|
-
self.resource = warden.authenticate!(auth_options)
|
9
|
-
set_flash_message(:notice, :signed_in)
|
10
|
-
sign_in(resource_name, resource)
|
11
|
-
yield resource if block_given?
|
12
|
-
redirect_to session['previous_url'] || root_path
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
@@ -1,130 +0,0 @@
|
|
1
|
-
module Gaku
|
2
|
-
class EnrollmentsController < GakuController
|
3
|
-
|
4
|
-
respond_to :js, only: %i( new create destroy student_selection create_from_selection )
|
5
|
-
|
6
|
-
before_action :set_enrollmentable
|
7
|
-
before_action :set_enrollment, only: %i( destroy )
|
8
|
-
before_action :set_students, only: %i( new )
|
9
|
-
|
10
|
-
def index
|
11
|
-
end
|
12
|
-
|
13
|
-
def student_selection
|
14
|
-
@enrollment = @enrollmentable.enrollments.new
|
15
|
-
@student_selection = Gaku::StudentSelection.new(current_user).all
|
16
|
-
end
|
17
|
-
|
18
|
-
def new
|
19
|
-
@enrollment = @enrollmentable.enrollments.new
|
20
|
-
end
|
21
|
-
|
22
|
-
def create_from_selection
|
23
|
-
if params[:selected_students].blank?
|
24
|
-
missing_selected_students
|
25
|
-
else
|
26
|
-
@enrollments, students = [], {}
|
27
|
-
students[:enrolled], students[:not_found], students[:failed] = [], [], []
|
28
|
-
|
29
|
-
params[:selected_students].each do |student_id|
|
30
|
-
student = Student.where(id: student_id).first
|
31
|
-
if student
|
32
|
-
enrollment = @enrollmentable.enrollments.build(student_id: student_id)
|
33
|
-
if enrollment.save
|
34
|
-
@enrollments << enrollment
|
35
|
-
students[:enrolled] << student.decorate.full_name
|
36
|
-
else
|
37
|
-
students[:failed] << enrollment
|
38
|
-
end
|
39
|
-
else
|
40
|
-
students[:not_found] << student_id
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
set_flash_messages(students)
|
45
|
-
set_count
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
def create
|
50
|
-
@enrollment = @enrollmentable.enrollments.build(enrollment_params)
|
51
|
-
@enrollment.save
|
52
|
-
set_count
|
53
|
-
respond_with @enrollment
|
54
|
-
end
|
55
|
-
|
56
|
-
def destroy
|
57
|
-
@enrollment.destroy
|
58
|
-
set_count
|
59
|
-
respond_with @enrollment
|
60
|
-
end
|
61
|
-
|
62
|
-
private
|
63
|
-
|
64
|
-
def set_enrollmentable
|
65
|
-
resource, id = request.path.split('/')[1, 2]
|
66
|
-
@enrollmentable = resource.insert(0, 'gaku/').pluralize.classify.constantize.find(id)
|
67
|
-
@enrollmentable_resource = @enrollmentable.class.to_s.demodulize.underscore.dasherize
|
68
|
-
end
|
69
|
-
|
70
|
-
def set_enrollment
|
71
|
-
@enrollment = Enrollment.find(params[:id])
|
72
|
-
end
|
73
|
-
|
74
|
-
def enrollment_params
|
75
|
-
params.require(:enrollment).permit(attributes)
|
76
|
-
end
|
77
|
-
|
78
|
-
def attributes
|
79
|
-
%i( student_id )
|
80
|
-
end
|
81
|
-
|
82
|
-
def set_count
|
83
|
-
@count = @enrollmentable.reload.enrollments_count
|
84
|
-
end
|
85
|
-
|
86
|
-
def set_students
|
87
|
-
@students = Student.all
|
88
|
-
end
|
89
|
-
|
90
|
-
def missing_selected_students
|
91
|
-
set_count
|
92
|
-
flash.now[:error] = 'No students selected!'
|
93
|
-
redirect_to [@enrollmentable, :enrollments]
|
94
|
-
end
|
95
|
-
|
96
|
-
def set_flash_messages(students)
|
97
|
-
flash_success(students[:enrolled]) if students[:enrolled].size > 0
|
98
|
-
flash_not_found(students[:not_found]) if students[:not_found].size > 0
|
99
|
-
flash_failure(students[:failed]) if students[:failed].size > 0
|
100
|
-
end
|
101
|
-
|
102
|
-
def flash_failure(enrollments)
|
103
|
-
msg = ''
|
104
|
-
enrollments.each do |enrollment|
|
105
|
-
student = Gaku::Student.find(enrollment.student_id)
|
106
|
-
msg += msg_for_failed_enrollment(student, enrollment.errors.full_messages.join(', '))
|
107
|
-
end
|
108
|
-
flash.now[:error] = msg.html_safe
|
109
|
-
end
|
110
|
-
|
111
|
-
def flash_not_found(ids)
|
112
|
-
flash.now[:error] = "Students with ids: #{ids.join(', ')} not found".html_safe
|
113
|
-
end
|
114
|
-
|
115
|
-
def flash_success(students)
|
116
|
-
msg = ''
|
117
|
-
students.each { |student| msg += msg_for_enrollment(student) }
|
118
|
-
flash.now[:success] = msg.html_safe
|
119
|
-
end
|
120
|
-
|
121
|
-
def msg_for_enrollment(student)
|
122
|
-
"<p>#{student} : <span style='color:green;'> #{t(:'success.enrolled')}</span></p>"
|
123
|
-
end
|
124
|
-
|
125
|
-
def msg_for_failed_enrollment(student, errors)
|
126
|
-
"<p>#{student} : <span style='color:orange;'> #{errors}</span></p>"
|
127
|
-
end
|
128
|
-
|
129
|
-
end
|
130
|
-
end
|
@@ -1,49 +0,0 @@
|
|
1
|
-
module Gaku
|
2
|
-
class ExamPortionScoresController < GakuController
|
3
|
-
|
4
|
-
respond_to :js
|
5
|
-
|
6
|
-
before_action :set_course, only: :update
|
7
|
-
before_action :set_exam, only: :update
|
8
|
-
|
9
|
-
def update
|
10
|
-
exam_portion_score = ExamPortionScore.find(params[:id])
|
11
|
-
exam_portion_score.update_attributes(exam_portion_score_params)
|
12
|
-
|
13
|
-
student = exam_portion_score.student
|
14
|
-
grading_methods = @course.grading_methods
|
15
|
-
|
16
|
-
calculations = Grading::Single::Calculations.new(grading_methods, student, @exam, @course.students).calculate
|
17
|
-
|
18
|
-
message = {
|
19
|
-
exam_id: @exam.id,
|
20
|
-
course_id: @course.id,
|
21
|
-
calculations: calculations,
|
22
|
-
exam_portion_score: exam_portion_score
|
23
|
-
}
|
24
|
-
|
25
|
-
$redis.publish('grading-change', message.to_json)
|
26
|
-
|
27
|
-
render nothing: true
|
28
|
-
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
def exam_portion_score_params
|
33
|
-
params.require(:exam_portion_score).permit(attributes)
|
34
|
-
end
|
35
|
-
|
36
|
-
def attributes
|
37
|
-
%i( score )
|
38
|
-
end
|
39
|
-
|
40
|
-
def set_course
|
41
|
-
@course = Course.find(params[:course_id])
|
42
|
-
end
|
43
|
-
|
44
|
-
def set_exam
|
45
|
-
@exam = Exam.find(params[:exam_id])
|
46
|
-
end
|
47
|
-
|
48
|
-
end
|
49
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
module Gaku
|
2
|
-
class Exams::ExamPortionsController < GakuController
|
3
|
-
|
4
|
-
authorize_resource class: false
|
5
|
-
|
6
|
-
respond_to :js, :html
|
7
|
-
|
8
|
-
before_action :set_exam, only: %i( new show create edit update destroy sort index )
|
9
|
-
before_action :set_exam_portion, only: %i( show edit update destroy )
|
10
|
-
before_action :set_attachable, only: %i( edit )
|
11
|
-
|
12
|
-
def index
|
13
|
-
end
|
14
|
-
|
15
|
-
def new
|
16
|
-
@exam_portion = ExamPortion.new
|
17
|
-
respond_with @exam_portion
|
18
|
-
end
|
19
|
-
|
20
|
-
def create
|
21
|
-
@exam_portion = @exam.exam_portions.create(exam_portion_params)
|
22
|
-
set_count
|
23
|
-
respond_with @exam_portion
|
24
|
-
end
|
25
|
-
|
26
|
-
def show
|
27
|
-
respond_with @exam_portion
|
28
|
-
end
|
29
|
-
|
30
|
-
def edit
|
31
|
-
respond_with @exam_portion
|
32
|
-
end
|
33
|
-
|
34
|
-
def update
|
35
|
-
@exam_portion.update(exam_portion_params)
|
36
|
-
respond_with @exam_portion# , location: [@exam, :exam_portions]
|
37
|
-
end
|
38
|
-
|
39
|
-
def destroy
|
40
|
-
@exam_portion.destroy
|
41
|
-
# if @exam.exam_portions.empty?
|
42
|
-
# if @exam.destroy!
|
43
|
-
# flash[:notice] = t(:'notice.destroyed', resource: t(:'exam.singular'))
|
44
|
-
# end
|
45
|
-
# end
|
46
|
-
set_count
|
47
|
-
respond_with @exam_portion
|
48
|
-
end
|
49
|
-
|
50
|
-
def sort
|
51
|
-
params[:'exam-portion'].each_with_index do |id, index|
|
52
|
-
@exam.exam_portions.update_all({ position: index }, { id: id })
|
53
|
-
end
|
54
|
-
render nothing: true
|
55
|
-
end
|
56
|
-
|
57
|
-
private
|
58
|
-
|
59
|
-
def exam_portion_params
|
60
|
-
params.require(:exam_portion).permit(attributes)
|
61
|
-
end
|
62
|
-
|
63
|
-
def attributes
|
64
|
-
%i( name weight problem_count max_score description adjustments )
|
65
|
-
end
|
66
|
-
|
67
|
-
def set_exam_portion
|
68
|
-
@exam_portion = ExamPortion.find(params[:id])
|
69
|
-
end
|
70
|
-
|
71
|
-
def set_exam
|
72
|
-
@exam = Exam.find(params[:exam_id])
|
73
|
-
end
|
74
|
-
|
75
|
-
def set_count
|
76
|
-
@count = @exam.reload.exam_portions_count
|
77
|
-
end
|
78
|
-
|
79
|
-
def set_attachable
|
80
|
-
@attachable = @exam_portion
|
81
|
-
@attachable_resource = 'exam-exam-portion-attachment'
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
module Gaku
|
2
|
-
class Exams::ExamSessionsController < GakuController
|
3
|
-
|
4
|
-
respond_to :js, except: :index
|
5
|
-
|
6
|
-
before_filter :set_exam_session, only: %i( edit update destroy )
|
7
|
-
before_filter :load_data, only: %i( new edit )
|
8
|
-
before_filter :set_count, only: :create
|
9
|
-
|
10
|
-
def new
|
11
|
-
@exam_session = ExamSession.new
|
12
|
-
respond_with @exam_session
|
13
|
-
end
|
14
|
-
|
15
|
-
def create
|
16
|
-
@exam_session = ExamSession.create(exam_session_params)
|
17
|
-
set_count
|
18
|
-
respond_with @exam_session
|
19
|
-
end
|
20
|
-
|
21
|
-
def edit
|
22
|
-
respond_with @exam_session
|
23
|
-
end
|
24
|
-
|
25
|
-
def update
|
26
|
-
@exam_session.update(exam_session_params)
|
27
|
-
respond_with @exam_session, location: [:edit, @exam_session]
|
28
|
-
end
|
29
|
-
|
30
|
-
def destroy
|
31
|
-
@exam_session.destroy!
|
32
|
-
respond_with @exam_session, location: [:exams]
|
33
|
-
end
|
34
|
-
|
35
|
-
private
|
36
|
-
|
37
|
-
def exam_session_params
|
38
|
-
params.require(:exam_session).permit(attributes)
|
39
|
-
end
|
40
|
-
|
41
|
-
def attributes
|
42
|
-
%i( name session_time exam_id session_start )
|
43
|
-
end
|
44
|
-
|
45
|
-
def set_exam_session
|
46
|
-
@exam_session = ExamSession.find(params[:id])
|
47
|
-
end
|
48
|
-
|
49
|
-
def load_data
|
50
|
-
@exams = Exam.all
|
51
|
-
end
|
52
|
-
|
53
|
-
def set_count
|
54
|
-
@count = ExamSession.count
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
58
|
-
end
|
@@ -1,127 +0,0 @@
|
|
1
|
-
module Gaku
|
2
|
-
class ExamsController < GakuController
|
3
|
-
|
4
|
-
respond_to :html, :js, :json
|
5
|
-
respond_to :xls, only: :export
|
6
|
-
|
7
|
-
before_action :set_exam, only: %i( show edit update destroy )
|
8
|
-
before_action :load_data, only: %i( new edit )
|
9
|
-
|
10
|
-
def index
|
11
|
-
if params[:course_id]
|
12
|
-
@exams = Course.find(params[:course_id]).syllabus.exams
|
13
|
-
else
|
14
|
-
@search = Exam.includes(:department).search(params[:q])
|
15
|
-
results = @search.result(distinct: true)
|
16
|
-
@exams = results.page(params[:page])
|
17
|
-
@exam = Exam.new
|
18
|
-
@exam_sessions = ExamSession.all
|
19
|
-
end
|
20
|
-
|
21
|
-
@exam.exam_portions.build
|
22
|
-
set_count
|
23
|
-
respond_to do |format|
|
24
|
-
format.html
|
25
|
-
format.json { render json: @exams.as_json(include: { exam_portions: { include: :exam_portion_scores } }) }
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def show
|
30
|
-
respond_with @exam
|
31
|
-
end
|
32
|
-
|
33
|
-
def new
|
34
|
-
@exam = Exam.new
|
35
|
-
@master_portion = @exam.exam_portions.new
|
36
|
-
respond_with @exam
|
37
|
-
end
|
38
|
-
|
39
|
-
def create
|
40
|
-
@exam = Exam.new(exam_params)
|
41
|
-
@exam.use_primary_grading_method_set if @exam.save
|
42
|
-
set_count
|
43
|
-
respond_with @exam
|
44
|
-
end
|
45
|
-
|
46
|
-
def edit
|
47
|
-
respond_with @exam
|
48
|
-
end
|
49
|
-
|
50
|
-
def update
|
51
|
-
@exam.update(exam_params)
|
52
|
-
respond_with @exam, location: [:edit, @exam]
|
53
|
-
end
|
54
|
-
|
55
|
-
def destroy
|
56
|
-
@exam.destroy
|
57
|
-
set_count
|
58
|
-
respond_with @exam
|
59
|
-
end
|
60
|
-
|
61
|
-
def export
|
62
|
-
@course = Course.find(params[:course_id])
|
63
|
-
end
|
64
|
-
|
65
|
-
def completed
|
66
|
-
@exam = Exam.find(params[:id])
|
67
|
-
@course = Course.find(params[:course_id])
|
68
|
-
@students = @course.students
|
69
|
-
|
70
|
-
respond_with @exam.completed_by_students(@students)
|
71
|
-
end
|
72
|
-
|
73
|
-
protected
|
74
|
-
|
75
|
-
def exam_params
|
76
|
-
params.require(:exam).permit(attributes)
|
77
|
-
end
|
78
|
-
|
79
|
-
private
|
80
|
-
|
81
|
-
def load_data
|
82
|
-
@departments = Department.all
|
83
|
-
end
|
84
|
-
|
85
|
-
def t_resource
|
86
|
-
t(:'exam.singular')
|
87
|
-
end
|
88
|
-
|
89
|
-
def attributes
|
90
|
-
[:name, :department_id, :weight, :description, :adjustments, :use_weighting,
|
91
|
-
exam_portions_attributes: [:id, :name, :weight, :problem_count, :max_score, :description, :adjustments]
|
92
|
-
]
|
93
|
-
end
|
94
|
-
|
95
|
-
def includes
|
96
|
-
{ grading_method_connectors: :grading_method }
|
97
|
-
end
|
98
|
-
|
99
|
-
def set_exam
|
100
|
-
@exam = Exam.includes(includes).find(params[:id])
|
101
|
-
set_notable
|
102
|
-
set_gradable
|
103
|
-
end
|
104
|
-
|
105
|
-
def set_notable
|
106
|
-
@notable = @exam
|
107
|
-
@notable_resource = @notable.class.to_s.demodulize.underscore.dasherize
|
108
|
-
end
|
109
|
-
|
110
|
-
def set_gradable
|
111
|
-
@gradable = @exam
|
112
|
-
@gradable_resource = @gradable.class.to_s.demodulize.underscore.dasherize
|
113
|
-
end
|
114
|
-
|
115
|
-
def set_count
|
116
|
-
@count = Exam.count
|
117
|
-
end
|
118
|
-
|
119
|
-
def find_exams
|
120
|
-
if params[:id]
|
121
|
-
@exams = Exam.where(id: params[:id])
|
122
|
-
else
|
123
|
-
@exams = @course.syllabus.exams
|
124
|
-
end
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|