gaku_core 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/{pictures/thumb/missing.png → missing_original.png} +0 -0
- data/app/assets/images/missing_thumb.png +0 -0
- data/app/controllers/gaku/{gaku_controller.rb → core_controller.rb} +5 -34
- data/app/decorators/gaku/course_decorator.rb +15 -0
- data/app/decorators/gaku/person_decorator.rb +1 -1
- data/app/decorators/gaku/student_decorator.rb +24 -7
- data/app/models/concerns/pagination.rb +8 -0
- data/app/models/concerns/person.rb +11 -0
- data/app/models/concerns/picture.rb +1 -1
- data/app/models/gaku/address.rb +4 -22
- data/app/models/gaku/attachment.rb +0 -2
- data/app/models/gaku/badge.rb +10 -0
- data/app/models/gaku/badge_type.rb +15 -0
- data/app/models/gaku/class_group.rb +1 -1
- data/app/models/gaku/class_group_enrollment.rb +2 -2
- data/app/models/gaku/contact.rb +8 -23
- data/app/models/gaku/contact_type.rb +1 -1
- data/app/models/gaku/country.rb +1 -0
- data/app/models/gaku/course_enrollment.rb +6 -0
- data/app/models/gaku/course_group.rb +0 -2
- data/app/models/gaku/department.rb +4 -0
- data/app/models/gaku/enrollment_status.rb +1 -1
- data/app/models/gaku/exam.rb +3 -1
- data/app/models/gaku/exam_portion.rb +1 -1
- data/app/models/gaku/external_school_record.rb +22 -7
- data/app/models/gaku/extracurricular_activity.rb +1 -1
- data/app/models/gaku/grading_method.rb +2 -1
- data/app/models/gaku/guardian.rb +1 -1
- data/app/models/gaku/level.rb +1 -0
- data/app/models/gaku/preset.rb +35 -62
- data/app/models/gaku/program.rb +1 -0
- data/app/models/gaku/school.rb +6 -1
- data/app/models/gaku/semester.rb +3 -0
- data/app/models/gaku/simple_grade.rb +7 -3
- data/app/models/gaku/simple_grade_type.rb +14 -0
- data/app/models/gaku/specialty.rb +3 -1
- data/app/models/gaku/student.rb +56 -15
- data/app/models/gaku/student_specialty.rb +0 -1
- data/app/models/gaku/syllabus.rb +2 -0
- data/app/models/gaku/teacher.rb +1 -1
- data/app/models/gaku/template.rb +5 -7
- data/app/models/gaku/user.rb +10 -2
- data/app/views/gaku/admin/grading_methods/_arguments_form_fields.html.slim +19 -0
- data/app/views/gaku/admin/grading_methods/_arguments_template.html.slim +11 -0
- data/app/views/gaku/shared/menu/_global.html.erb +2 -26
- data/config/initializers/devise.rb +3 -0
- data/config/initializers/{kaminari_config.rb → kaminari.rb} +0 -0
- data/config/initializers/translation_missing.rb +1 -1
- data/config/locales/bg.yml +287 -167
- data/config/locales/en.yml +148 -37
- data/config/locales/ja.yml +148 -30
- data/config/locales/pt-BR.yml +145 -27
- data/config/locales/zh-CN.yml +145 -27
- data/config/routes.rb +1 -290
- data/db/default/gaku/attendance_types.rb +2 -2
- data/db/default/gaku/commute_method_types.rb +1 -1
- data/db/default/gaku/departments.rb +1 -1
- data/db/default/gaku/presets.rb +33 -0
- data/db/default/gaku/scholarship_statuses.rb +2 -2
- data/db/migrate/20120202111850_presets.rb +30 -0
- data/db/migrate/{20120202111850_translated_tables.rb → 20131014065028_translations.rb} +17 -2
- data/db/migrate/20131025073352_gaku_core.rb +628 -0
- data/db/migrate/20140130182100_change_fields_external_school_record.rb +7 -0
- data/db/migrate/20140131113337_create_student_configs.rb +21 -0
- data/db/migrate/20140207093618_drop_student_configs.rb +5 -0
- data/lib/gaku/core/engine.rb +8 -24
- data/lib/gaku/core.rb +3 -21
- data/lib/gaku/migrations.rb +30 -0
- data/lib/gaku/streamer/sse.rb +22 -0
- data/lib/gaku/testing/auth_helpers.rb +2 -2
- data/lib/gaku/testing/coverage.rb +20 -0
- data/lib/gaku/testing/deferred_garbage_collection.rb +20 -0
- data/lib/gaku/testing/factories/attachment_factory.rb +3 -2
- data/lib/gaku/testing/factories/badge_factory.rb +12 -0
- data/lib/gaku/testing/factories/{achievement_factory.rb → badge_type_factory.rb} +2 -2
- data/lib/gaku/testing/factories/campus_factory.rb +5 -1
- data/lib/gaku/testing/factories/class_group_course_enrollment_factory.rb +8 -0
- data/lib/gaku/testing/factories/class_group_factory.rb +2 -7
- data/lib/gaku/testing/factories/contact_type_factory.rb +1 -1
- data/lib/gaku/testing/factories/country_factory.rb +2 -2
- data/lib/gaku/testing/factories/course_enrollment_factory.rb +4 -0
- data/lib/gaku/testing/factories/course_factory.rb +4 -0
- data/lib/gaku/testing/factories/course_group_factory.rb +4 -0
- data/lib/gaku/testing/factories/exam_factory.rb +10 -2
- data/lib/gaku/testing/factories/exam_portion_factory.rb +5 -1
- data/lib/gaku/testing/factories/external_school_record_factory.rb +14 -0
- data/lib/gaku/testing/factories/extracurricular_activity_factory.rb +4 -0
- data/lib/gaku/testing/factories/guardian_factory.rb +4 -1
- data/lib/gaku/testing/factories/level_factory.rb +1 -1
- data/lib/gaku/testing/factories/preset_factory.rb +17 -0
- data/lib/gaku/testing/factories/program_factory.rb +1 -1
- data/lib/gaku/testing/factories/school_factory.rb +5 -1
- data/lib/gaku/testing/factories/school_year_factory.rb +5 -0
- data/lib/gaku/testing/factories/semester_factory.rb +5 -0
- data/lib/gaku/testing/factories/simple_grade_factory.rb +7 -3
- data/lib/gaku/testing/factories/simple_grade_type_factory.rb +13 -0
- data/lib/gaku/testing/factories/student_specialty_factory.rb +4 -0
- data/lib/gaku/testing/factories/template_factory.rb +7 -0
- data/lib/gaku/testing/factories/traits.rb +8 -0
- data/lib/generators/gaku/dummy/templates/rails/database.yml +2 -0
- data/lib/generators/gaku/install/install_generator.rb +31 -30
- data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/{all.js → admin/all.js} +1 -5
- data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/archive/all.js +10 -0
- data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/frontend/all.js +10 -0
- data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/{all.css → admin/all.css} +2 -5
- data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/archive/all.css +9 -0
- data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/frontend/all.css +9 -0
- metadata +260 -1560
- data/app/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/images/dataTables/back_disabled.png +0 -0
- data/app/assets/images/dataTables/back_enabled.png +0 -0
- data/app/assets/images/dataTables/back_enabled_hover.png +0 -0
- data/app/assets/images/dataTables/forward_disabled.png +0 -0
- data/app/assets/images/dataTables/forward_enabled.png +0 -0
- data/app/assets/images/dataTables/forward_enabled_hover.png +0 -0
- data/app/assets/images/dataTables/sort_asc.png +0 -0
- data/app/assets/images/dataTables/sort_asc_disabled.png +0 -0
- data/app/assets/images/dataTables/sort_both.png +0 -0
- data/app/assets/images/dataTables/sort_desc.png +0 -0
- data/app/assets/images/dataTables/sort_desc_disabled.png +0 -0
- data/app/assets/images/tbs-img/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/tbs-img/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/gaku/admin.coffee +0 -30
- data/app/assets/javascripts/gaku/backbone/collections/attendance_types.js.coffee +0 -2
- data/app/assets/javascripts/gaku/backbone/collections/courses.js.coffee +0 -2
- data/app/assets/javascripts/gaku/backbone/collections/exams.js.coffee +0 -2
- data/app/assets/javascripts/gaku/backbone/models/attendance.js.coffee +0 -1
- data/app/assets/javascripts/gaku/backbone/models/attendance_type.coffee +0 -1
- data/app/assets/javascripts/gaku/backbone/models/calculation.js.coffee +0 -43
- data/app/assets/javascripts/gaku/backbone/models/completed.js.coffee +0 -1
- data/app/assets/javascripts/gaku/backbone/models/course.js.coffee +0 -2
- data/app/assets/javascripts/gaku/backbone/models/exam.js.coffee +0 -1
- data/app/assets/javascripts/gaku/backbone/models/exam_attendance.js.coffee +0 -4
- data/app/assets/javascripts/gaku/backbone/models/exam_portion_score.js.coffee +0 -18
- data/app/assets/javascripts/gaku/backbone/routers/exams_router.js.coffee +0 -22
- data/app/assets/javascripts/gaku/backbone/templates/attendance_chooser.jst.eco +0 -19
- data/app/assets/javascripts/gaku/backbone/templates/tables/attendance_show.jst.eco +0 -3
- data/app/assets/javascripts/gaku/backbone/templates/tables/exam_calculations.jst.eco +0 -39
- data/app/assets/javascripts/gaku/backbone/templates/tables/exam_completion.jst.eco +0 -1
- data/app/assets/javascripts/gaku/backbone/templates/tables/exam_score.jst.eco +0 -53
- data/app/assets/javascripts/gaku/backbone/templates/tables/exam_table.jst.eco +0 -32
- data/app/assets/javascripts/gaku/backbone/templates/tables/exam_user.jst.eco +0 -18
- data/app/assets/javascripts/gaku/backbone/views/exam_attendance.js.coffee +0 -51
- data/app/assets/javascripts/gaku/backbone/views/exam_attendance_show.js.coffee +0 -6
- data/app/assets/javascripts/gaku/backbone/views/exam_calculations.js.coffee +0 -15
- data/app/assets/javascripts/gaku/backbone/views/exam_completion.js.coffee +0 -7
- data/app/assets/javascripts/gaku/backbone/views/exam_portion_score.js.coffee +0 -8
- data/app/assets/javascripts/gaku/backbone/views/exam_score_view.js.coffee +0 -7
- data/app/assets/javascripts/gaku/backbone/views/exam_table_view.js.coffee +0 -227
- data/app/assets/javascripts/gaku/backbone/views/exam_user_view.js.coffee +0 -8
- data/app/assets/javascripts/gaku/class_groups.js.coffee +0 -11
- data/app/assets/javascripts/gaku/courses.js.coffee +0 -12
- data/app/assets/javascripts/gaku/exams.js.coffee +0 -23
- data/app/assets/javascripts/gaku/extracurricular_activities.js.coffee +0 -12
- data/app/assets/javascripts/gaku/gaku.js.coffee +0 -174
- data/app/assets/javascripts/gaku/gaku_core.js +0 -35
- data/app/assets/javascripts/gaku/slide.js.erb +0 -14
- data/app/assets/javascripts/gaku/students.js.coffee +0 -36
- data/app/assets/javascripts/gaku/syllabuses.js.coffee +0 -26
- data/app/assets/javascripts/gaku/teachers.js.coffee +0 -12
- data/app/assets/stylesheets/gaku/admin/disposals.css.scss +0 -14
- data/app/assets/stylesheets/gaku/class_groups.css.scss +0 -19
- data/app/assets/stylesheets/gaku/course_groups.css.scss +0 -14
- data/app/assets/stylesheets/gaku/courses.css.scss +0 -19
- data/app/assets/stylesheets/gaku/exams.css.scss +0 -72
- data/app/assets/stylesheets/gaku/gaku.css.scss +0 -172
- data/app/assets/stylesheets/gaku/gaku_core.css +0 -10
- data/app/assets/stylesheets/gaku/gaku_import.scss +0 -2
- data/app/assets/stylesheets/gaku/students.css.scss +0 -22
- data/app/assets/templates/roster.xls +0 -0
- data/app/controllers/concerns/enrollments_controller.rb +0 -83
- data/app/controllers/concerns/polymorphic_resource_concern.rb +0 -47
- data/app/controllers/concerns/student_chooser_controller.rb +0 -52
- data/app/controllers/gaku/addresses_controller.rb +0 -105
- data/app/controllers/gaku/admin/achievements_controller.rb +0 -64
- data/app/controllers/gaku/admin/attendance_types_controller.rb +0 -60
- data/app/controllers/gaku/admin/base_controller.rb +0 -40
- data/app/controllers/gaku/admin/changes/student_address_changes_controller.rb +0 -14
- data/app/controllers/gaku/admin/changes/student_changes_controller.rb +0 -13
- data/app/controllers/gaku/admin/changes/student_contact_changes_controller.rb +0 -13
- data/app/controllers/gaku/admin/commute_method_types_controller.rb +0 -54
- data/app/controllers/gaku/admin/contact_types_controller.rb +0 -55
- data/app/controllers/gaku/admin/departments_controller.rb +0 -55
- data/app/controllers/gaku/admin/disposals_controller.rb +0 -55
- data/app/controllers/gaku/admin/enrollment_statuses_controller.rb +0 -58
- data/app/controllers/gaku/admin/grading_method_sets/grading_method_set_items_controller.rb +0 -70
- data/app/controllers/gaku/admin/grading_method_sets_controller.rb +0 -69
- data/app/controllers/gaku/admin/grading_methods_controller.rb +0 -58
- data/app/controllers/gaku/admin/presets_controller.rb +0 -40
- data/app/controllers/gaku/admin/roles_controller.rb +0 -54
- data/app/controllers/gaku/admin/school_years/semesters_controller.rb +0 -31
- data/app/controllers/gaku/admin/school_years_controller.rb +0 -30
- data/app/controllers/gaku/admin/schools/campuses/addresses_controller.rb +0 -53
- data/app/controllers/gaku/admin/schools/campuses_controller.rb +0 -46
- data/app/controllers/gaku/admin/schools/programs_controller.rb +0 -48
- data/app/controllers/gaku/admin/schools_controller.rb +0 -59
- data/app/controllers/gaku/admin/specialties_controller.rb +0 -58
- data/app/controllers/gaku/admin/states_controller.rb +0 -49
- data/app/controllers/gaku/admin/system_tools_controller.rb +0 -8
- data/app/controllers/gaku/admin/templates_controller.rb +0 -49
- data/app/controllers/gaku/admin/users_controller.rb +0 -82
- data/app/controllers/gaku/attachments_controller.rb +0 -88
- data/app/controllers/gaku/attendances_controller.rb +0 -29
- data/app/controllers/gaku/class_group_enrollments_controller.rb +0 -15
- data/app/controllers/gaku/class_groups/courses_controller.rb +0 -44
- data/app/controllers/gaku/class_groups/semester_class_groups_controller.rb +0 -38
- data/app/controllers/gaku/class_groups/students_controller.rb +0 -43
- data/app/controllers/gaku/class_groups_controller.rb +0 -59
- data/app/controllers/gaku/contacts_controller.rb +0 -103
- data/app/controllers/gaku/course_enrollments_controller.rb +0 -10
- data/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +0 -50
- data/app/controllers/gaku/course_groups_controller.rb +0 -81
- data/app/controllers/gaku/courses/enrollments_controller.rb +0 -55
- data/app/controllers/gaku/courses/semester_courses_controller.rb +0 -37
- data/app/controllers/gaku/courses_controller.rb +0 -73
- data/app/controllers/gaku/devise/passwords_controller.rb +0 -4
- data/app/controllers/gaku/devise/registrations_controller.rb +0 -60
- data/app/controllers/gaku/devise/sessions_controller.rb +0 -4
- data/app/controllers/gaku/exam_portion_scores_controller.rb +0 -18
- data/app/controllers/gaku/exams/exam_portions/attachments_controller.rb +0 -53
- data/app/controllers/gaku/exams/exam_portions_controller.rb +0 -55
- data/app/controllers/gaku/exams_controller.rb +0 -140
- data/app/controllers/gaku/extracurricular_activities/students_controller.rb +0 -55
- data/app/controllers/gaku/extracurricular_activities_controller.rb +0 -48
- data/app/controllers/gaku/extracurricular_activity_enrollments_controller.rb +0 -10
- data/app/controllers/gaku/home_controller.rb +0 -10
- data/app/controllers/gaku/notes_controller.rb +0 -81
- data/app/controllers/gaku/schedules_controller.rb +0 -11
- data/app/controllers/gaku/states_controller.rb +0 -17
- data/app/controllers/gaku/students/class_group_enrollments_controller.rb +0 -59
- data/app/controllers/gaku/students/course_enrollments_controller.rb +0 -43
- data/app/controllers/gaku/students/guardians_controller.rb +0 -85
- data/app/controllers/gaku/students/simple_grades_controller.rb +0 -59
- data/app/controllers/gaku/students/student_achievements_controller.rb +0 -49
- data/app/controllers/gaku/students/student_specialties_controller.rb +0 -60
- data/app/controllers/gaku/students_controller.rb +0 -189
- data/app/controllers/gaku/syllabuses/assignments_controller.rb +0 -20
- data/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +0 -38
- data/app/controllers/gaku/syllabuses/exams_controller.rb +0 -53
- data/app/controllers/gaku/syllabuses_controller.rb +0 -73
- data/app/controllers/gaku/teachers_controller.rb +0 -113
- data/app/helpers/gaku/autocomplete_helper.rb +0 -31
- data/app/helpers/gaku/count_helper.rb +0 -13
- data/app/helpers/gaku/flash_helper.rb +0 -16
- data/app/helpers/gaku/gaku_helper.rb +0 -145
- data/app/helpers/gaku/icon_helper.rb +0 -26
- data/app/helpers/gaku/person_helper.rb +0 -55
- data/app/helpers/gaku/presets_helper.rb +0 -41
- data/app/helpers/gaku/sort_helper.rb +0 -17
- data/app/helpers/gaku/student_chooser_helper.rb +0 -12
- data/app/helpers/gaku/students_helper.rb +0 -42
- data/app/helpers/gaku/translations_helper.rb +0 -185
- data/app/models/concerns/trashable.rb +0 -17
- data/app/models/gaku/achievement.rb +0 -17
- data/app/models/gaku/student_achievement.rb +0 -10
- data/app/models/gaku/versioning/address_version.rb +0 -9
- data/app/models/gaku/versioning/contact_version.rb +0 -7
- data/app/models/gaku/versioning/student_version.rb +0 -49
- data/app/views/gaku/addresses/_address.html.slim +0 -5
- data/app/views/gaku/addresses/_addresses.html.slim +0 -27
- data/app/views/gaku/addresses/_fields.html.slim +0 -14
- data/app/views/gaku/addresses/_form.html.slim +0 -3
- data/app/views/gaku/addresses/_form_fields.html.slim +0 -26
- data/app/views/gaku/addresses/_modal.html.slim +0 -6
- data/app/views/gaku/addresses/_primary_field.html.slim +0 -13
- data/app/views/gaku/addresses/create.js.erb +0 -12
- data/app/views/gaku/addresses/destroy.js.erb +0 -8
- data/app/views/gaku/addresses/edit.js.erb +0 -4
- data/app/views/gaku/addresses/make_primary.js.erb +0 -7
- data/app/views/gaku/addresses/new.js.erb +0 -4
- data/app/views/gaku/addresses/recovery.js.erb +0 -1
- data/app/views/gaku/addresses/soft_delete.js.erb +0 -8
- data/app/views/gaku/addresses/update.js.erb +0 -5
- data/app/views/gaku/admin/achievements/_achievement.html.slim +0 -2
- data/app/views/gaku/admin/achievements/_fields.html.slim +0 -7
- data/app/views/gaku/admin/achievements/_form.html.slim +0 -3
- data/app/views/gaku/admin/achievements/_form_fields.html.slim +0 -4
- data/app/views/gaku/admin/achievements/_modal.html.slim +0 -6
- data/app/views/gaku/admin/achievements/destroy.js.erb +0 -2
- data/app/views/gaku/admin/achievements/edit.js.erb +0 -3
- data/app/views/gaku/admin/achievements/index.html.slim +0 -22
- data/app/views/gaku/admin/achievements/new.js.erb +0 -3
- data/app/views/gaku/admin/attendance_types/_attendance_type.html.slim +0 -2
- data/app/views/gaku/admin/attendance_types/_fields.html.slim +0 -9
- data/app/views/gaku/admin/attendance_types/_form.html.slim +0 -3
- data/app/views/gaku/admin/attendance_types/_form_fields.html.slim +0 -6
- data/app/views/gaku/admin/attendance_types/_modal.html.slim +0 -6
- data/app/views/gaku/admin/attendance_types/create.js.erb +0 -7
- data/app/views/gaku/admin/attendance_types/destroy.js.erb +0 -2
- data/app/views/gaku/admin/attendance_types/edit.js.erb +0 -4
- data/app/views/gaku/admin/attendance_types/index.html.slim +0 -24
- data/app/views/gaku/admin/attendance_types/index.json.rb +0 -1
- data/app/views/gaku/admin/attendance_types/new.js.erb +0 -4
- data/app/views/gaku/admin/attendance_types/update.js.erb +0 -4
- data/app/views/gaku/admin/changes/student_address_changes/_change.html.slim +0 -10
- data/app/views/gaku/admin/changes/student_address_changes/_changes.html.slim +0 -19
- data/app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim +0 -9
- data/app/views/gaku/admin/changes/student_address_changes/index.html.slim +0 -11
- data/app/views/gaku/admin/changes/student_changes/_change.html.slim +0 -10
- data/app/views/gaku/admin/changes/student_changes/_changes.html.slim +0 -18
- data/app/views/gaku/admin/changes/student_changes/_deletion.html.slim +0 -9
- data/app/views/gaku/admin/changes/student_changes/index.html.slim +0 -13
- data/app/views/gaku/admin/changes/student_contact_changes/_change.html.slim +0 -10
- data/app/views/gaku/admin/changes/student_contact_changes/_changes.html.slim +0 -19
- data/app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim +0 -9
- data/app/views/gaku/admin/changes/student_contact_changes/index.html.slim +0 -11
- data/app/views/gaku/admin/commute_method_types/_commute_method_type.html.slim +0 -2
- data/app/views/gaku/admin/commute_method_types/_fields.html.slim +0 -4
- data/app/views/gaku/admin/commute_method_types/_form.html.slim +0 -3
- data/app/views/gaku/admin/commute_method_types/_modal.html.slim +0 -6
- data/app/views/gaku/admin/commute_method_types/create.js.erb +0 -7
- data/app/views/gaku/admin/commute_method_types/destroy.js.erb +0 -2
- data/app/views/gaku/admin/commute_method_types/edit.js.erb +0 -3
- data/app/views/gaku/admin/commute_method_types/index.html.slim +0 -18
- data/app/views/gaku/admin/commute_method_types/new.js.erb +0 -3
- data/app/views/gaku/admin/commute_method_types/update.js.erb +0 -3
- data/app/views/gaku/admin/contact_types/_contact_type.html.slim +0 -2
- data/app/views/gaku/admin/contact_types/_fields.html.slim +0 -4
- data/app/views/gaku/admin/contact_types/_form.html.slim +0 -3
- data/app/views/gaku/admin/contact_types/_modal.html.slim +0 -6
- data/app/views/gaku/admin/contact_types/create.js.erb +0 -7
- data/app/views/gaku/admin/contact_types/destroy.js.erb +0 -2
- data/app/views/gaku/admin/contact_types/edit.js.erb +0 -3
- data/app/views/gaku/admin/contact_types/index.html.slim +0 -18
- data/app/views/gaku/admin/contact_types/new.js.erb +0 -3
- data/app/views/gaku/admin/contact_types/update.js.erb +0 -3
- data/app/views/gaku/admin/departments/_department.html.slim +0 -2
- data/app/views/gaku/admin/departments/_form.html.slim +0 -3
- data/app/views/gaku/admin/departments/_form_fields.html.slim +0 -1
- data/app/views/gaku/admin/departments/_modal.html.slim +0 -6
- data/app/views/gaku/admin/departments/_table_fields.html.slim +0 -5
- data/app/views/gaku/admin/departments/create.js.erb +0 -7
- data/app/views/gaku/admin/departments/destroy.js.erb +0 -2
- data/app/views/gaku/admin/departments/edit.js.erb +0 -3
- data/app/views/gaku/admin/departments/index.html.slim +0 -20
- data/app/views/gaku/admin/departments/new.js.erb +0 -3
- data/app/views/gaku/admin/departments/update.js.erb +0 -4
- data/app/views/gaku/admin/disposals/_address.html.slim +0 -12
- data/app/views/gaku/admin/disposals/_addresses.html.slim +0 -17
- data/app/views/gaku/admin/disposals/_contact.html.slim +0 -9
- data/app/views/gaku/admin/disposals/_contacts.html.slim +0 -14
- data/app/views/gaku/admin/disposals/_course_group.html.slim +0 -3
- data/app/views/gaku/admin/disposals/_course_groups.html.slim +0 -12
- data/app/views/gaku/admin/disposals/_exam.html.slim +0 -10
- data/app/views/gaku/admin/disposals/_guardian.html.slim +0 -10
- data/app/views/gaku/admin/disposals/_student.html.slim +0 -10
- data/app/views/gaku/admin/disposals/_tabs.html.slim +0 -17
- data/app/views/gaku/admin/disposals/_teacher.html.slim +0 -10
- data/app/views/gaku/admin/disposals/addresses.html.slim +0 -2
- data/app/views/gaku/admin/disposals/attachments.html.slim +0 -30
- data/app/views/gaku/admin/disposals/contacts.html.slim +0 -2
- data/app/views/gaku/admin/disposals/course_groups.html.slim +0 -12
- data/app/views/gaku/admin/disposals/exams.html.slim +0 -16
- data/app/views/gaku/admin/disposals/guardians.html.slim +0 -16
- data/app/views/gaku/admin/disposals/index.html.slim +0 -1
- data/app/views/gaku/admin/disposals/students.html.slim +0 -16
- data/app/views/gaku/admin/disposals/tabs/_addresses_tabs.html.slim +0 -19
- data/app/views/gaku/admin/disposals/tabs/_contacts_tabs.html.slim +0 -19
- data/app/views/gaku/admin/disposals/teachers.html.slim +0 -16
- data/app/views/gaku/admin/enrollment_statuses/_enrollment_status.html.slim +0 -2
- data/app/views/gaku/admin/enrollment_statuses/_fields.html.slim +0 -6
- data/app/views/gaku/admin/enrollment_statuses/_form.html.slim +0 -3
- data/app/views/gaku/admin/enrollment_statuses/_form_fields.html.slim +0 -3
- data/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +0 -6
- data/app/views/gaku/admin/enrollment_statuses/create.js.erb +0 -7
- data/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +0 -2
- data/app/views/gaku/admin/enrollment_statuses/edit.js.erb +0 -3
- data/app/views/gaku/admin/enrollment_statuses/index.html.slim +0 -21
- data/app/views/gaku/admin/enrollment_statuses/new.js.erb +0 -3
- data/app/views/gaku/admin/enrollment_statuses/update.js.erb +0 -4
- data/app/views/gaku/admin/grading_method_sets/_fields.html.slim +0 -9
- data/app/views/gaku/admin/grading_method_sets/_form.html.slim +0 -3
- data/app/views/gaku/admin/grading_method_sets/_form_fields.html.slim +0 -4
- data/app/views/gaku/admin/grading_method_sets/_grading_method_set.html.slim +0 -4
- data/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +0 -4
- data/app/views/gaku/admin/grading_method_sets/_modal.html.slim +0 -6
- data/app/views/gaku/admin/grading_method_sets/create.js.erb +0 -7
- data/app/views/gaku/admin/grading_method_sets/destroy.js.erb +0 -7
- data/app/views/gaku/admin/grading_method_sets/edit.js.erb +0 -3
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_fields.html.slim +0 -9
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +0 -3
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form_fields.html.slim +0 -1
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_item.html.slim +0 -4
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +0 -23
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +0 -6
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +0 -7
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +0 -2
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/edit.js.erb +0 -3
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/new.js.erb +0 -3
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/update.js.erb +0 -3
- data/app/views/gaku/admin/grading_method_sets/index.html.slim +0 -23
- data/app/views/gaku/admin/grading_method_sets/make_primary.js.erb +0 -6
- data/app/views/gaku/admin/grading_method_sets/new.js.erb +0 -3
- data/app/views/gaku/admin/grading_method_sets/show.html.slim +0 -13
- data/app/views/gaku/admin/grading_method_sets/update.js.erb +0 -3
- data/app/views/gaku/admin/grading_methods/_fields.html.slim +0 -6
- data/app/views/gaku/admin/grading_methods/_form.html.slim +0 -3
- data/app/views/gaku/admin/grading_methods/_form_fields.html.slim +0 -3
- data/app/views/gaku/admin/grading_methods/_grading_method.html.slim +0 -2
- data/app/views/gaku/admin/grading_methods/_modal.html.slim +0 -6
- data/app/views/gaku/admin/grading_methods/create.js.erb +0 -7
- data/app/views/gaku/admin/grading_methods/destroy.js.erb +0 -2
- data/app/views/gaku/admin/grading_methods/edit.js.erb +0 -3
- data/app/views/gaku/admin/grading_methods/index.html.slim +0 -20
- data/app/views/gaku/admin/grading_methods/new.js.erb +0 -3
- data/app/views/gaku/admin/grading_methods/update.js.erb +0 -3
- data/app/views/gaku/admin/presets/defaults.html.slim +0 -50
- data/app/views/gaku/admin/presets/grading.html.slim +0 -12
- data/app/views/gaku/admin/presets/locale.html.slim +0 -10
- data/app/views/gaku/admin/presets/names.html.slim +0 -20
- data/app/views/gaku/admin/presets/output_formats.html.slim +0 -19
- data/app/views/gaku/admin/presets/pagination.html.slim +0 -19
- data/app/views/gaku/admin/presets/students.html.slim +0 -21
- data/app/views/gaku/admin/roles/_fields.html.slim +0 -5
- data/app/views/gaku/admin/roles/_form.html.slim +0 -3
- data/app/views/gaku/admin/roles/_form_fields.html.slim +0 -1
- data/app/views/gaku/admin/roles/_modal.html.slim +0 -6
- data/app/views/gaku/admin/roles/_role.html.slim +0 -2
- data/app/views/gaku/admin/roles/create.js.erb +0 -7
- data/app/views/gaku/admin/roles/destroy.js.erb +0 -2
- data/app/views/gaku/admin/roles/edit.js.erb +0 -3
- data/app/views/gaku/admin/roles/index.html.slim +0 -20
- data/app/views/gaku/admin/roles/new.js.erb +0 -3
- data/app/views/gaku/admin/roles/update.js.erb +0 -3
- data/app/views/gaku/admin/school_years/_fields.html.slim +0 -7
- data/app/views/gaku/admin/school_years/_form.html.slim +0 -3
- data/app/views/gaku/admin/school_years/_form_fields.html.slim +0 -5
- data/app/views/gaku/admin/school_years/_modal.html.slim +0 -7
- data/app/views/gaku/admin/school_years/_school_year.html.slim +0 -3
- data/app/views/gaku/admin/school_years/_show_table.html.slim +0 -10
- data/app/views/gaku/admin/school_years/create.js.erb +0 -10
- data/app/views/gaku/admin/school_years/destroy.js.erb +0 -2
- data/app/views/gaku/admin/school_years/edit.js.erb +0 -5
- data/app/views/gaku/admin/school_years/index.html.slim +0 -21
- data/app/views/gaku/admin/school_years/new.js.erb +0 -5
- data/app/views/gaku/admin/school_years/semesters/_fields.html.slim +0 -7
- data/app/views/gaku/admin/school_years/semesters/_form.html.slim +0 -3
- data/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +0 -5
- data/app/views/gaku/admin/school_years/semesters/_modal.html.slim +0 -7
- data/app/views/gaku/admin/school_years/semesters/_semester.html.slim +0 -3
- data/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +0 -22
- data/app/views/gaku/admin/school_years/semesters/create.js.erb +0 -10
- data/app/views/gaku/admin/school_years/semesters/destroy.js.erb +0 -2
- data/app/views/gaku/admin/school_years/semesters/edit.js.erb +0 -6
- data/app/views/gaku/admin/school_years/semesters/new.js.erb +0 -5
- data/app/views/gaku/admin/school_years/semesters/update.js.erb +0 -8
- data/app/views/gaku/admin/school_years/show.html.slim +0 -15
- data/app/views/gaku/admin/school_years/update.js.erb +0 -8
- data/app/views/gaku/admin/schools/_fields.html.slim +0 -9
- data/app/views/gaku/admin/schools/_form.html.slim +0 -3
- data/app/views/gaku/admin/schools/_form_fields.html.slim +0 -25
- data/app/views/gaku/admin/schools/_modal.html.slim +0 -6
- data/app/views/gaku/admin/schools/_school.html.slim +0 -2
- data/app/views/gaku/admin/schools/_school_unit.html.slim +0 -6
- data/app/views/gaku/admin/schools/_show_table.html.slim +0 -35
- data/app/views/gaku/admin/schools/campuses/_campus.html.slim +0 -7
- data/app/views/gaku/admin/schools/campuses/_campus_unit.html.slim +0 -6
- data/app/views/gaku/admin/schools/campuses/_campuses.html.slim +0 -20
- data/app/views/gaku/admin/schools/campuses/_form.html.slim +0 -3
- data/app/views/gaku/admin/schools/campuses/_modal.html.slim +0 -6
- data/app/views/gaku/admin/schools/campuses/_picture.html.slim +0 -10
- data/app/views/gaku/admin/schools/campuses/_show_table.html.slim +0 -10
- data/app/views/gaku/admin/schools/campuses/_upload_picture.html.slim +0 -7
- data/app/views/gaku/admin/schools/campuses/addresses/_address.html.slim +0 -6
- data/app/views/gaku/admin/schools/campuses/addresses/_address_row_fields.html.slim +0 -4
- data/app/views/gaku/admin/schools/campuses/addresses/_addresses.html.slim +0 -24
- data/app/views/gaku/admin/schools/campuses/addresses/_form.html.slim +0 -3
- data/app/views/gaku/admin/schools/campuses/addresses/_modal.html.slim +0 -7
- data/app/views/gaku/admin/schools/campuses/addresses/create.js.erb +0 -6
- data/app/views/gaku/admin/schools/campuses/addresses/destroy.js.erb +0 -2
- data/app/views/gaku/admin/schools/campuses/addresses/edit.js.erb +0 -4
- data/app/views/gaku/admin/schools/campuses/addresses/new.js.erb +0 -4
- data/app/views/gaku/admin/schools/campuses/addresses/update.js.erb +0 -4
- data/app/views/gaku/admin/schools/campuses/create.js.erb +0 -7
- data/app/views/gaku/admin/schools/campuses/destroy.js.erb +0 -2
- data/app/views/gaku/admin/schools/campuses/edit.js.erb +0 -3
- data/app/views/gaku/admin/schools/campuses/new.js.erb +0 -3
- data/app/views/gaku/admin/schools/campuses/show.html.slim +0 -21
- data/app/views/gaku/admin/schools/campuses/update.js.erb +0 -3
- data/app/views/gaku/admin/schools/create.js.erb +0 -7
- data/app/views/gaku/admin/schools/destroy.js.erb +0 -2
- data/app/views/gaku/admin/schools/edit.js.erb +0 -3
- data/app/views/gaku/admin/schools/edit_master.html.slim +0 -17
- data/app/views/gaku/admin/schools/index.html.slim +0 -29
- data/app/views/gaku/admin/schools/new.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/_fields.html.slim +0 -9
- data/app/views/gaku/admin/schools/programs/_form.html.slim +0 -20
- data/app/views/gaku/admin/schools/programs/_form_fields.html.slim +0 -6
- data/app/views/gaku/admin/schools/programs/_modal.html.slim +0 -5
- data/app/views/gaku/admin/schools/programs/_program.html.slim +0 -2
- data/app/views/gaku/admin/schools/programs/_programs.html.slim +0 -25
- data/app/views/gaku/admin/schools/programs/create.js.erb +0 -7
- data/app/views/gaku/admin/schools/programs/destroy.js.erb +0 -2
- data/app/views/gaku/admin/schools/programs/edit.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/new.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +0 -8
- data/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +0 -10
- data/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +0 -7
- data/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +0 -10
- data/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +0 -6
- data/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +0 -10
- data/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +0 -3
- data/app/views/gaku/admin/schools/programs/update.js.erb +0 -3
- data/app/views/gaku/admin/schools/show.html.slim +0 -26
- data/app/views/gaku/admin/schools/update.js.erb +0 -7
- data/app/views/gaku/admin/shared/_picture.html.slim +0 -10
- data/app/views/gaku/admin/shared/_upload_picture.html.slim +0 -7
- data/app/views/gaku/admin/specialties/_fields.html.slim +0 -6
- data/app/views/gaku/admin/specialties/_form.html.slim +0 -3
- data/app/views/gaku/admin/specialties/_form_fields.html.slim +0 -3
- data/app/views/gaku/admin/specialties/_modal.html.slim +0 -6
- data/app/views/gaku/admin/specialties/_specialty.html.slim +0 -2
- data/app/views/gaku/admin/specialties/create.js.erb +0 -7
- data/app/views/gaku/admin/specialties/destroy.js.erb +0 -2
- data/app/views/gaku/admin/specialties/edit.js.erb +0 -3
- data/app/views/gaku/admin/specialties/index.html.slim +0 -20
- data/app/views/gaku/admin/specialties/new.js.erb +0 -3
- data/app/views/gaku/admin/specialties/update.js.erb +0 -3
- data/app/views/gaku/admin/states/_country_select_form.html.slim +0 -4
- data/app/views/gaku/admin/states/_country_table.html.slim +0 -11
- data/app/views/gaku/admin/states/_fields.html.slim +0 -8
- data/app/views/gaku/admin/states/_form.html.slim +0 -4
- data/app/views/gaku/admin/states/_form_fields.html.slim +0 -14
- data/app/views/gaku/admin/states/_modal.html.slim +0 -6
- data/app/views/gaku/admin/states/_state.html.slim +0 -2
- data/app/views/gaku/admin/states/country_states.js.erb +0 -1
- data/app/views/gaku/admin/states/create.js.erb +0 -7
- data/app/views/gaku/admin/states/destroy.js.erb +0 -2
- data/app/views/gaku/admin/states/edit.js.erb +0 -3
- data/app/views/gaku/admin/states/index.html.slim +0 -15
- data/app/views/gaku/admin/states/new.js.erb +0 -3
- data/app/views/gaku/admin/states/update.js.erb +0 -3
- data/app/views/gaku/admin/system_tools/index.html.slim +0 -1
- data/app/views/gaku/admin/templates/_fields.html.slim +0 -8
- data/app/views/gaku/admin/templates/_form.html.slim +0 -3
- data/app/views/gaku/admin/templates/_form_fields.html.slim +0 -4
- data/app/views/gaku/admin/templates/_modal.html.slim +0 -6
- data/app/views/gaku/admin/templates/_template.html.slim +0 -2
- data/app/views/gaku/admin/templates/destroy.js.erb +0 -2
- data/app/views/gaku/admin/templates/edit.js.erb +0 -4
- data/app/views/gaku/admin/templates/index.html.slim +0 -20
- data/app/views/gaku/admin/templates/new.js.erb +0 -3
- data/app/views/gaku/admin/users/_fields.html.slim +0 -5
- data/app/views/gaku/admin/users/_form.html.slim +0 -3
- data/app/views/gaku/admin/users/_form_fields.html.slim +0 -14
- data/app/views/gaku/admin/users/_modal.html.slim +0 -6
- data/app/views/gaku/admin/users/_user.html.slim +0 -2
- data/app/views/gaku/admin/users/create.js.erb +0 -7
- data/app/views/gaku/admin/users/destroy.js.erb +0 -2
- data/app/views/gaku/admin/users/edit.js.erb +0 -3
- data/app/views/gaku/admin/users/index.html.slim +0 -21
- data/app/views/gaku/admin/users/new.js.erb +0 -3
- data/app/views/gaku/admin/users/update.js.erb +0 -4
- data/app/views/gaku/attachments/destroy.js.erb +0 -1
- data/app/views/gaku/attachments/edit.js.erb +0 -3
- data/app/views/gaku/attachments/new.js.erb +0 -1
- data/app/views/gaku/attachments/recover_attachment.js.erb +0 -1
- data/app/views/gaku/attachments/soft_delete.js.erb +0 -3
- data/app/views/gaku/class_groups/_class_group.html.slim +0 -7
- data/app/views/gaku/class_groups/_class_group_modal.html.slim +0 -7
- data/app/views/gaku/class_groups/_class_group_unit.html.slim +0 -5
- data/app/views/gaku/class_groups/_class_groups.html.slim +0 -25
- data/app/views/gaku/class_groups/_form.html.slim +0 -8
- data/app/views/gaku/class_groups/_form_fields.html.slim +0 -6
- data/app/views/gaku/class_groups/_tabs.html.slim +0 -32
- data/app/views/gaku/class_groups/courses/_course.html.slim +0 -4
- data/app/views/gaku/class_groups/courses/_courses.html.slim +0 -19
- data/app/views/gaku/class_groups/courses/_form.html.slim +0 -5
- data/app/views/gaku/class_groups/courses/create.js.erb +0 -8
- data/app/views/gaku/class_groups/courses/destroy.js.erb +0 -3
- data/app/views/gaku/class_groups/courses/new.js.erb +0 -3
- data/app/views/gaku/class_groups/create.js.erb +0 -6
- data/app/views/gaku/class_groups/destroy.js.erb +0 -6
- data/app/views/gaku/class_groups/edit.js.erb +0 -3
- data/app/views/gaku/class_groups/index.html.slim +0 -14
- data/app/views/gaku/class_groups/new.js.erb +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/_fields.html.slim +0 -4
- data/app/views/gaku/class_groups/semester_class_groups/_form.html.slim +0 -4
- data/app/views/gaku/class_groups/semester_class_groups/_form_fields.html.slim +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/_modal.html.slim +0 -5
- data/app/views/gaku/class_groups/semester_class_groups/_semester.html.slim +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/_semester_modal.html.slim +0 -6
- data/app/views/gaku/class_groups/semester_class_groups/_semesters.html.slim +0 -19
- data/app/views/gaku/class_groups/semester_class_groups/create.js.erb +0 -6
- data/app/views/gaku/class_groups/semester_class_groups/destroy.js.erb +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/edit.js.erb +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/new.js.erb +0 -3
- data/app/views/gaku/class_groups/semester_class_groups/update.js.erb +0 -3
- data/app/views/gaku/class_groups/show.html.slim +0 -25
- data/app/views/gaku/class_groups/student_chooser.js.erb +0 -2
- data/app/views/gaku/class_groups/students/_student.html.slim +0 -5
- data/app/views/gaku/class_groups/students/_students.html.slim +0 -19
- data/app/views/gaku/class_groups/students/destroy.js.erb +0 -3
- data/app/views/gaku/class_groups/students/enroll_students.js.erb +0 -17
- data/app/views/gaku/class_groups/students/new.js.erb +0 -3
- data/app/views/gaku/class_groups/update.js.erb +0 -8
- data/app/views/gaku/contacts/_contact.html.slim +0 -5
- data/app/views/gaku/contacts/_contacts.html.slim +0 -24
- data/app/views/gaku/contacts/_fields.html.slim +0 -13
- data/app/views/gaku/contacts/_form.html.slim +0 -4
- data/app/views/gaku/contacts/_form_fields.html.slim +0 -14
- data/app/views/gaku/contacts/_modal.html.slim +0 -6
- data/app/views/gaku/contacts/_primary_field.html.slim +0 -13
- data/app/views/gaku/contacts/create.js.erb +0 -21
- data/app/views/gaku/contacts/destroy.js.erb +0 -9
- data/app/views/gaku/contacts/edit.js.erb +0 -4
- data/app/views/gaku/contacts/make_primary.js.erb +0 -6
- data/app/views/gaku/contacts/new.js.erb +0 -3
- data/app/views/gaku/contacts/recovery.js.erb +0 -1
- data/app/views/gaku/contacts/soft_delete.js.erb +0 -8
- data/app/views/gaku/contacts/update.js.erb +0 -14
- data/app/views/gaku/course_groups/_course_group.html.slim +0 -3
- data/app/views/gaku/course_groups/_course_group_unit.html.slim +0 -4
- data/app/views/gaku/course_groups/_course_groups.html.slim +0 -7
- data/app/views/gaku/course_groups/_delete_confirm.html.slim +0 -11
- data/app/views/gaku/course_groups/_fields.html.slim +0 -1
- data/app/views/gaku/course_groups/_form.html.slim +0 -3
- data/app/views/gaku/course_groups/_form_fields.html.slim +0 -1
- data/app/views/gaku/course_groups/_modal.html.slim +0 -6
- data/app/views/gaku/course_groups/course_group_enrollments/_course.html.slim +0 -4
- data/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +0 -23
- data/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +0 -4
- data/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +0 -7
- data/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +0 -2
- data/app/views/gaku/course_groups/course_group_enrollments/new.js.erb +0 -3
- data/app/views/gaku/course_groups/create.js.erb +0 -10
- data/app/views/gaku/course_groups/destroy.js.erb +0 -2
- data/app/views/gaku/course_groups/edit.js.erb +0 -3
- data/app/views/gaku/course_groups/index.html.slim +0 -15
- data/app/views/gaku/course_groups/index.js.erb +0 -1
- data/app/views/gaku/course_groups/new.js.erb +0 -3
- data/app/views/gaku/course_groups/recovery.js.erb +0 -2
- data/app/views/gaku/course_groups/show.html.slim +0 -30
- data/app/views/gaku/course_groups/update.js.erb +0 -7
- data/app/views/gaku/courses/_course.html.slim +0 -2
- data/app/views/gaku/courses/_course_unit.html.slim +0 -5
- data/app/views/gaku/courses/_courses.html.slim +0 -27
- data/app/views/gaku/courses/_form.html.slim +0 -7
- data/app/views/gaku/courses/_form_fields.html.slim +0 -4
- data/app/views/gaku/courses/_modal.html.slim +0 -6
- data/app/views/gaku/courses/_tabs.html.slim +0 -25
- data/app/views/gaku/courses/assignments/_assignments.html.slim +0 -2
- data/app/views/gaku/courses/create.js.erb +0 -7
- data/app/views/gaku/courses/destroy.js.erb +0 -7
- data/app/views/gaku/courses/edit.js.erb +0 -4
- data/app/views/gaku/courses/enrollments/_enrolled.html.slim +0 -7
- data/app/views/gaku/courses/enrollments/_enrollments.html.slim +0 -29
- data/app/views/gaku/courses/enrollments/_errors_modal.html.slim +0 -11
- data/app/views/gaku/courses/enrollments/class_groups/_form.html.slim +0 -3
- data/app/views/gaku/courses/enrollments/class_groups/enroll.js.erb +0 -16
- data/app/views/gaku/courses/enrollments/class_groups/new.js.erb +0 -4
- data/app/views/gaku/courses/enrollments/error.js.erb +0 -2
- data/app/views/gaku/courses/enrollments/students/enroll_students.js.erb +0 -11
- data/app/views/gaku/courses/exams/_exam.html.slim +0 -5
- data/app/views/gaku/courses/exams/_exams.html.slim +0 -14
- data/app/views/gaku/courses/index.html.slim +0 -14
- data/app/views/gaku/courses/new.js.erb +0 -3
- data/app/views/gaku/courses/semester_courses/_fields.html.slim +0 -4
- data/app/views/gaku/courses/semester_courses/_form.html.slim +0 -4
- data/app/views/gaku/courses/semester_courses/_form_fields.html.slim +0 -3
- data/app/views/gaku/courses/semester_courses/_modal.html.slim +0 -6
- data/app/views/gaku/courses/semester_courses/_semester_course.html.slim +0 -3
- data/app/views/gaku/courses/semester_courses/_semester_courses.html.slim +0 -18
- data/app/views/gaku/courses/semester_courses/create.js.erb +0 -6
- data/app/views/gaku/courses/semester_courses/destroy.js.erb +0 -3
- data/app/views/gaku/courses/semester_courses/edit.js.erb +0 -3
- data/app/views/gaku/courses/semester_courses/new.js.erb +0 -3
- data/app/views/gaku/courses/semester_courses/update.js.erb +0 -3
- data/app/views/gaku/courses/show.html.slim +0 -32
- data/app/views/gaku/courses/student_chooser.js.erb +0 -2
- data/app/views/gaku/courses/update.js.erb +0 -16
- data/app/views/gaku/devise/confirmations/new.html.slim +0 -9
- data/app/views/gaku/devise/mailer/confirmation_instructions.html.slim +0 -4
- data/app/views/gaku/devise/mailer/reset_password_instructions.html.slim +0 -6
- data/app/views/gaku/devise/mailer/unlock_instructions.html.slim +0 -5
- data/app/views/gaku/devise/passwords/edit.html.slim +0 -14
- data/app/views/gaku/devise/passwords/new.html.slim +0 -8
- data/app/views/gaku/devise/registrations/edit.html.slim +0 -31
- data/app/views/gaku/devise/registrations/new.html.slim +0 -29
- data/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +0 -27
- data/app/views/gaku/devise/sessions/new.html.slim +0 -27
- data/app/views/gaku/devise/shared/_links.html.erb +0 -25
- data/app/views/gaku/devise/unlocks/new.html.slim +0 -9
- data/app/views/gaku/exam_divisions/_form.html.erb +0 -29
- data/app/views/gaku/exam_divisions/edit.html.erb +0 -6
- data/app/views/gaku/exam_divisions/index.html.erb +0 -27
- data/app/views/gaku/exam_divisions/new.html.erb +0 -5
- data/app/views/gaku/exam_divisions/show.html.erb +0 -20
- data/app/views/gaku/exams/_exam.html.slim +0 -2
- data/app/views/gaku/exams/_fields.html.slim +0 -8
- data/app/views/gaku/exams/_form.html.slim +0 -19
- data/app/views/gaku/exams/_form_fields.html.slim +0 -13
- data/app/views/gaku/exams/_modal.html.slim +0 -6
- data/app/views/gaku/exams/_show_table.html.slim +0 -15
- data/app/views/gaku/exams/_weight_check_widget.html.slim +0 -20
- data/app/views/gaku/exams/create.js.erb +0 -6
- data/app/views/gaku/exams/destroy.js.erb +0 -2
- data/app/views/gaku/exams/edit.js +0 -3
- data/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +0 -4
- data/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +0 -3
- data/app/views/gaku/exams/exam_portions/_exam_portion_unit.html.slim +0 -3
- data/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +0 -3
- data/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +0 -14
- data/app/views/gaku/exams/exam_portions/_form.html.slim +0 -3
- data/app/views/gaku/exams/exam_portions/_modal.html.slim +0 -8
- data/app/views/gaku/exams/exam_portions/_show_table.html.slim +0 -12
- data/app/views/gaku/exams/exam_portions/attachments/_attachment.html.slim +0 -2
- data/app/views/gaku/exams/exam_portions/attachments/_attachments.html.slim +0 -23
- data/app/views/gaku/exams/exam_portions/attachments/_form.html.slim +0 -6
- data/app/views/gaku/exams/exam_portions/attachments/_form_fields.html.slim +0 -3
- data/app/views/gaku/exams/exam_portions/attachments/_modal.html.slim +0 -6
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD_0 +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master_0 +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/new.js.erb +0 -3
- data/app/views/gaku/exams/exam_portions/create.js.erb +0 -48
- data/app/views/gaku/exams/exam_portions/destroy.js.erb +0 -8
- data/app/views/gaku/exams/exam_portions/edit.js.erb +0 -3
- data/app/views/gaku/exams/exam_portions/new.js.erb +0 -3
- data/app/views/gaku/exams/exam_portions/show.html.slim +0 -8
- data/app/views/gaku/exams/exam_portions/update.js.erb +0 -27
- data/app/views/gaku/exams/export.xls.rb +0 -67
- data/app/views/gaku/exams/grading.html.slim +0 -34
- data/app/views/gaku/exams/index.html.slim +0 -21
- data/app/views/gaku/exams/new.js.erb +0 -3
- data/app/views/gaku/exams/recovery.js.erb +0 -1
- data/app/views/gaku/exams/show.html.slim +0 -33
- data/app/views/gaku/exams/update.js.erb +0 -5
- data/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +0 -9
- data/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +0 -6
- data/app/views/gaku/extracurricular_activities/_fields.html.slim +0 -1
- data/app/views/gaku/extracurricular_activities/_form.html.slim +0 -3
- data/app/views/gaku/extracurricular_activities/_form_fields.html.slim +0 -3
- data/app/views/gaku/extracurricular_activities/_modal.html.slim +0 -7
- data/app/views/gaku/extracurricular_activities/_tabs.html.slim +0 -14
- data/app/views/gaku/extracurricular_activities/create.js.erb +0 -6
- data/app/views/gaku/extracurricular_activities/destroy.js.erb +0 -2
- data/app/views/gaku/extracurricular_activities/edit.js.erb +0 -3
- data/app/views/gaku/extracurricular_activities/index.html.slim +0 -14
- data/app/views/gaku/extracurricular_activities/index.js.erb +0 -2
- data/app/views/gaku/extracurricular_activities/new.js.erb +0 -3
- data/app/views/gaku/extracurricular_activities/show.html.slim +0 -20
- data/app/views/gaku/extracurricular_activities/student_chooser.js.erb +0 -2
- data/app/views/gaku/extracurricular_activities/students/_student.html.slim +0 -5
- data/app/views/gaku/extracurricular_activities/students/_students.html.slim +0 -19
- data/app/views/gaku/extracurricular_activities/students/destroy.js.erb +0 -3
- data/app/views/gaku/extracurricular_activities/students/enroll_students.js.erb +0 -11
- data/app/views/gaku/extracurricular_activities/update.js.erb +0 -6
- data/app/views/gaku/home/_user_info.html.slim +0 -7
- data/app/views/gaku/home/_user_menu.html.slim +0 -2
- data/app/views/gaku/home/index.html.slim +0 -13
- data/app/views/gaku/layouts/admin/index.html.slim +0 -15
- data/app/views/gaku/layouts/edit.html.slim +0 -9
- data/app/views/gaku/layouts/gaku.html.slim +0 -23
- data/app/views/gaku/layouts/index.html.slim +0 -14
- data/app/views/gaku/layouts/show.html.slim +0 -10
- data/app/views/gaku/notes/_buttons.html.slim +0 -5
- data/app/views/gaku/notes/_fields.html.slim +0 -2
- data/app/views/gaku/notes/_form.html.slim +0 -6
- data/app/views/gaku/notes/_form_fields.html.slim +0 -6
- data/app/views/gaku/notes/_modal.html.slim +0 -6
- data/app/views/gaku/notes/_note.html.slim +0 -4
- data/app/views/gaku/notes/_notes.html.slim +0 -19
- data/app/views/gaku/notes/_show_modal.html.slim +0 -4
- data/app/views/gaku/notes/create.js.erb +0 -11
- data/app/views/gaku/notes/destroy.js.erb +0 -4
- data/app/views/gaku/notes/edit.js.erb +0 -3
- data/app/views/gaku/notes/new.js.erb +0 -3
- data/app/views/gaku/notes/show.js.erb +0 -3
- data/app/views/gaku/notes/update.js.erb +0 -4
- data/app/views/gaku/shared/_delete_modal.html.slim +0 -7
- data/app/views/gaku/shared/_delete_modal_remote.html.slim +0 -7
- data/app/views/gaku/shared/_errors.html.slim +0 -6
- data/app/views/gaku/shared/_external_school_record.html.slim +0 -36
- data/app/views/gaku/shared/_flash.html.slim +0 -4
- data/app/views/gaku/shared/_language_bar.html.slim +0 -8
- data/app/views/gaku/shared/_login_widget.html.slim +0 -27
- data/app/views/gaku/shared/_manage_buttons.html.slim +0 -4
- data/app/views/gaku/shared/_menubar.html.slim +0 -8
- data/app/views/gaku/shared/_modal_config.html.slim +0 -37
- data/app/views/gaku/shared/_multi_errors.html.slim +0 -6
- data/app/views/gaku/shared/_picture.html.slim +0 -12
- data/app/views/gaku/shared/_upload_picture.html.slim +0 -7
- data/app/views/gaku/shared/error.js.erb +0 -2
- data/app/views/gaku/shared/fields/_address_fields.html.slim +0 -7
- data/app/views/gaku/shared/fields/_attachment_fields.html.slim +0 -10
- data/app/views/gaku/shared/fields/_class_group_fields.html.slim +0 -3
- data/app/views/gaku/shared/fields/_course_fields.html.slim +0 -4
- data/app/views/gaku/shared/fields/_course_show_fields.html.slim +0 -3
- data/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +0 -8
- data/app/views/gaku/shared/fields/_person_edit_table.html.slim +0 -7
- data/app/views/gaku/shared/fields/_person_fields.html.slim +0 -4
- data/app/views/gaku/shared/fields/_person_show_table.html.slim +0 -3
- data/app/views/gaku/shared/fields/_semester_fields.html.slim +0 -1
- data/app/views/gaku/shared/fields/_student_fields.html.slim +0 -22
- data/app/views/gaku/shared/fields/_syllabus_fields.html.slim +0 -5
- data/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +0 -15
- data/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +0 -16
- data/app/views/gaku/shared/menu/_admin.html.erb +0 -105
- data/app/views/gaku/shared/multi_error.js.erb +0 -2
- data/app/views/gaku/shared/notice.js.erb +0 -2
- data/app/views/gaku/shared/overrides/students/_import_link.html.slim +0 -0
- data/app/views/gaku/shared/overrides/syllabuses/_import_link.html.slim +0 -0
- data/app/views/gaku/shared/student/_academic.html.slim +0 -18
- data/app/views/gaku/shared/student/_edit.html.slim +0 -20
- data/app/views/gaku/shared/student/_personal.html.slim +0 -6
- data/app/views/gaku/shared/student/_show.html.slim +0 -14
- data/app/views/gaku/shared/student/_show_table.html.slim +0 -51
- data/app/views/gaku/shared/student/_tabs.html.slim +0 -36
- data/app/views/gaku/shared/student_chooser/_chooser.html.slim +0 -36
- data/app/views/gaku/shared/student_chooser/_class_group.html.slim +0 -5
- data/app/views/gaku/shared/student_chooser/_course.html.slim +0 -5
- data/app/views/gaku/shared/student_chooser/_extracurricular_activity.html.slim +0 -5
- data/app/views/gaku/shared/student_chooser/_modal.html.slim +0 -4
- data/app/views/gaku/shared/student_chooser/_student.html.slim +0 -18
- data/app/views/gaku/states/_no_states_select.html.slim +0 -1
- data/app/views/gaku/states/_states_select.html.slim +0 -1
- data/app/views/gaku/states/index.js.erb +0 -5
- data/app/views/gaku/students/_delete_modal.html.slim +0 -5
- data/app/views/gaku/students/_form.html.slim +0 -3
- data/app/views/gaku/students/_form_fields.html.slim +0 -19
- data/app/views/gaku/students/_modal.html.slim +0 -6
- data/app/views/gaku/students/_student.html.slim +0 -6
- data/app/views/gaku/students/_student_unit.html.slim +0 -5
- data/app/views/gaku/students/_students.html.slim +0 -17
- data/app/views/gaku/students/class_group_enrollments/_new_modal.html.slim +0 -28
- data/app/views/gaku/students/class_group_enrollments/create.js.erb +0 -11
- data/app/views/gaku/students/class_group_enrollments/new.js.erb +0 -2
- data/app/views/gaku/students/commute_methods/_commute_method.html.slim +0 -6
- data/app/views/gaku/students/commute_methods/_modal.html.slim +0 -6
- data/app/views/gaku/students/commute_methods/create.js.erb +0 -3
- data/app/views/gaku/students/commute_methods/edit.js.erb +0 -5
- data/app/views/gaku/students/commute_methods/new.js.erb +0 -4
- data/app/views/gaku/students/commute_methods/update.js.erb +0 -3
- data/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +0 -5
- data/app/views/gaku/students/course_enrollments/_course_enrollment_unit.html.slim +0 -3
- data/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +0 -21
- data/app/views/gaku/students/course_enrollments/_errors_modal.html.slim +0 -11
- data/app/views/gaku/students/course_enrollments/_form.html.slim +0 -5
- data/app/views/gaku/students/course_enrollments/create.js.erb +0 -10
- data/app/views/gaku/students/course_enrollments/destroy.js.erb +0 -3
- data/app/views/gaku/students/course_enrollments/error.js.erb +0 -2
- data/app/views/gaku/students/course_enrollments/new.js.erb +0 -3
- data/app/views/gaku/students/create.js.erb +0 -8
- data/app/views/gaku/students/destroy.js.erb +0 -2
- data/app/views/gaku/students/edit.html.slim +0 -9
- data/app/views/gaku/students/edit.js.erb +0 -3
- data/app/views/gaku/students/guardians/_edit_table.html.slim +0 -9
- data/app/views/gaku/students/guardians/_form.html.slim +0 -3
- data/app/views/gaku/students/guardians/_form_fields.html.slim +0 -4
- data/app/views/gaku/students/guardians/_guardian.html.slim +0 -2
- data/app/views/gaku/students/guardians/_guardian_unit.html.slim +0 -12
- data/app/views/gaku/students/guardians/_guardians.html.slim +0 -26
- data/app/views/gaku/students/guardians/_modal.html.slim +0 -7
- data/app/views/gaku/students/guardians/_picture.html.slim +0 -12
- data/app/views/gaku/students/guardians/_show_table.html.slim +0 -13
- data/app/views/gaku/students/guardians/_tabs.html.slim +0 -15
- data/app/views/gaku/students/guardians/_upload_picture.html.slim +0 -7
- data/app/views/gaku/students/guardians/create.js.erb +0 -7
- data/app/views/gaku/students/guardians/destroy.js.erb +0 -4
- data/app/views/gaku/students/guardians/edit.html.slim +0 -7
- data/app/views/gaku/students/guardians/edit.js.erb +0 -3
- data/app/views/gaku/students/guardians/new.js.erb +0 -3
- data/app/views/gaku/students/guardians/recovery.js.erb +0 -1
- data/app/views/gaku/students/guardians/show.html.slim +0 -14
- data/app/views/gaku/students/guardians/update.js.erb +0 -4
- data/app/views/gaku/students/index.html.slim +0 -16
- data/app/views/gaku/students/index.js.erb +0 -13
- data/app/views/gaku/students/index.pdf.thinreports +0 -17
- data/app/views/gaku/students/new.js.erb +0 -3
- data/app/views/gaku/students/recovery.js.erb +0 -1
- data/app/views/gaku/students/search/_address.html.slim +0 -36
- data/app/views/gaku/students/search/_extended.slim +0 -134
- data/app/views/gaku/students/search/_form.html.slim +0 -25
- data/app/views/gaku/students/search/_student.html.slim +0 -24
- data/app/views/gaku/students/show.html.slim +0 -1
- data/app/views/gaku/students/show.pdf.thinreports +0 -8
- data/app/views/gaku/students/simple_grades/_edit.html.slim +0 -8
- data/app/views/gaku/students/simple_grades/_fields.html.slim +0 -6
- data/app/views/gaku/students/simple_grades/_form.html.slim +0 -6
- data/app/views/gaku/students/simple_grades/_form_fields.html.slim +0 -3
- data/app/views/gaku/students/simple_grades/_index.html.slim +0 -19
- data/app/views/gaku/students/simple_grades/_index_modal.html.slim +0 -4
- data/app/views/gaku/students/simple_grades/_simple_grade.html.slim +0 -3
- data/app/views/gaku/students/simple_grades/_simple_grades.html.slim +0 -2
- data/app/views/gaku/students/simple_grades/create.js.erb +0 -10
- data/app/views/gaku/students/simple_grades/destroy.js.erb +0 -4
- data/app/views/gaku/students/simple_grades/edit.js.erb +0 -2
- data/app/views/gaku/students/simple_grades/index.js.erb +0 -5
- data/app/views/gaku/students/simple_grades/new.js.erb +0 -3
- data/app/views/gaku/students/simple_grades/update.js.erb +0 -4
- data/app/views/gaku/students/student_achievements/_achievements_tab.html.slim +0 -12
- data/app/views/gaku/students/student_achievements/_edit.html.slim +0 -8
- data/app/views/gaku/students/student_achievements/_fields.html.slim +0 -8
- data/app/views/gaku/students/student_achievements/_form.html.slim +0 -6
- data/app/views/gaku/students/student_achievements/_form_fields.html.slim +0 -1
- data/app/views/gaku/students/student_achievements/_index.html.slim +0 -20
- data/app/views/gaku/students/student_achievements/_index_modal.html.slim +0 -4
- data/app/views/gaku/students/student_achievements/_student_achievement.html.slim +0 -3
- data/app/views/gaku/students/student_achievements/_student_achievements.html.slim +0 -2
- data/app/views/gaku/students/student_achievements/create.js.erb +0 -10
- data/app/views/gaku/students/student_achievements/destroy.js.erb +0 -4
- data/app/views/gaku/students/student_achievements/edit.js.erb +0 -2
- data/app/views/gaku/students/student_achievements/index.js.erb +0 -3
- data/app/views/gaku/students/student_achievements/new.js.erb +0 -3
- data/app/views/gaku/students/student_achievements/update.js.erb +0 -5
- data/app/views/gaku/students/student_specialties/_edit.html.slim +0 -8
- data/app/views/gaku/students/student_specialties/_fields.html.slim +0 -5
- data/app/views/gaku/students/student_specialties/_form.html.slim +0 -6
- data/app/views/gaku/students/student_specialties/_form_fields.html.slim +0 -2
- data/app/views/gaku/students/student_specialties/_index.html.slim +0 -18
- data/app/views/gaku/students/student_specialties/_index_modal.html.slim +0 -4
- data/app/views/gaku/students/student_specialties/_specialties_list.html.slim +0 -0
- data/app/views/gaku/students/student_specialties/_student_specialties.html.slim +0 -2
- data/app/views/gaku/students/student_specialties/_student_specialty.html.slim +0 -3
- data/app/views/gaku/students/student_specialties/create.js.erb +0 -11
- data/app/views/gaku/students/student_specialties/destroy.js.erb +0 -5
- data/app/views/gaku/students/student_specialties/edit.js.erb +0 -2
- data/app/views/gaku/students/student_specialties/index.js.erb +0 -5
- data/app/views/gaku/students/student_specialties/new.js.erb +0 -3
- data/app/views/gaku/students/student_specialties/update.js.erb +0 -4
- data/app/views/gaku/students/update.js.erb +0 -3
- data/app/views/gaku/syllabuses/_form.html.slim +0 -3
- data/app/views/gaku/syllabuses/_form_fields.html.slim +0 -10
- data/app/views/gaku/syllabuses/_modal.html.slim +0 -7
- data/app/views/gaku/syllabuses/_syllabus.html.slim +0 -2
- data/app/views/gaku/syllabuses/_syllabus_fields.html.slim +0 -4
- data/app/views/gaku/syllabuses/_syllabuses.html.slim +0 -11
- data/app/views/gaku/syllabuses/assignments/_assignment.html.slim +0 -9
- data/app/views/gaku/syllabuses/assignments/_assignments.html.slim +0 -19
- data/app/views/gaku/syllabuses/assignments/_form.html.slim +0 -17
- data/app/views/gaku/syllabuses/assignments/create.js.erb +0 -7
- data/app/views/gaku/syllabuses/create.js.erb +0 -7
- data/app/views/gaku/syllabuses/destroy.js.erb +0 -2
- data/app/views/gaku/syllabuses/edit.html.slim +0 -59
- data/app/views/gaku/syllabuses/edit.js.erb +0 -3
- data/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +0 -11
- data/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +0 -6
- data/app/views/gaku/syllabuses/exams/_exam.html.slim +0 -4
- data/app/views/gaku/syllabuses/exams/_exams.html.slim +0 -16
- data/app/views/gaku/syllabuses/exams/_fields.html.slim +0 -9
- data/app/views/gaku/syllabuses/exams/_form.html.slim +0 -15
- data/app/views/gaku/syllabuses/exams/_form_fields.html.slim +0 -10
- data/app/views/gaku/syllabuses/exams/_modal.html.slim +0 -6
- data/app/views/gaku/syllabuses/exams/_select_form.html.slim +0 -6
- data/app/views/gaku/syllabuses/exams/create.js.erb +0 -10
- data/app/views/gaku/syllabuses/exams/destroy.js.erb +0 -2
- data/app/views/gaku/syllabuses/exams/edit.js.erb +0 -3
- data/app/views/gaku/syllabuses/exams/new.js.erb +0 -3
- data/app/views/gaku/syllabuses/exams/update.js.erb +0 -4
- data/app/views/gaku/syllabuses/index.html.slim +0 -14
- data/app/views/gaku/syllabuses/new.js.erb +0 -3
- data/app/views/gaku/syllabuses/update.js.erb +0 -4
- data/app/views/gaku/teachers/_delete_modal.html.slim +0 -5
- data/app/views/gaku/teachers/_edit_table.html.slim +0 -5
- data/app/views/gaku/teachers/_fields.html.slim +0 -1
- data/app/views/gaku/teachers/_form.html.slim +0 -3
- data/app/views/gaku/teachers/_form_fields.html.slim +0 -1
- data/app/views/gaku/teachers/_modal.html.slim +0 -6
- data/app/views/gaku/teachers/_show_table.html.slim +0 -7
- data/app/views/gaku/teachers/_tabs.html.slim +0 -21
- data/app/views/gaku/teachers/_teacher.html.slim +0 -6
- data/app/views/gaku/teachers/_teacher_unit.html.slim +0 -4
- data/app/views/gaku/teachers/_teachers.html.slim +0 -11
- data/app/views/gaku/teachers/create.js.erb +0 -8
- data/app/views/gaku/teachers/destroy.js.erb +0 -2
- data/app/views/gaku/teachers/edit.html.slim +0 -23
- data/app/views/gaku/teachers/edit.js.erb +0 -3
- data/app/views/gaku/teachers/index.html.slim +0 -16
- data/app/views/gaku/teachers/index.js.erb +0 -2
- data/app/views/gaku/teachers/new.js.erb +0 -3
- data/app/views/gaku/teachers/recovery.js.erb +0 -1
- data/app/views/gaku/teachers/show.html.slim +0 -14
- data/app/views/gaku/teachers/update.js.erb +0 -4
- data/app/views/kaminari/_first_page.html.erb +0 -11
- data/app/views/kaminari/_gap.html.erb +0 -8
- data/app/views/kaminari/_last_page.html.erb +0 -11
- data/app/views/kaminari/_next_page.html.erb +0 -11
- data/app/views/kaminari/_page.html.erb +0 -12
- data/app/views/kaminari/_paginator.html.erb +0 -25
- data/app/views/kaminari/_prev_page.html.erb +0 -11
- data/config/initializers/client_side_validations.rb +0 -9
- data/config/initializers/mime_types.rb +0 -1
- data/config/initializers/paper_trail.rb +0 -3
- data/config/initializers/ruby_template_handler.rb +0 -1
- data/config/initializers/wrap_parameters.rb +0 -14
- data/db/migrate/20131014065028_gaku_core.rb +0 -685
- data/lib/gaku/app_responder.rb +0 -6
- data/lib/gaku/core/version.rb +0 -5
- data/lib/gaku/testing/env.rb +0 -10
- data/lib/gaku/testing/factories/student_achievement_factory.rb +0 -8
- data/lib/gaku/testing/flash_helpers.rb +0 -35
- data/lib/gaku/testing/request_helpers.rb +0 -212
- data/vendor/assets/javascripts/backbone.js +0 -1431
- data/vendor/assets/javascripts/tablefix.js.coffee +0 -109
@@ -0,0 +1,628 @@
|
|
1
|
+
require 'gaku/migrations'
|
2
|
+
|
3
|
+
class GakuCore < ActiveRecord::Migration
|
4
|
+
|
5
|
+
include Gaku::Migrations
|
6
|
+
|
7
|
+
def change
|
8
|
+
create_table :gaku_badge_types do |t|
|
9
|
+
t.string :name
|
10
|
+
t.string :code
|
11
|
+
t.text :description
|
12
|
+
t.string :authority
|
13
|
+
t.string :issuer
|
14
|
+
t.string :url
|
15
|
+
t.attachment :badge_image
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
|
19
|
+
create_table :gaku_addresses do |t|
|
20
|
+
t.string :address1
|
21
|
+
t.string :address2
|
22
|
+
t.string :city
|
23
|
+
t.string :zipcode
|
24
|
+
t.string :title
|
25
|
+
t.boolean :primary, default: false
|
26
|
+
t.references :addressable, polymorphic: true
|
27
|
+
t.references :country
|
28
|
+
t.references :state
|
29
|
+
t.timestamps
|
30
|
+
end
|
31
|
+
add_index :gaku_addresses, :country_id
|
32
|
+
add_index :gaku_addresses, :state_id
|
33
|
+
add_index :gaku_addresses, [:addressable_id, :addressable_type]
|
34
|
+
|
35
|
+
|
36
|
+
create_table :gaku_assignment_scores do |t|
|
37
|
+
t.float :score
|
38
|
+
t.references :student
|
39
|
+
t.timestamps
|
40
|
+
end
|
41
|
+
add_index :gaku_assignment_scores, :student_id
|
42
|
+
|
43
|
+
create_table :gaku_assignments do |t|
|
44
|
+
t.string :name
|
45
|
+
t.text :description
|
46
|
+
t.integer :max_score
|
47
|
+
t.references :syllabus
|
48
|
+
t.references :grading_method
|
49
|
+
t.timestamps
|
50
|
+
end
|
51
|
+
|
52
|
+
create_table :gaku_attachments do |t|
|
53
|
+
t.string :name
|
54
|
+
t.text :description
|
55
|
+
t.attachment :asset
|
56
|
+
t.references :attachable, polymorphic: true
|
57
|
+
t.timestamps
|
58
|
+
end
|
59
|
+
add_index :gaku_attachments, [:attachable_id, :attachable_type]
|
60
|
+
|
61
|
+
|
62
|
+
create_table :gaku_attendances do |t|
|
63
|
+
t.text :reason
|
64
|
+
t.references :attendancable, polymorphic: true
|
65
|
+
t.references :student
|
66
|
+
t.references :attendance_type
|
67
|
+
t.timestamps
|
68
|
+
end
|
69
|
+
add_index :gaku_attendances, :student_id
|
70
|
+
add_index :gaku_attendances, :attendance_type_id
|
71
|
+
|
72
|
+
create_table :gaku_campuses do |t|
|
73
|
+
t.string :name
|
74
|
+
t.boolean :master, default: false
|
75
|
+
t.attachment :picture
|
76
|
+
t.counters :contacts, :addresses
|
77
|
+
t.references :school
|
78
|
+
t.timestamps
|
79
|
+
end
|
80
|
+
add_index :gaku_campuses, :school_id
|
81
|
+
|
82
|
+
create_table :gaku_class_group_course_enrollments do |t|
|
83
|
+
t.references :class_group
|
84
|
+
t.references :course
|
85
|
+
t.timestamps
|
86
|
+
end
|
87
|
+
add_index :gaku_class_group_course_enrollments, :class_group_id
|
88
|
+
add_index :gaku_class_group_course_enrollments, :course_id
|
89
|
+
|
90
|
+
create_table :gaku_class_group_enrollments do |t|
|
91
|
+
t.integer :seat_number
|
92
|
+
t.references :class_group
|
93
|
+
t.references :student
|
94
|
+
t.timestamps
|
95
|
+
end
|
96
|
+
add_index :gaku_class_group_enrollments, :class_group_id
|
97
|
+
add_index :gaku_class_group_enrollments, :student_id
|
98
|
+
|
99
|
+
create_table :gaku_class_groups do |t|
|
100
|
+
t.string :name
|
101
|
+
t.integer :grade
|
102
|
+
t.string :homeroom
|
103
|
+
t.counters :notes
|
104
|
+
t.references :faculty
|
105
|
+
t.timestamps
|
106
|
+
end
|
107
|
+
add_index :gaku_class_groups, :faculty_id
|
108
|
+
|
109
|
+
create_table :gaku_contact_types do |t|
|
110
|
+
t.string :name
|
111
|
+
t.timestamps
|
112
|
+
end
|
113
|
+
add_index :gaku_contact_types, :name, unique: true
|
114
|
+
|
115
|
+
create_table :gaku_contacts do |t|
|
116
|
+
t.string :data
|
117
|
+
t.text :details
|
118
|
+
t.boolean :primary, default: false
|
119
|
+
t.boolean :emergency, default: false
|
120
|
+
t.references :contactable, polymorphic: true
|
121
|
+
t.references :contact_type
|
122
|
+
t.timestamps
|
123
|
+
end
|
124
|
+
add_index :gaku_contacts, :contact_type_id
|
125
|
+
add_index :gaku_contacts, [:contactable_id, :contactable_type]
|
126
|
+
|
127
|
+
|
128
|
+
create_table :gaku_countries do |t|
|
129
|
+
t.string :iso_name
|
130
|
+
t.string :iso
|
131
|
+
t.string :iso3
|
132
|
+
t.string :name
|
133
|
+
t.integer :numcode
|
134
|
+
t.timestamps
|
135
|
+
end
|
136
|
+
add_index :gaku_countries, :iso, unique: true
|
137
|
+
|
138
|
+
create_table :gaku_course_enrollments do |t|
|
139
|
+
t.references :student
|
140
|
+
t.references :course
|
141
|
+
t.timestamps
|
142
|
+
end
|
143
|
+
add_index :gaku_course_enrollments, :student_id
|
144
|
+
add_index :gaku_course_enrollments, :course_id
|
145
|
+
|
146
|
+
create_table :gaku_course_group_enrollments do |t|
|
147
|
+
t.references :course
|
148
|
+
t.references :course_group
|
149
|
+
t.timestamps
|
150
|
+
end
|
151
|
+
add_index :gaku_course_group_enrollments, :course_id
|
152
|
+
add_index :gaku_course_group_enrollments, :course_group_id
|
153
|
+
|
154
|
+
create_table :gaku_course_groups do |t|
|
155
|
+
t.string :name
|
156
|
+
t.timestamps
|
157
|
+
end
|
158
|
+
add_index :gaku_course_groups, :name
|
159
|
+
|
160
|
+
create_table :gaku_courses do |t|
|
161
|
+
t.string :name
|
162
|
+
t.string :code
|
163
|
+
t.counters :notes, :students
|
164
|
+
t.references :faculty
|
165
|
+
t.references :syllabus
|
166
|
+
t.references :class_group
|
167
|
+
t.timestamps
|
168
|
+
end
|
169
|
+
add_index :gaku_courses, :code
|
170
|
+
add_index :gaku_courses, :faculty_id
|
171
|
+
add_index :gaku_courses, :syllabus_id
|
172
|
+
add_index :gaku_courses, :class_group_id
|
173
|
+
|
174
|
+
|
175
|
+
create_table :gaku_exam_portion_scores do |t|
|
176
|
+
t.float :score
|
177
|
+
t.string :entry_number
|
178
|
+
t.references :exam_portion
|
179
|
+
t.references :student
|
180
|
+
t.timestamps
|
181
|
+
end
|
182
|
+
add_index :gaku_exam_portion_scores, :exam_portion_id
|
183
|
+
add_index :gaku_exam_portion_scores, :student_id
|
184
|
+
|
185
|
+
create_table :gaku_exam_portions do |t|
|
186
|
+
t.string :name
|
187
|
+
t.float :max_score
|
188
|
+
t.float :weight
|
189
|
+
t.integer :problem_count
|
190
|
+
t.text :description
|
191
|
+
t.text :adjustments
|
192
|
+
t.integer :position
|
193
|
+
t.references :exam
|
194
|
+
t.references :grading_method
|
195
|
+
t.timestamps
|
196
|
+
end
|
197
|
+
add_index :gaku_exam_portions, :exam_id
|
198
|
+
add_index :gaku_exam_portions, :grading_method_id
|
199
|
+
|
200
|
+
create_table :gaku_exam_schedules do |t|
|
201
|
+
t.references :exam_portion
|
202
|
+
t.references :schedule
|
203
|
+
t.references :course
|
204
|
+
t.timestamps
|
205
|
+
end
|
206
|
+
add_index :gaku_exam_schedules, :exam_portion_id
|
207
|
+
add_index :gaku_exam_schedules, :schedule_id
|
208
|
+
add_index :gaku_exam_schedules, :course_id
|
209
|
+
|
210
|
+
create_table :gaku_exam_scores do |t|
|
211
|
+
t.float :score
|
212
|
+
t.text :comment
|
213
|
+
t.references :exam
|
214
|
+
t.timestamps
|
215
|
+
end
|
216
|
+
add_index :gaku_exam_scores, :exam_id
|
217
|
+
|
218
|
+
create_table :gaku_exam_syllabuses do |t|
|
219
|
+
t.references :exam
|
220
|
+
t.references :syllabus
|
221
|
+
t.timestamps
|
222
|
+
end
|
223
|
+
add_index :gaku_exam_syllabuses, :exam_id
|
224
|
+
add_index :gaku_exam_syllabuses, :syllabus_id
|
225
|
+
|
226
|
+
create_table :gaku_exams do |t|
|
227
|
+
t.string :name
|
228
|
+
t.text :description
|
229
|
+
t.text :adjustments
|
230
|
+
t.float :weight
|
231
|
+
t.boolean :use_weighting, default: false
|
232
|
+
t.boolean :standalone, default: false
|
233
|
+
t.boolean :has_entry_numbers, default: false
|
234
|
+
t.counters :notes, :exam_portions
|
235
|
+
t.references :grading_method
|
236
|
+
t.references :department
|
237
|
+
t.timestamps
|
238
|
+
end
|
239
|
+
add_index :gaku_exams, :name
|
240
|
+
add_index :gaku_exams, :grading_method_id
|
241
|
+
add_index :gaku_exams, :department_id
|
242
|
+
|
243
|
+
|
244
|
+
create_table :gaku_external_school_records do |t|
|
245
|
+
t.date :beginning
|
246
|
+
t.date :ending
|
247
|
+
t.string :student_id_number
|
248
|
+
t.integer :absences
|
249
|
+
t.float :attendance_rate
|
250
|
+
t.boolean :graduated
|
251
|
+
t.text :data
|
252
|
+
t.references :school
|
253
|
+
t.references :student
|
254
|
+
t.timestamps
|
255
|
+
end
|
256
|
+
add_index :gaku_external_school_records, :school_id
|
257
|
+
add_index :gaku_external_school_records, :student_id
|
258
|
+
|
259
|
+
create_table :gaku_extracurricular_activities do |t|
|
260
|
+
t.string :name
|
261
|
+
t.timestamps
|
262
|
+
end
|
263
|
+
add_index :gaku_extracurricular_activities, :name, unique: true
|
264
|
+
|
265
|
+
create_table :gaku_extracurricular_activity_enrollments do |t|
|
266
|
+
t.references :extracurricular_activity
|
267
|
+
t.references :student
|
268
|
+
t.timestamps
|
269
|
+
end
|
270
|
+
add_index :gaku_extracurricular_activity_enrollments, :extracurricular_activity_id, name: 'ex_activity_enrollments_ex_activity_id'
|
271
|
+
add_index :gaku_extracurricular_activity_enrollments, :student_id, name: 'ex_activity_enrollments_student_id'
|
272
|
+
|
273
|
+
create_table :gaku_faculties do |t|
|
274
|
+
t.references :user
|
275
|
+
t.timestamps
|
276
|
+
end
|
277
|
+
|
278
|
+
create_table :gaku_grading_method_set_items do |t|
|
279
|
+
t.integer :position
|
280
|
+
t.references :grading_method
|
281
|
+
t.references :grading_method_set
|
282
|
+
t.timestamps
|
283
|
+
end
|
284
|
+
add_index :gaku_grading_method_set_items, :grading_method_id, name: 'index_gaku_grading_method_set_items_on_grading_method_id', using: :btree
|
285
|
+
add_index :gaku_grading_method_set_items, :grading_method_set_id, name: 'index_gaku_grading_method_set_items_on_grading_method_set_id', using: :btree
|
286
|
+
|
287
|
+
create_table :gaku_grading_method_sets do |t|
|
288
|
+
t.string :name
|
289
|
+
t.boolean :primary, default: false
|
290
|
+
t.boolean :display_deviation, default: true
|
291
|
+
t.boolean :display_rank, default: true
|
292
|
+
t.boolean :rank_order, default: true
|
293
|
+
t.timestamps
|
294
|
+
end
|
295
|
+
add_index :gaku_grading_method_sets, :name, unique: true
|
296
|
+
|
297
|
+
create_table :gaku_grading_methods do |t|
|
298
|
+
t.string :name
|
299
|
+
t.text :description
|
300
|
+
t.text :method
|
301
|
+
t.hstore :arguments
|
302
|
+
t.boolean :curved, default: true
|
303
|
+
t.timestamps
|
304
|
+
end
|
305
|
+
add_index :gaku_grading_methods, :name, unique: true
|
306
|
+
|
307
|
+
create_table :gaku_guardians do |t|
|
308
|
+
t.person_fields
|
309
|
+
t.string :relationship
|
310
|
+
t.attachment :picture
|
311
|
+
t.string :primary_address
|
312
|
+
t.string :primary_contact
|
313
|
+
t.counters :addresses, :contacts
|
314
|
+
t.references :user
|
315
|
+
t.timestamps
|
316
|
+
end
|
317
|
+
add_index :gaku_guardians, :user_id
|
318
|
+
|
319
|
+
|
320
|
+
create_table :gaku_installs do |t|
|
321
|
+
t.string :email, default: '', null: false
|
322
|
+
t.string :encrypted_password, default: '', null: false
|
323
|
+
t.string :reset_password_token
|
324
|
+
t.datetime :reset_password_sent_at
|
325
|
+
t.datetime :remember_created_at
|
326
|
+
t.integer :sign_in_count, default: 0
|
327
|
+
t.datetime :current_sign_in_at
|
328
|
+
t.datetime :last_sign_in_at
|
329
|
+
t.string :current_sign_in_ip
|
330
|
+
t.string :last_sign_in_ip
|
331
|
+
t.timestamps
|
332
|
+
end
|
333
|
+
|
334
|
+
add_index :gaku_installs, :email, name: 'index_gaku_installs_on_email', unique: true, using: :btree
|
335
|
+
add_index :gaku_installs, :reset_password_token, name: 'index_gaku_installs_on_reset_password_token', unique: true, using: :btree
|
336
|
+
|
337
|
+
create_table :gaku_lesson_plans do |t|
|
338
|
+
t.string :title
|
339
|
+
t.text :description
|
340
|
+
t.counters :notes
|
341
|
+
t.references :syllabus
|
342
|
+
t.timestamps
|
343
|
+
end
|
344
|
+
add_index :gaku_lesson_plans, :syllabus_id
|
345
|
+
|
346
|
+
create_table :gaku_lessons do |t|
|
347
|
+
t.references :lesson_plan
|
348
|
+
t.timestamps
|
349
|
+
end
|
350
|
+
add_index :gaku_lessons, :lesson_plan_id
|
351
|
+
|
352
|
+
create_table :gaku_levels do |t|
|
353
|
+
t.string :name
|
354
|
+
t.references :school
|
355
|
+
t.timestamps
|
356
|
+
end
|
357
|
+
add_index :gaku_levels, :name, unique: true
|
358
|
+
add_index :gaku_levels, :school_id
|
359
|
+
|
360
|
+
create_table :gaku_notes do |t|
|
361
|
+
t.string :title
|
362
|
+
t.text :content
|
363
|
+
t.references :notable, polymorphic: true
|
364
|
+
t.timestamps
|
365
|
+
end
|
366
|
+
add_index :gaku_notes, [:notable_id, :notable_type], using: :btree
|
367
|
+
|
368
|
+
create_table :gaku_program_levels do |t|
|
369
|
+
t.references :program
|
370
|
+
t.references :level
|
371
|
+
t.timestamps
|
372
|
+
end
|
373
|
+
add_index :gaku_program_levels, :program_id
|
374
|
+
add_index :gaku_program_levels, :level_id
|
375
|
+
|
376
|
+
create_table :gaku_program_specialties do |t|
|
377
|
+
t.references :program
|
378
|
+
t.references :specialty
|
379
|
+
t.timestamps
|
380
|
+
end
|
381
|
+
add_index :gaku_program_specialties, :program_id
|
382
|
+
add_index :gaku_program_specialties, :specialty_id
|
383
|
+
|
384
|
+
create_table :gaku_program_syllabuses do |t|
|
385
|
+
t.references :program
|
386
|
+
t.references :syllabus
|
387
|
+
t.references :level
|
388
|
+
t.timestamps
|
389
|
+
end
|
390
|
+
add_index :gaku_program_syllabuses, :program_id
|
391
|
+
add_index :gaku_program_syllabuses, :syllabus_id
|
392
|
+
add_index :gaku_program_syllabuses, :level_id
|
393
|
+
|
394
|
+
create_table :gaku_programs do |t|
|
395
|
+
t.string :name
|
396
|
+
t.text :description
|
397
|
+
t.references :school
|
398
|
+
t.timestamps
|
399
|
+
end
|
400
|
+
add_index :gaku_programs, :name, unique: true
|
401
|
+
add_index :gaku_programs, :school_id
|
402
|
+
|
403
|
+
create_table :gaku_roles do |t|
|
404
|
+
t.string :name
|
405
|
+
t.timestamps
|
406
|
+
end
|
407
|
+
add_index :gaku_roles, :name, unique: true
|
408
|
+
|
409
|
+
create_table :gaku_schedules do |t|
|
410
|
+
t.datetime :starting
|
411
|
+
t.datetime :ending
|
412
|
+
t.string :repeat
|
413
|
+
t.timestamps
|
414
|
+
end
|
415
|
+
|
416
|
+
create_table :gaku_school_roles do |t|
|
417
|
+
t.string :name
|
418
|
+
t.references :school_rolable, polymorphic: true
|
419
|
+
t.timestamps
|
420
|
+
end
|
421
|
+
add_index :gaku_school_roles, :name, unique: true
|
422
|
+
add_index :gaku_school_roles, [:school_rolable_id, :school_rolable_type], name: 'index_gaku_school_roles_school_rolable_fields'
|
423
|
+
|
424
|
+
create_table :gaku_school_years do |t|
|
425
|
+
t.date :starting
|
426
|
+
t.date :ending
|
427
|
+
t.timestamps
|
428
|
+
end
|
429
|
+
|
430
|
+
create_table :gaku_schools do |t|
|
431
|
+
t.string :name
|
432
|
+
t.boolean :primary, default: false
|
433
|
+
t.text :slogan
|
434
|
+
t.text :description
|
435
|
+
t.date :founded
|
436
|
+
t.string :principal
|
437
|
+
t.string :vice_principal
|
438
|
+
t.text :grades
|
439
|
+
t.string :code
|
440
|
+
t.attachment :picture
|
441
|
+
t.timestamps
|
442
|
+
end
|
443
|
+
add_index :gaku_schools, :name, unique: true
|
444
|
+
|
445
|
+
create_table :gaku_semester_class_groups do |t|
|
446
|
+
t.references :semester
|
447
|
+
t.references :class_group
|
448
|
+
t.timestamps
|
449
|
+
end
|
450
|
+
add_index :gaku_semester_class_groups, :class_group_id, name: 'index_gaku_semester_class_groups_on_class_group_id', using: :btree
|
451
|
+
add_index :gaku_semester_class_groups, :semester_id, name: 'index_gaku_semester_class_groups_on_semester_id', using: :btree
|
452
|
+
|
453
|
+
create_table :gaku_semester_courses do |t|
|
454
|
+
t.references :semester
|
455
|
+
t.references :course
|
456
|
+
t.timestamps
|
457
|
+
end
|
458
|
+
add_index :gaku_semester_courses, :course_id, name: 'index_gaku_semester_courses_on_course_id', using: :btree
|
459
|
+
add_index :gaku_semester_courses, :semester_id, name: 'index_gaku_semester_courses_on_semester_id', using: :btree
|
460
|
+
|
461
|
+
create_table :gaku_semesters do |t|
|
462
|
+
t.date :starting
|
463
|
+
t.date :ending
|
464
|
+
t.references :school_year
|
465
|
+
t.timestamps
|
466
|
+
end
|
467
|
+
add_index :gaku_semesters, :school_year_id
|
468
|
+
|
469
|
+
create_table :gaku_simple_grades do |t|
|
470
|
+
t.float :score
|
471
|
+
t.date :award_date
|
472
|
+
t.references :simple_grade_type
|
473
|
+
t.references :student
|
474
|
+
t.timestamps
|
475
|
+
end
|
476
|
+
add_index :gaku_simple_grades, :simple_grade_type_id
|
477
|
+
add_index :gaku_simple_grades, :student_id
|
478
|
+
|
479
|
+
create_table :gaku_simple_grade_types do |t|
|
480
|
+
t.string :name
|
481
|
+
t.float :max_score
|
482
|
+
t.float :passing_score
|
483
|
+
t.references :grading_method
|
484
|
+
t.references :school
|
485
|
+
t.timestamps
|
486
|
+
end
|
487
|
+
add_index :gaku_simple_grade_types, :grading_method_id
|
488
|
+
add_index :gaku_simple_grade_types, :school_id
|
489
|
+
|
490
|
+
create_table :gaku_specialties do |t|
|
491
|
+
t.string :name
|
492
|
+
t.text :description
|
493
|
+
t.boolean :major_only, default: false
|
494
|
+
t.references :department
|
495
|
+
t.timestamps
|
496
|
+
end
|
497
|
+
add_index :gaku_specialties, :name, unique: true
|
498
|
+
add_index :gaku_specialties, :department_id
|
499
|
+
|
500
|
+
create_table :gaku_states do |t|
|
501
|
+
t.string :name
|
502
|
+
t.string :abbr
|
503
|
+
t.string :name_ascii
|
504
|
+
t.integer :code
|
505
|
+
t.string :country_iso
|
506
|
+
t.timestamps
|
507
|
+
end
|
508
|
+
add_index :gaku_states, :country_iso
|
509
|
+
|
510
|
+
create_table :gaku_badges do |t|
|
511
|
+
t.string :url
|
512
|
+
t.date :award_date
|
513
|
+
t.references :student
|
514
|
+
t.references :badge_type
|
515
|
+
t.timestamps
|
516
|
+
end
|
517
|
+
add_index :gaku_badges, :student_id
|
518
|
+
add_index :gaku_badges, :badge_type_id
|
519
|
+
|
520
|
+
create_table :gaku_student_guardians do |t|
|
521
|
+
t.references :student
|
522
|
+
t.references :guardian
|
523
|
+
t.timestamps
|
524
|
+
end
|
525
|
+
add_index :gaku_student_guardians, :student_id
|
526
|
+
add_index :gaku_student_guardians, :guardian_id
|
527
|
+
|
528
|
+
create_table :gaku_student_specialties do |t|
|
529
|
+
t.references :student
|
530
|
+
t.references :specialty
|
531
|
+
t.boolean :major, default: true
|
532
|
+
t.timestamps
|
533
|
+
end
|
534
|
+
add_index :gaku_student_specialties, :student_id
|
535
|
+
add_index :gaku_student_specialties, :specialty_id
|
536
|
+
|
537
|
+
create_table :gaku_students do |t|
|
538
|
+
t.person_fields
|
539
|
+
t.date :admitted
|
540
|
+
t.date :graduated
|
541
|
+
t.string :code
|
542
|
+
t.string :serial_id
|
543
|
+
t.string :foreign_id_code
|
544
|
+
t.string :national_registration_code
|
545
|
+
t.string :enrollment_status_code
|
546
|
+
t.attachment :picture
|
547
|
+
t.counters :addresses, :contacts, :notes, :courses, :guardians, :external_school_records, :badges
|
548
|
+
t.string :primary_address
|
549
|
+
t.string :primary_contact
|
550
|
+
t.string :class_and_number
|
551
|
+
t.references :user
|
552
|
+
t.references :faculty
|
553
|
+
t.references :commute_method_type
|
554
|
+
t.references :scholarship_status
|
555
|
+
t.timestamps
|
556
|
+
end
|
557
|
+
add_index :gaku_students, :user_id
|
558
|
+
add_index :gaku_students, :faculty_id
|
559
|
+
add_index :gaku_students, :commute_method_type_id
|
560
|
+
add_index :gaku_students, :scholarship_status_id
|
561
|
+
add_index :gaku_students, :enrollment_status_code
|
562
|
+
|
563
|
+
|
564
|
+
create_table :gaku_syllabuses do |t|
|
565
|
+
t.string :name
|
566
|
+
t.string :code
|
567
|
+
t.text :description
|
568
|
+
t.integer :credits
|
569
|
+
t.integer :hours
|
570
|
+
t.counters :notes, :exams
|
571
|
+
t.references :department
|
572
|
+
t.timestamps
|
573
|
+
end
|
574
|
+
add_index :gaku_syllabuses, :department_id
|
575
|
+
|
576
|
+
create_table :gaku_teachers do |t|
|
577
|
+
t.person_fields
|
578
|
+
t.attachment :picture
|
579
|
+
t.string :primary_address
|
580
|
+
t.string :primary_contact
|
581
|
+
t.counters :addresses, :contacts, :notes
|
582
|
+
t.references :user
|
583
|
+
t.timestamps
|
584
|
+
end
|
585
|
+
add_index :gaku_teachers, :user_id
|
586
|
+
|
587
|
+
|
588
|
+
create_table :gaku_templates do |t|
|
589
|
+
t.attachment :file
|
590
|
+
t.string :name
|
591
|
+
t.string :context
|
592
|
+
t.boolean :locked, default: false
|
593
|
+
t.timestamps
|
594
|
+
end
|
595
|
+
|
596
|
+
create_table :gaku_user_roles do |t|
|
597
|
+
t.references :user
|
598
|
+
t.references :role
|
599
|
+
t.timestamps
|
600
|
+
end
|
601
|
+
add_index :gaku_user_roles, :user_id
|
602
|
+
add_index :gaku_user_roles, :role_id
|
603
|
+
|
604
|
+
create_table :gaku_users do |t|
|
605
|
+
t.boolean :admin, default: false
|
606
|
+
t.text :settings
|
607
|
+
t.string :locale
|
608
|
+
t.integer :sign_in_count, default: 0
|
609
|
+
t.datetime :current_sign_in_at
|
610
|
+
t.datetime :last_sign_in_at
|
611
|
+
t.string :current_sign_in_ip
|
612
|
+
t.string :last_sign_in_ip
|
613
|
+
t.string :reset_password_token
|
614
|
+
t.datetime :reset_password_sent_at
|
615
|
+
t.datetime :remember_created_at
|
616
|
+
t.string :username
|
617
|
+
t.string :email
|
618
|
+
t.string :encrypted_password
|
619
|
+
t.timestamps
|
620
|
+
end
|
621
|
+
|
622
|
+
add_index 'gaku_users', ['email'], name: 'index_gaku_users_on_email', unique: true, using: :btree
|
623
|
+
add_index 'gaku_users', ['reset_password_token'], name: 'index_gaku_users_on_reset_password_token', unique: true, using: :btree
|
624
|
+
add_index 'gaku_users', ['username'], name: 'index_gaku_users_on_username', unique: true, using: :btree
|
625
|
+
|
626
|
+
|
627
|
+
end
|
628
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class ChangeFieldsExternalSchoolRecord < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
add_column :gaku_external_school_records, :units_absent, :integer
|
4
|
+
add_column :gaku_external_school_records, :total_units, :integer
|
5
|
+
remove_column :gaku_external_school_records, :attendance_rate
|
6
|
+
end
|
7
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class CreateStudentConfigs < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :gaku_student_configs do |t|
|
4
|
+
t.boolean :active, default: false
|
5
|
+
t.boolean :increment_foreign_id_code
|
6
|
+
t.string :last_foreign_id_code
|
7
|
+
t.boolean :show_code, default: true
|
8
|
+
t.boolean :show_name, default: true
|
9
|
+
t.boolean :show_surname, default: true
|
10
|
+
t.boolean :show_birth_date, default: true
|
11
|
+
t.boolean :show_sex, default: true
|
12
|
+
t.boolean :show_class_name, default: true
|
13
|
+
t.boolean :show_admitted_on, default: true
|
14
|
+
t.boolean :show_primary_address, default: true
|
15
|
+
t.boolean :show_primary_contact, default: true
|
16
|
+
t.boolean :show_assignments, default: true
|
17
|
+
|
18
|
+
t.timestamps
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/gaku/core/engine.rb
CHANGED
@@ -6,40 +6,24 @@ module Gaku
|
|
6
6
|
|
7
7
|
config.autoload_paths += %W(#{config.root}/lib)
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
initializer "gaku.paperclip" do
|
10
|
+
Paperclip.interpolates(:placeholder) do |attachment, style|
|
11
|
+
ActionController::Base.helpers.asset_path("missing_#{style}.png")
|
12
|
+
end
|
11
13
|
end
|
12
14
|
|
13
|
-
|
15
|
+
initializer "gaku.ruby_template_handler" do
|
16
|
+
ActionView::Template.register_template_handler(:rb, :source.to_proc)
|
14
17
|
end
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
config.after_initialize do
|
19
|
+
initializer "gaku.mime_types" do
|
20
|
+
Mime::Type.register 'application/xls', :xls
|
19
21
|
end
|
20
22
|
|
21
|
-
# We need to reload the routes here due to how Gaku sets them up.
|
22
|
-
# The different facets of Gaku append/prepend routes to Core
|
23
|
-
# *after* Core has been loaded.
|
24
|
-
#
|
25
|
-
# So we wait until after initialization is complete to do one final reload.
|
26
|
-
# This then makes the appended/prepended routes available to the application.
|
27
23
|
config.after_initialize do
|
28
24
|
Rails.application.routes_reloader.reload!
|
29
25
|
end
|
30
26
|
|
31
|
-
# sets the manifests / assets to be precompiled, even when initialize_on_precompile is false
|
32
|
-
initializer 'gaku.assets.precompile', group: :all do |app|
|
33
|
-
app.config.assets.precompile += %w[
|
34
|
-
gaku/all.*
|
35
|
-
]
|
36
|
-
end
|
37
|
-
|
38
|
-
# filter sensitive information during logging
|
39
|
-
initializer 'gaku.params.filter' do |app|
|
40
|
-
app.config.filter_parameters += [:password, :password_confirmation, :number]
|
41
|
-
end
|
42
|
-
|
43
27
|
end
|
44
28
|
end
|
45
29
|
end
|