gaku_frontend 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.svg +228 -0
- data/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/gaku/frontend.js.coffee +42 -0
- data/app/assets/javascripts/gaku/frontend/base.js.coffee +147 -0
- data/app/assets/javascripts/gaku/frontend/class_groups.js.coffee +19 -0
- data/app/assets/javascripts/gaku/frontend/courses.js.coffee +23 -0
- data/app/assets/javascripts/gaku/frontend/exams.js.coffee +23 -0
- data/app/assets/javascripts/gaku/frontend/extracurricular_activities.js.coffee +12 -0
- data/app/assets/javascripts/gaku/frontend/slide.js.erb +14 -0
- data/app/assets/javascripts/gaku/frontend/students.js.coffee +38 -0
- data/app/assets/javascripts/gaku/frontend/syllabuses.js.coffee +23 -0
- data/app/assets/javascripts/gaku/frontend/teachers.js.coffee +12 -0
- data/app/assets/stylesheets/gaku/bootstrap_and_theme.css.scss +573 -0
- data/app/assets/stylesheets/gaku/frontend.css +14 -0
- data/app/assets/stylesheets/gaku/frontend/class_groups.css.scss +19 -0
- data/app/assets/stylesheets/gaku/frontend/course_groups.css.scss +14 -0
- data/app/assets/stylesheets/gaku/frontend/courses.css.scss +19 -0
- data/app/assets/stylesheets/gaku/frontend/exams.css.scss +72 -0
- data/app/assets/stylesheets/gaku/frontend/gaku.css.scss +216 -0
- data/app/assets/stylesheets/gaku/frontend/students.css.scss +22 -0
- data/app/assets/templates/roster.xls +0 -0
- data/app/controllers/concerns/enrollments_controller.rb +83 -0
- data/app/controllers/concerns/polymorphic_resource_concern.rb +48 -0
- data/app/controllers/concerns/student_chooser_controller.rb +41 -0
- data/app/controllers/gaku/addresses_controller.rb +94 -0
- data/app/controllers/gaku/attachments_controller.rb +90 -0
- data/app/controllers/gaku/attendances_controller.rb +28 -0
- data/app/controllers/gaku/class_group_enrollments_controller.rb +15 -0
- data/app/controllers/gaku/class_groups/courses_controller.rb +50 -0
- data/app/controllers/gaku/class_groups/semester_class_groups_controller.rb +63 -0
- data/app/controllers/gaku/class_groups/students_controller.rb +37 -0
- data/app/controllers/gaku/class_groups_controller.rb +120 -0
- data/app/controllers/gaku/contacts_controller.rb +79 -0
- data/app/controllers/gaku/course_enrollments_controller.rb +10 -0
- data/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +54 -0
- data/app/controllers/gaku/course_groups_controller.rb +91 -0
- data/app/controllers/gaku/courses/enrollments_controller.rb +55 -0
- data/app/controllers/gaku/courses/exams_controller.rb +28 -0
- data/app/controllers/gaku/courses/semester_courses_controller.rb +64 -0
- data/app/controllers/gaku/courses_controller.rb +95 -0
- data/app/controllers/gaku/devise/passwords_controller.rb +4 -0
- data/app/controllers/gaku/devise/registrations_controller.rb +60 -0
- data/app/controllers/gaku/devise/sessions_controller.rb +13 -0
- data/app/controllers/gaku/exam_portion_scores_controller.rb +26 -0
- data/app/controllers/gaku/exams/exam_portions/attachments_controller.rb +46 -0
- data/app/controllers/gaku/exams/exam_portions_controller.rb +76 -0
- data/app/controllers/gaku/exams_controller.rb +153 -0
- data/app/controllers/gaku/extracurricular_activities/students_controller.rb +21 -0
- data/app/controllers/gaku/extracurricular_activities_controller.rb +68 -0
- data/app/controllers/gaku/extracurricular_activity_enrollments_controller.rb +16 -0
- data/app/controllers/gaku/gaku_controller.rb +23 -0
- data/app/controllers/gaku/home_controller.rb +11 -0
- data/app/controllers/gaku/notes_controller.rb +81 -0
- data/app/controllers/gaku/realtime_controller.rb +29 -0
- data/app/controllers/gaku/search_controller.rb +16 -0
- data/app/controllers/gaku/states_controller.rb +17 -0
- data/app/controllers/gaku/students/badges_controller.rb +65 -0
- data/app/controllers/gaku/students/class_group_enrollments_controller.rb +45 -0
- data/app/controllers/gaku/students/course_enrollments_controller.rb +51 -0
- data/app/controllers/gaku/students/external_school_records_controller.rb +70 -0
- data/app/controllers/gaku/students/guardians_controller.rb +70 -0
- data/app/controllers/gaku/students/simple_grades_controller.rb +69 -0
- data/app/controllers/gaku/students/student_specialties_controller.rb +68 -0
- data/app/controllers/gaku/students_controller.rb +198 -0
- data/app/controllers/gaku/syllabuses/assignments_controller.rb +20 -0
- data/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +38 -0
- data/app/controllers/gaku/syllabuses/exams_controller.rb +68 -0
- data/app/controllers/gaku/syllabuses_controller.rb +77 -0
- data/app/controllers/gaku/teachers_controller.rb +76 -0
- data/app/helpers/gaku/autocomplete_helper.rb +31 -0
- data/app/helpers/gaku/exam_helper.rb +13 -0
- data/app/helpers/gaku/frontend_helper.rb +42 -0
- data/app/helpers/gaku/person_helper.rb +79 -0
- data/app/helpers/gaku/shared_helper.rb +29 -0
- data/app/helpers/gaku/student_chooser_helper.rb +11 -0
- data/app/helpers/gaku/students_helper.rb +31 -0
- data/app/overrides/frontend_menu.rb +6 -0
- data/app/views/gaku/addresses/_address.html.slim +5 -0
- data/app/views/gaku/addresses/_addresses.html.slim +25 -0
- data/app/views/gaku/addresses/_delete_link.html.slim +1 -0
- data/app/views/gaku/addresses/_fields.html.slim +14 -0
- data/app/views/gaku/addresses/_form.html.slim +3 -0
- data/app/views/gaku/addresses/_form_fields.html.slim +26 -0
- data/app/views/gaku/addresses/_modal.html.slim +4 -0
- data/app/views/gaku/addresses/_primary_field.html.slim +12 -0
- data/app/views/gaku/addresses/create.js.erb +12 -0
- data/app/views/gaku/addresses/destroy.js.erb +8 -0
- data/app/views/gaku/addresses/edit.js.erb +4 -0
- data/app/views/gaku/addresses/make_primary.js.erb +7 -0
- data/app/views/gaku/addresses/new.js.erb +4 -0
- data/app/views/gaku/addresses/recovery.js.erb +1 -0
- data/app/views/gaku/addresses/soft_delete.js.erb +8 -0
- data/app/views/gaku/addresses/update.js.erb +5 -0
- data/app/views/gaku/attachments/destroy.js.erb +1 -0
- data/app/views/gaku/attachments/edit.js.erb +3 -0
- data/app/views/gaku/attachments/new.js.erb +1 -0
- data/app/views/gaku/attachments/recovery.js.erb +1 -0
- data/app/views/gaku/attachments/soft_delete.js.erb +3 -0
- data/app/views/gaku/class_groups/_class_group.html.slim +4 -0
- data/app/views/gaku/class_groups/_class_groups.html.slim +11 -0
- data/app/views/gaku/class_groups/_class_groups_with_semester.html.slim +12 -0
- data/app/views/gaku/class_groups/_fields.html.slim +3 -0
- data/app/views/gaku/class_groups/_form.html.slim +3 -0
- data/app/views/gaku/class_groups/_form_fields.html.slim +7 -0
- data/app/views/gaku/class_groups/_student_chooser_form.html.slim +4 -0
- data/app/views/gaku/class_groups/_tabs.html.slim +41 -0
- data/app/views/gaku/class_groups/advanced_search.js.erb +30 -0
- data/app/views/gaku/class_groups/courses/_course.html.slim +4 -0
- data/app/views/gaku/class_groups/courses/_courses.html.slim +14 -0
- data/app/views/gaku/class_groups/courses/_form.html.slim +5 -0
- data/app/views/gaku/class_groups/courses/create.js.erb +7 -0
- data/app/views/gaku/class_groups/courses/destroy.js.erb +2 -0
- data/app/views/gaku/class_groups/courses/new.js.erb +3 -0
- data/app/views/gaku/class_groups/create.js.erb +6 -0
- data/app/views/gaku/class_groups/destroy.js.erb +1 -0
- data/app/views/gaku/class_groups/edit.html.slim +16 -0
- data/app/views/gaku/class_groups/index.html.slim +25 -0
- data/app/views/gaku/class_groups/new.js.erb +3 -0
- data/app/views/gaku/class_groups/search/_form.html.slim +18 -0
- data/app/views/gaku/class_groups/search/_semester_form.html.slim +23 -0
- data/app/views/gaku/class_groups/semester_advanced_search.js.erb +30 -0
- data/app/views/gaku/class_groups/semester_class_groups/_fields.html.slim +4 -0
- data/app/views/gaku/class_groups/semester_class_groups/_form.html.slim +4 -0
- data/app/views/gaku/class_groups/semester_class_groups/_form_fields.html.slim +3 -0
- data/app/views/gaku/class_groups/semester_class_groups/_modal.html.slim +5 -0
- data/app/views/gaku/class_groups/semester_class_groups/_semester.html.slim +3 -0
- data/app/views/gaku/class_groups/semester_class_groups/_semester_modal.html.slim +4 -0
- data/app/views/gaku/class_groups/semester_class_groups/_semesters.html.slim +13 -0
- data/app/views/gaku/class_groups/semester_class_groups/create.js.erb +8 -0
- data/app/views/gaku/class_groups/semester_class_groups/destroy.js.erb +2 -0
- data/app/views/gaku/class_groups/semester_class_groups/edit.js.erb +3 -0
- data/app/views/gaku/class_groups/semester_class_groups/new.js.erb +3 -0
- data/app/views/gaku/class_groups/semester_class_groups/update.js.erb +3 -0
- data/app/views/gaku/class_groups/student_chooser.js.erb +9 -0
- data/app/views/gaku/class_groups/students/_student.html.slim +5 -0
- data/app/views/gaku/class_groups/students/_students.html.slim +14 -0
- data/app/views/gaku/class_groups/students/destroy.js.erb +2 -0
- data/app/views/gaku/class_groups/students/enroll_students.js.erb +16 -0
- data/app/views/gaku/class_groups/students/new.js.erb +3 -0
- data/app/views/gaku/class_groups/students/without_semester.js.erb +2 -0
- data/app/views/gaku/class_groups/with_semester.html.slim +26 -0
- data/app/views/gaku/class_groups/with_semester.js.erb +2 -0
- data/app/views/gaku/class_groups/without_semester.html.slim +26 -0
- data/app/views/gaku/class_groups/without_semester.js.erb +2 -0
- data/app/views/gaku/contacts/_contact.html.slim +5 -0
- data/app/views/gaku/contacts/_contacts.html.slim +22 -0
- data/app/views/gaku/contacts/_delete_link.html.slim +1 -0
- data/app/views/gaku/contacts/_fields.html.slim +14 -0
- data/app/views/gaku/contacts/_form.html.slim +4 -0
- data/app/views/gaku/contacts/_form_fields.html.slim +14 -0
- data/app/views/gaku/contacts/_modal.html.slim +4 -0
- data/app/views/gaku/contacts/_primary_field.html.slim +13 -0
- data/app/views/gaku/contacts/create.js.erb +21 -0
- data/app/views/gaku/contacts/destroy.js.erb +9 -0
- data/app/views/gaku/contacts/edit.js.erb +4 -0
- data/app/views/gaku/contacts/make_primary.js.erb +6 -0
- data/app/views/gaku/contacts/new.js.erb +3 -0
- data/app/views/gaku/contacts/recovery.js.erb +1 -0
- data/app/views/gaku/contacts/soft_delete.js.erb +8 -0
- data/app/views/gaku/contacts/update.js.erb +14 -0
- data/app/views/gaku/course_groups/_course_group.html.slim +4 -0
- data/app/views/gaku/course_groups/_course_groups.html.slim +7 -0
- data/app/views/gaku/course_groups/_fields.html.slim +1 -0
- data/app/views/gaku/course_groups/_form.html.slim +3 -0
- data/app/views/gaku/course_groups/_form_fields.html.slim +1 -0
- data/app/views/gaku/course_groups/course_group_enrollments/_course.html.slim +4 -0
- data/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +21 -0
- data/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +4 -0
- data/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +7 -0
- data/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +2 -0
- data/app/views/gaku/course_groups/course_group_enrollments/new.js.erb +3 -0
- data/app/views/gaku/course_groups/create.js.erb +6 -0
- data/app/views/gaku/course_groups/destroy.js.erb +1 -0
- data/app/views/gaku/course_groups/edit.html.slim +21 -0
- data/app/views/gaku/course_groups/index.html.slim +14 -0
- data/app/views/gaku/course_groups/new.js.erb +3 -0
- data/app/views/gaku/courses/_course.html.slim +7 -0
- data/app/views/gaku/courses/_courses.html.slim +24 -0
- data/app/views/gaku/courses/_form.html.slim +3 -0
- data/app/views/gaku/courses/_form_fields.html.slim +5 -0
- data/app/views/gaku/courses/_student_chooser_form.html.slim +4 -0
- data/app/views/gaku/courses/_tabs.html.slim +26 -0
- data/app/views/gaku/courses/create.js.erb +6 -0
- data/app/views/gaku/courses/destroy.js.erb +1 -0
- data/app/views/gaku/courses/edit.html.slim +16 -0
- data/app/views/gaku/courses/enrollments/_enrolled.html.slim +7 -0
- data/app/views/gaku/courses/enrollments/_enrollments.html.slim +27 -0
- data/app/views/gaku/courses/enrollments/_errors_modal.html.slim +11 -0
- data/app/views/gaku/courses/enrollments/class_groups/_form.html.slim +3 -0
- data/app/views/gaku/courses/enrollments/class_groups/enroll.js.erb +16 -0
- data/app/views/gaku/courses/enrollments/class_groups/new.js.erb +4 -0
- data/app/views/gaku/courses/enrollments/error.js.erb +2 -0
- data/app/views/gaku/courses/enrollments/students/enroll_students.js.erb +11 -0
- data/app/views/gaku/courses/exams/_exam.html.slim +5 -0
- data/app/views/gaku/courses/exams/_exam_portion_head.html.slim +5 -0
- data/app/views/gaku/courses/exams/_exams.html.slim +14 -0
- data/app/views/gaku/courses/exams/_grading_table_head.html.slim +9 -0
- data/app/views/gaku/courses/exams/_grading_table_student_field.html.slim +11 -0
- data/app/views/gaku/courses/exams/grading.html.slim +7 -0
- data/app/views/gaku/courses/index.html.slim +14 -0
- data/app/views/gaku/courses/new.js.erb +3 -0
- data/app/views/gaku/courses/semester_courses/_fields.html.slim +4 -0
- data/app/views/gaku/courses/semester_courses/_form.html.slim +4 -0
- data/app/views/gaku/courses/semester_courses/_form_fields.html.slim +3 -0
- data/app/views/gaku/courses/semester_courses/_modal.html.slim +4 -0
- data/app/views/gaku/courses/semester_courses/_semester_course.html.slim +3 -0
- data/app/views/gaku/courses/semester_courses/_semester_courses.html.slim +16 -0
- data/app/views/gaku/courses/semester_courses/create.js.erb +6 -0
- data/app/views/gaku/courses/semester_courses/destroy.js.erb +3 -0
- data/app/views/gaku/courses/semester_courses/edit.js.erb +3 -0
- data/app/views/gaku/courses/semester_courses/new.js.erb +3 -0
- data/app/views/gaku/courses/semester_courses/update.js.erb +3 -0
- data/app/views/gaku/courses/student_chooser.js.erb +7 -0
- data/app/views/gaku/devise/confirmations/new.html.slim +9 -0
- data/app/views/gaku/devise/mailer/confirmation_instructions.html.slim +4 -0
- data/app/views/gaku/devise/mailer/reset_password_instructions.html.slim +6 -0
- data/app/views/gaku/devise/mailer/unlock_instructions.html.slim +5 -0
- data/app/views/gaku/devise/passwords/edit.html.slim +14 -0
- data/app/views/gaku/devise/passwords/new.html.slim +8 -0
- data/app/views/gaku/devise/registrations/edit.html.slim +31 -0
- data/app/views/gaku/devise/registrations/new.html.slim +27 -0
- data/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +26 -0
- data/app/views/gaku/devise/sessions/new.html.slim +24 -0
- data/app/views/gaku/devise/shared/_links.html.erb +25 -0
- data/app/views/gaku/devise/unlocks/new.html.slim +9 -0
- data/app/views/gaku/exam_divisions/_form.html.erb +29 -0
- data/app/views/gaku/exam_divisions/edit.html.erb +6 -0
- data/app/views/gaku/exam_divisions/index.html.erb +27 -0
- data/app/views/gaku/exam_divisions/new.html.erb +5 -0
- data/app/views/gaku/exam_divisions/show.html.erb +20 -0
- data/app/views/gaku/exams/_exam.html.slim +2 -0
- data/app/views/gaku/exams/_form.html.slim +16 -0
- data/app/views/gaku/exams/_form_fields.html.slim +17 -0
- data/app/views/gaku/exams/_table_fields.html.slim +8 -0
- data/app/views/gaku/exams/_tabs.html.slim +15 -0
- data/app/views/gaku/exams/_weight_check_widget.html.slim +20 -0
- data/app/views/gaku/exams/create.js.erb +6 -0
- data/app/views/gaku/exams/destroy.js.erb +1 -0
- data/app/views/gaku/exams/edit.html.slim +16 -0
- data/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +4 -0
- data/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +2 -0
- data/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +3 -0
- data/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +27 -0
- data/app/views/gaku/exams/exam_portions/_form.html.slim +3 -0
- data/app/views/gaku/exams/exam_portions/_table_fields.slim +8 -0
- data/app/views/gaku/exams/exam_portions/_tabs.html.slim +11 -0
- data/app/views/gaku/exams/exam_portions/attachments/_attachment.html.slim +2 -0
- data/app/views/gaku/exams/exam_portions/attachments/_attachments.html.slim +20 -0
- data/app/views/gaku/exams/exam_portions/attachments/_form.html.slim +3 -0
- data/app/views/gaku/exams/exam_portions/attachments/_form_fields.html.slim +3 -0
- data/app/views/gaku/exams/exam_portions/attachments/_modal.html.slim +4 -0
- data/app/views/gaku/exams/exam_portions/attachments/create.js.erb +0 -0
- data/app/views/gaku/exams/exam_portions/attachments/new.js.erb +3 -0
- data/app/views/gaku/exams/exam_portions/create.js.erb +49 -0
- data/app/views/gaku/exams/exam_portions/destroy.js.erb +8 -0
- data/app/views/gaku/exams/exam_portions/edit.html.slim +16 -0
- data/app/views/gaku/exams/exam_portions/new.js.erb +3 -0
- data/app/views/gaku/exams/exam_portions/show.html.slim +30 -0
- data/app/views/gaku/exams/export.xls.rb +67 -0
- data/app/views/gaku/exams/index.html.slim +24 -0
- data/app/views/gaku/exams/new.js.erb +3 -0
- data/app/views/gaku/exams/show.html.slim +28 -0
- data/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +7 -0
- data/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +4 -0
- data/app/views/gaku/extracurricular_activities/_fields.html.slim +1 -0
- data/app/views/gaku/extracurricular_activities/_form.html.slim +3 -0
- data/app/views/gaku/extracurricular_activities/_form_fields.html.slim +3 -0
- data/app/views/gaku/extracurricular_activities/_student_chooser_form.html.slim +4 -0
- data/app/views/gaku/extracurricular_activities/_tabs.html.slim +15 -0
- data/app/views/gaku/extracurricular_activities/create.js.erb +6 -0
- data/app/views/gaku/extracurricular_activities/destroy.js.erb +2 -0
- data/app/views/gaku/extracurricular_activities/edit.html.slim +16 -0
- data/app/views/gaku/extracurricular_activities/index.html.slim +15 -0
- data/app/views/gaku/extracurricular_activities/new.js.erb +3 -0
- data/app/views/gaku/extracurricular_activities/student_chooser.js.erb +9 -0
- data/app/views/gaku/extracurricular_activities/students/_student.html.slim +5 -0
- data/app/views/gaku/extracurricular_activities/students/_students.html.slim +16 -0
- data/app/views/gaku/extracurricular_activities/students/destroy.js.erb +3 -0
- data/app/views/gaku/extracurricular_activities/students/enroll_students.js.erb +11 -0
- data/app/views/gaku/home/_user_info.html.slim +7 -0
- data/app/views/gaku/home/_user_menu.html.slim +4 -0
- data/app/views/gaku/home/index.html.slim +10 -0
- data/app/views/gaku/layouts/edit.html.slim +10 -0
- data/app/views/gaku/layouts/gaku.html.slim +22 -0
- data/app/views/gaku/layouts/home.html.slim +1 -0
- data/app/views/gaku/layouts/index.html.slim +12 -0
- data/app/views/gaku/layouts/show.html.slim +10 -0
- data/app/views/gaku/notes/_buttons.html.slim +8 -0
- data/app/views/gaku/notes/_fields.html.slim +2 -0
- data/app/views/gaku/notes/_form.html.slim +6 -0
- data/app/views/gaku/notes/_form_fields.html.slim +6 -0
- data/app/views/gaku/notes/_modal.html.slim +4 -0
- data/app/views/gaku/notes/_note.html.slim +4 -0
- data/app/views/gaku/notes/_notes.html.slim +21 -0
- data/app/views/gaku/notes/_show_modal.html.slim +4 -0
- data/app/views/gaku/notes/create.js.erb +11 -0
- data/app/views/gaku/notes/destroy.js.erb +4 -0
- data/app/views/gaku/notes/edit.js.erb +3 -0
- data/app/views/gaku/notes/new.js.erb +3 -0
- data/app/views/gaku/notes/show.js.erb +2 -0
- data/app/views/gaku/notes/update.js.erb +4 -0
- data/app/views/gaku/shared/_delete_link.html.slim +1 -0
- data/app/views/gaku/shared/_delete_modal.html.slim +11 -0
- data/app/views/gaku/shared/_errors.html.slim +6 -0
- data/app/views/gaku/shared/_external_school_record.html.slim +36 -0
- data/app/views/gaku/shared/_flash.html.slim +4 -0
- data/app/views/gaku/shared/_language_bar.html.slim +8 -0
- data/app/views/gaku/shared/_login_widget.html.slim +15 -0
- data/app/views/gaku/shared/_manage_buttons.html.slim +4 -0
- data/app/views/gaku/shared/_menubar.html.slim +7 -0
- data/app/views/gaku/shared/_modal_config.html.slim +37 -0
- data/app/views/gaku/shared/_multi_errors.html.slim +6 -0
- data/app/views/gaku/shared/_picture.html.slim +8 -0
- data/app/views/gaku/shared/_upload_picture.html.slim +7 -0
- data/app/views/gaku/shared/error.js.erb +2 -0
- data/app/views/gaku/shared/fields/_address_and_contact_show_table.html.slim +6 -0
- data/app/views/gaku/shared/fields/_attachment_fields.html.slim +10 -0
- data/app/views/gaku/shared/fields/_course_fields.html.slim +4 -0
- data/app/views/gaku/shared/fields/_course_show_fields.html.slim +3 -0
- data/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +7 -0
- data/app/views/gaku/shared/fields/_person_edit_table.html.slim +7 -0
- data/app/views/gaku/shared/fields/_person_show_table.html.slim +15 -0
- data/app/views/gaku/shared/fields/_semester_fields.html.slim +1 -0
- data/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +14 -0
- data/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +17 -0
- data/app/views/gaku/shared/menu/_frontend.html.erb +22 -0
- data/app/views/gaku/shared/multi_error.js.erb +2 -0
- data/app/views/gaku/shared/notice.js.erb +2 -0
- 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/_show.html.slim +12 -0
- data/app/views/gaku/shared/student_chooser/_chooser.html.slim +7 -0
- data/app/views/gaku/shared/student_chooser/_chooser_widget.html.slim +10 -0
- data/app/views/gaku/shared/student_chooser/_modal.html.slim +3 -0
- data/app/views/gaku/states/_no_states_select.html.slim +1 -0
- data/app/views/gaku/states/_states_select.html.slim +1 -0
- data/app/views/gaku/states/index.js.erb +5 -0
- data/app/views/gaku/students/_academic.html.slim +18 -0
- data/app/views/gaku/students/_chooser_widget.html.slim +14 -0
- data/app/views/gaku/students/_form.html.slim +3 -0
- data/app/views/gaku/students/_form_fields.html.slim +25 -0
- data/app/views/gaku/students/_personal.html.slim +3 -0
- data/app/views/gaku/students/_student.html.slim +5 -0
- data/app/views/gaku/students/_student_chooser_form.html.slim +16 -0
- data/app/views/gaku/students/_student_unit.html.slim +5 -0
- data/app/views/gaku/students/_students.html.slim +62 -0
- data/app/views/gaku/students/_table_fields.html.slim +63 -0
- data/app/views/gaku/students/_tabs.html.slim +48 -0
- data/app/views/gaku/students/_tabs_academic.html.slim +40 -0
- data/app/views/gaku/students/_tabs_personal.html.slim +27 -0
- data/app/views/gaku/students/advanced_search.js.erb +66 -0
- data/app/views/gaku/students/badges/_badge.html.slim +2 -0
- data/app/views/gaku/students/badges/_badge_type.html.slim +5 -0
- data/app/views/gaku/students/badges/_badges.html.slim +2 -0
- data/app/views/gaku/students/badges/_badges_tab.html.slim +8 -0
- data/app/views/gaku/students/badges/_edit.html.slim +8 -0
- data/app/views/gaku/students/badges/_fields.html.slim +8 -0
- data/app/views/gaku/students/badges/_form.html.slim +3 -0
- data/app/views/gaku/students/badges/_form_fields.html.slim +1 -0
- data/app/views/gaku/students/badges/_index.html.slim +20 -0
- data/app/views/gaku/students/badges/_index_modal.html.slim +4 -0
- data/app/views/gaku/students/badges/create.js.erb +14 -0
- data/app/views/gaku/students/badges/destroy.js.erb +6 -0
- data/app/views/gaku/students/badges/edit.js.erb +2 -0
- data/app/views/gaku/students/badges/index.js.erb +3 -0
- data/app/views/gaku/students/badges/new.js.erb +3 -0
- data/app/views/gaku/students/badges/update.js.erb +5 -0
- data/app/views/gaku/students/chosen.js.erb +12 -0
- data/app/views/gaku/students/class_group_enrollments/_new_modal.html.slim +28 -0
- data/app/views/gaku/students/class_group_enrollments/create.js.erb +11 -0
- data/app/views/gaku/students/class_group_enrollments/new.js.erb +2 -0
- data/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +4 -0
- data/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +17 -0
- data/app/views/gaku/students/course_enrollments/_errors_modal.html.slim +11 -0
- data/app/views/gaku/students/course_enrollments/_form.html.slim +4 -0
- data/app/views/gaku/students/course_enrollments/create.js.erb +9 -0
- data/app/views/gaku/students/course_enrollments/destroy.js.erb +3 -0
- data/app/views/gaku/students/course_enrollments/error.js.erb +2 -0
- data/app/views/gaku/students/course_enrollments/new.js.erb +3 -0
- data/app/views/gaku/students/create.js.erb +8 -0
- data/app/views/gaku/students/destroy.js.erb +2 -0
- data/app/views/gaku/students/edit.html.slim +37 -0
- data/app/views/gaku/students/external_school_records/_external_school_record.html.slim +2 -0
- data/app/views/gaku/students/external_school_records/_external_school_records.html.slim +24 -0
- data/app/views/gaku/students/external_school_records/_fields.html.slim +11 -0
- data/app/views/gaku/students/external_school_records/_form.html.slim +3 -0
- data/app/views/gaku/students/external_school_records/_form_fields.html.slim +17 -0
- data/app/views/gaku/students/external_school_records/_modal.html.slim +4 -0
- data/app/views/gaku/students/external_school_records/create.js.erb +8 -0
- data/app/views/gaku/students/external_school_records/destroy.js.erb +3 -0
- data/app/views/gaku/students/external_school_records/edit.js.erb +4 -0
- data/app/views/gaku/students/external_school_records/new.js.erb +4 -0
- data/app/views/gaku/students/external_school_records/update.js.erb +3 -0
- data/app/views/gaku/students/guardians/_delete_modal.html.slim +12 -0
- data/app/views/gaku/students/guardians/_form.html.slim +3 -0
- data/app/views/gaku/students/guardians/_form_fields.html.slim +4 -0
- data/app/views/gaku/students/guardians/_guardian.html.slim +12 -0
- data/app/views/gaku/students/guardians/_guardians.html.slim +24 -0
- data/app/views/gaku/students/guardians/_picture.html.slim +8 -0
- data/app/views/gaku/students/guardians/_tabs.html.slim +14 -0
- data/app/views/gaku/students/guardians/_upload_picture.html.slim +7 -0
- data/app/views/gaku/students/guardians/create.js.erb +7 -0
- data/app/views/gaku/students/guardians/destroy.js.erb +1 -0
- data/app/views/gaku/students/guardians/edit.html.slim +21 -0
- data/app/views/gaku/students/guardians/new.js.erb +3 -0
- data/app/views/gaku/students/guardians/recovery.js.erb +1 -0
- data/app/views/gaku/students/guardians/show.html.slim +17 -0
- data/app/views/gaku/students/importer/index.html.slim +26 -0
- data/app/views/gaku/students/index.html.slim +22 -0
- data/app/views/gaku/students/index.js.erb +2 -0
- data/app/views/gaku/students/new.html.slim +3 -0
- data/app/views/gaku/students/new.js.erb +3 -0
- data/app/views/gaku/students/search/_academic.html.slim +22 -0
- data/app/views/gaku/students/search/_address.html.slim +34 -0
- data/app/views/gaku/students/search/_advanced_form.html.slim +36 -0
- data/app/views/gaku/students/search/_extended.slim +108 -0
- data/app/views/gaku/students/search/_form.html.slim +8 -0
- data/app/views/gaku/students/search/_student.html.slim +36 -0
- data/app/views/gaku/students/show.html.slim +24 -0
- data/app/views/gaku/students/simple_grades/_edit.html.slim +8 -0
- data/app/views/gaku/students/simple_grades/_fields.html.slim +8 -0
- data/app/views/gaku/students/simple_grades/_form.html.slim +3 -0
- data/app/views/gaku/students/simple_grades/_form_fields.html.slim +3 -0
- data/app/views/gaku/students/simple_grades/_index.html.slim +21 -0
- data/app/views/gaku/students/simple_grades/_index_modal.html.slim +4 -0
- data/app/views/gaku/students/simple_grades/_simple_grade.html.slim +2 -0
- data/app/views/gaku/students/simple_grades/_simple_grades.html.slim +2 -0
- data/app/views/gaku/students/simple_grades/create.js.erb +10 -0
- data/app/views/gaku/students/simple_grades/destroy.js.erb +4 -0
- data/app/views/gaku/students/simple_grades/edit.js.erb +4 -0
- data/app/views/gaku/students/simple_grades/index.js.erb +5 -0
- data/app/views/gaku/students/simple_grades/new.js.erb +6 -0
- data/app/views/gaku/students/simple_grades/update.js.erb +4 -0
- data/app/views/gaku/students/student_specialties/_edit.html.slim +8 -0
- data/app/views/gaku/students/student_specialties/_fields.html.slim +5 -0
- data/app/views/gaku/students/student_specialties/_form.html.slim +3 -0
- data/app/views/gaku/students/student_specialties/_form_fields.html.slim +2 -0
- data/app/views/gaku/students/student_specialties/_index.html.slim +18 -0
- data/app/views/gaku/students/student_specialties/_index_modal.html.slim +4 -0
- data/app/views/gaku/students/student_specialties/_student_specialties.html.slim +2 -0
- data/app/views/gaku/students/student_specialties/_student_specialty.html.slim +2 -0
- data/app/views/gaku/students/student_specialties/create.js.erb +10 -0
- data/app/views/gaku/students/student_specialties/destroy.js.erb +4 -0
- data/app/views/gaku/students/student_specialties/edit.js.erb +2 -0
- data/app/views/gaku/students/student_specialties/index.js.erb +5 -0
- data/app/views/gaku/students/student_specialties/new.js.erb +3 -0
- data/app/views/gaku/students/student_specialties/update.js.erb +4 -0
- data/app/views/gaku/syllabuses/_all_exams.html.slim +14 -0
- data/app/views/gaku/syllabuses/_fields.html.slim +7 -0
- data/app/views/gaku/syllabuses/_form.html.slim +3 -0
- data/app/views/gaku/syllabuses/_form_fields.html.slim +12 -0
- data/app/views/gaku/syllabuses/_syllabus.html.slim +2 -0
- data/app/views/gaku/syllabuses/_syllabuses.html.slim +12 -0
- data/app/views/gaku/syllabuses/_tabs.html.slim +16 -0
- data/app/views/gaku/syllabuses/create.js.erb +7 -0
- data/app/views/gaku/syllabuses/destroy.js.erb +1 -0
- data/app/views/gaku/syllabuses/edit.html.slim +16 -0
- data/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +12 -0
- data/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +5 -0
- data/app/views/gaku/syllabuses/exams/_exam.html.slim +3 -0
- data/app/views/gaku/syllabuses/exams/_exams.html.slim +13 -0
- data/app/views/gaku/syllabuses/exams/_fields.html.slim +10 -0
- data/app/views/gaku/syllabuses/exams/_form.html.slim +17 -0
- data/app/views/gaku/syllabuses/exams/_form_fields.html.slim +10 -0
- data/app/views/gaku/syllabuses/exams/_modal.html.slim +4 -0
- data/app/views/gaku/syllabuses/exams/_select_form.html.slim +6 -0
- data/app/views/gaku/syllabuses/exams/create.js.erb +9 -0
- data/app/views/gaku/syllabuses/exams/destroy.js.erb +3 -0
- data/app/views/gaku/syllabuses/exams/edit.js.erb +3 -0
- data/app/views/gaku/syllabuses/exams/new.js.erb +3 -0
- data/app/views/gaku/syllabuses/exams/update.js.erb +4 -0
- data/app/views/gaku/syllabuses/importer/index.html.slim +14 -0
- data/app/views/gaku/syllabuses/index.html.slim +14 -0
- data/app/views/gaku/syllabuses/new.js.erb +3 -0
- data/app/views/gaku/teachers/_fields.html.slim +5 -0
- data/app/views/gaku/teachers/_form.html.slim +3 -0
- data/app/views/gaku/teachers/_form_fields.html.slim +1 -0
- data/app/views/gaku/teachers/_tabs.html.slim +20 -0
- data/app/views/gaku/teachers/_teacher.html.slim +5 -0
- data/app/views/gaku/teachers/_teachers.html.slim +11 -0
- data/app/views/gaku/teachers/create.js.erb +8 -0
- data/app/views/gaku/teachers/destroy.js.erb +1 -0
- data/app/views/gaku/teachers/edit.html.slim +19 -0
- data/app/views/gaku/teachers/index.html.slim +16 -0
- data/app/views/gaku/teachers/new.js.erb +3 -0
- data/app/views/gaku/teachers/show.html.slim +13 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +27 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/config/initializers/client_side_validations.rb +9 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/routes.rb +137 -0
- data/lib/gaku/app_responder.rb +6 -0
- data/lib/gaku/class_name_detector.rb +23 -0
- data/lib/gaku/frontend.rb +33 -0
- data/lib/gaku/frontend/engine.rb +30 -0
- data/lib/gaku_frontend.rb +1 -0
- data/lib/tasks/admin_user.rake +104 -0
- data/lib/tasks/core.rake +65 -0
- data/lib/tasks/reset.rake +37 -0
- metadata +848 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
nav.navbar.navbar-inverse.navbar-fixed-top role="navigation"
|
2
|
+
.navbar-header
|
3
|
+
a.navbar-brand href=root_path = image_tag('gaku-logo.png')
|
4
|
+
- if user_signed_in?
|
5
|
+
= render partial: "gaku/shared/menu/global"
|
6
|
+
= render partial: "gaku/shared/login_widget"
|
7
|
+
/= render partial: "shared/language_bar"
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#modal-options.modal.fade
|
2
|
+
.modal-dialog
|
3
|
+
.modal-content
|
4
|
+
.modal-header
|
5
|
+
button.close type="button" data-dismiss="modal"
|
6
|
+
'x
|
7
|
+
h3= t "config.label"
|
8
|
+
.modal-body
|
9
|
+
form role="form"
|
10
|
+
.form-group
|
11
|
+
select#select_lang.form-control
|
12
|
+
option value="ja"
|
13
|
+
| 日本語
|
14
|
+
option value="en"
|
15
|
+
| English
|
16
|
+
p.help-block= t 'config.help.language'
|
17
|
+
|
18
|
+
.d-none
|
19
|
+
#current_lang
|
20
|
+
= I18n.locale
|
21
|
+
#link_langs
|
22
|
+
= link_to "ja", locale: "ja"
|
23
|
+
= link_to "en", locale: "en"
|
24
|
+
|
25
|
+
.modal-footer
|
26
|
+
a.btn.btn-default data-dismiss="modal" href="#" =t("config.close")
|
27
|
+
a.btn.btn-primary id="btn_config_save" href="#" =t("config.save")
|
28
|
+
|
29
|
+
coffee:
|
30
|
+
$("#select_lang").val($("#current_lang").text())
|
31
|
+
$("#btn_config_save").click (e) ->
|
32
|
+
links = $("#link_langs").children()
|
33
|
+
switch $("#select_lang")[0].value
|
34
|
+
when "ja"
|
35
|
+
location.href = links[0].href
|
36
|
+
when "en"
|
37
|
+
location.href = links[1].href
|
@@ -0,0 +1,8 @@
|
|
1
|
+
= image_tag resource.picture.url(:thumb), id: "avatar-picture", class: "img-thumbnail"
|
2
|
+
|
3
|
+
- if can_edit?
|
4
|
+
.row.mt-m
|
5
|
+
.col-md-12
|
6
|
+
= link_to_upload_image 'JavaScript:void(0);', method: :get, id: "upload-picture-link"
|
7
|
+
#upload-picture.d-none
|
8
|
+
= render 'gaku/shared/upload_picture', resource: resource
|
@@ -0,0 +1,10 @@
|
|
1
|
+
td = attachment
|
2
|
+
td = attachment.description
|
3
|
+
td = attachment.asset_file_name
|
4
|
+
td = attachment.asset_content_type
|
5
|
+
td = number_to_human_size attachment.asset_file_size
|
6
|
+
- if can_edit?
|
7
|
+
td
|
8
|
+
= link_to_download [:download, attachment], id: 'exam-portion-attachment-download'
|
9
|
+
= ajax_link_to_edit [:edit, attachment], id: 'exam-portion-attachment-edit'
|
10
|
+
= render 'gaku/shared/delete_link', target: attachment
|
@@ -0,0 +1,15 @@
|
|
1
|
+
tr
|
2
|
+
th.active rowspan="2" width="15%"
|
3
|
+
= t(:'full_name')
|
4
|
+
th rowspan=2
|
5
|
+
h2
|
6
|
+
= name_and_ruby_for(person)
|
7
|
+
th.active width="10%"
|
8
|
+
= t(:'gender.label')
|
9
|
+
td width="15%"
|
10
|
+
= gender(person)
|
11
|
+
th.active rowspan="6" width="222px"
|
12
|
+
= render 'gaku/shared/picture', resource: person
|
13
|
+
tr
|
14
|
+
th.active = (:'birth')
|
15
|
+
td = person.birth_date
|
@@ -0,0 +1 @@
|
|
1
|
+
td.period = "#{semester.starting} / #{semester.ending}"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= ep_form.text_field :name, value: ep_form.object.name || t(:'exam.singular'), label: t(:'exam_portion.name')
|
4
|
+
.col-md-2
|
5
|
+
= ep_form.number_field :weight, label: t(:'exam_portion.weight')
|
6
|
+
.col-md-2
|
7
|
+
= ep_form.number_field :problem_count, label: t(:'exam_portion.problem_count')
|
8
|
+
.col-md-2
|
9
|
+
= ep_form.number_field :max_score, label: t(:'exam_portion.max_score'), value: ep_form.object.max_score || 100
|
10
|
+
.row
|
11
|
+
.col-md-6
|
12
|
+
= ep_form.text_area :description, size: "0x2", label: t(:'exam_portion.description')
|
13
|
+
.col-md-6
|
14
|
+
= ep_form.text_area :adjustments, size: "0x2", label: t(:'exam_portion.adjustments')
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= f.text_field :surname_reading, label: surname_reading_label
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :name_reading, label: name_reading_label
|
6
|
+
|
7
|
+
.row
|
8
|
+
.col-md-6
|
9
|
+
= f.text_field :surname, label: surname_label
|
10
|
+
.col-md-6
|
11
|
+
= f.text_field :name, label: name_label
|
12
|
+
|
13
|
+
.row
|
14
|
+
.col-md-6
|
15
|
+
= f.text_field :birth_date, class: "datepicker", label: t(:birth_date)
|
16
|
+
.col-md-6
|
17
|
+
= f.select :gender, genders, {prompt: t(:'gender.choose'), selected: person.gender}, label: t(:gender)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<li><%= link_to t(:'menu.student.plural'), students_path %></li>
|
2
|
+
|
3
|
+
<li><%= link_to t(:'menu.teacher.plural'), teachers_path %></li>
|
4
|
+
|
5
|
+
<li><%= link_to t(:'menu.class_group.plural'), class_groups_path %></li>
|
6
|
+
|
7
|
+
<li class="dropdown" data-hook="courses_menu">
|
8
|
+
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
9
|
+
<%= t(:'menu.course.plural') %>
|
10
|
+
<b class="caret"></b>
|
11
|
+
</a>
|
12
|
+
<ul class="dropdown-menu">
|
13
|
+
<li data-hook="syllabuses"><%= link_to t(:'menu.syllabus.plural'), syllabuses_path %></li>
|
14
|
+
<li data-hook="courses"><%= link_to t(:'menu.course.plural'), courses_path %></li>
|
15
|
+
<li data-hook="course_groups"><%= link_to t(:'menu.course_group.plural'), course_groups_path %></li>
|
16
|
+
</ul>
|
17
|
+
</li>
|
18
|
+
|
19
|
+
<li data-hook="exams"><%= link_to t(:'menu.exam.plural'), exams_path %></li>
|
20
|
+
<li data-hook="extracurricular_activity"><%= link_to t(:'menu.extracurricular_activity.plural'), extracurricular_activities_path %></li>
|
21
|
+
|
22
|
+
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
= well_div do
|
2
|
+
.col-md-9.student-index
|
3
|
+
= render 'gaku/shared/student/show_table', student: student
|
4
|
+
|
5
|
+
.col-md-3.well
|
6
|
+
= render 'gaku/shared/picture', resource: student
|
7
|
+
|
8
|
+
= render partial: 'gaku/shared/student/tabs'
|
9
|
+
|
10
|
+
= well_div do
|
11
|
+
.col-md-6
|
12
|
+
= link_to_back students_path, class: 'col-md-12 btn'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.row.d-none#students-checked-div.center-block
|
2
|
+
.col-md-12
|
3
|
+
.panel.panel-success
|
4
|
+
.panel-heading
|
5
|
+
= t(:'student.chosen_students')
|
6
|
+
span.chosen-count
|
7
|
+
.panel-body
|
8
|
+
table#chosen-table.table.d-none
|
9
|
+
tbody#students-checked
|
10
|
+
#chosen-actions.d-none.panel-footer
|
@@ -0,0 +1 @@
|
|
1
|
+
= collection_select(:address, :state_id, states, :id, :name, {prompt: t(:'address.state.choose') }, disabled: true, class: 'span12')
|
@@ -0,0 +1 @@
|
|
1
|
+
= collection_select(:address, :state_id, states, :id, :name, {prompt: t(:'address.state.choose') }, class: 'span12')
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-12
|
3
|
+
table.table.table-bordered
|
4
|
+
tr
|
5
|
+
th = t(:'specialty.plural')
|
6
|
+
td
|
7
|
+
#student-specialty
|
8
|
+
= render 'gaku/students/student_specialties/student_specialties', student: student
|
9
|
+
tr
|
10
|
+
th = t(:'simple_grade.plural')
|
11
|
+
td
|
12
|
+
#student-simple-grade
|
13
|
+
= render 'gaku/students/simple_grades/simple_grades', student: student
|
14
|
+
tr
|
15
|
+
th = t(:'badge.plural')
|
16
|
+
td
|
17
|
+
#student-badge
|
18
|
+
= render 'gaku/students/badges/badges', student: student
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.row.d-none#students-checked-div.center-block
|
2
|
+
.col-md-12
|
3
|
+
.panel.panel-success
|
4
|
+
.panel-heading
|
5
|
+
= t(:'student.chosen_students')
|
6
|
+
span.chosen-count
|
7
|
+
.table-action.show-chosen-table.pull-right = button t(:show), chosen_students_path, remote: true, class: 'btn-xs'
|
8
|
+
.table-action.hide-chosen-table.pull-right.d-none = button t(:hide),nil, class: 'btn-xs'
|
9
|
+
.panel-body
|
10
|
+
|
11
|
+
table#chosen-table.table.d-none
|
12
|
+
tbody#students-checked
|
13
|
+
#chosen-actions.d-none.panel-footer
|
14
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= f.collection_select(:enrollment_status_code, @enrollment_statuses, :code, :name, { default: @enrolled_status }, label: t(:'enrollment_status.singular'))
|
4
|
+
|
5
|
+
.col-md-6
|
6
|
+
= f.fields_for :class_group_enrollments do |cge_form|
|
7
|
+
- if @student.new_record?
|
8
|
+
= cge_form.collection_select(:class_group_id, @class_groups, :id, :name, { prompt: t(:'class_group.none_assigned'), selected: @last_student.try(:class_groups).try(:last) }, label: t(:'class'))
|
9
|
+
- else
|
10
|
+
= cge_form.collection_select(:class_group_id, @class_groups, :id, :name, { prompt: t(:'class_group.none_assigned'), default: @last_student.try(:class_groups).try(:last) }, label: t(:'class'))
|
11
|
+
= render 'gaku/shared/form_fields/person_form_fields', f: f, person: @student
|
12
|
+
|
13
|
+
.row
|
14
|
+
.col-md-3
|
15
|
+
= f.collection_select(:scholarship_status_id, @scholarship_statuses, :id, :name, { include_blank: true }, label: t(:'student.scholarship_status'))
|
16
|
+
|
17
|
+
.col-md-3
|
18
|
+
= f.collection_select(:commute_method_type_id, @commute_method_types, :id, :name, { include_blank: true }, label: t(:'commute_method_type.singular'))
|
19
|
+
.col-md-3
|
20
|
+
= f.text_field :admitted, class: "datepicker", label: t(:admitted)
|
21
|
+
|
22
|
+
.col-md-3
|
23
|
+
= f.text_field :graduated, class: "datepicker", label: t(:graduated)
|
24
|
+
|
25
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= form_tag(enroll_students_class_group_enrollments_path, method: "post", id: "enroll-to-class-form", remote: true) do
|
4
|
+
.col-md-10
|
5
|
+
= select_tag "class_group_id", options_from_collection_for_select(@class_groups, :id, :name), {class: "class_group-select form-control col-md-4"}
|
6
|
+
= hidden_field_tag "source", "class_groups"
|
7
|
+
.col-md-2
|
8
|
+
= submit_tag t(:enroll_to_class), class: 'btn btn-primary'
|
9
|
+
.row
|
10
|
+
.col-md-6 style="margin-top:10px;"
|
11
|
+
= form_tag(enroll_students_course_enrollments_path, method: "post", id: "enroll-to-course-form", remote: true) do
|
12
|
+
.col-md-10
|
13
|
+
= select_tag "course_id", options_from_collection_for_select(@courses, :id, :code), {class: "class_group-select form-control col-md-12"}
|
14
|
+
= hidden_field_tag "source", "courses"
|
15
|
+
.col-md-2
|
16
|
+
= submit_tag t('course_enrollment.add'), class: 'btn btn-primary'
|
@@ -0,0 +1,62 @@
|
|
1
|
+
= sortable_table_for 'students-index' do
|
2
|
+
thead
|
3
|
+
tr
|
4
|
+
= th_icon 'check'
|
5
|
+
- if show_field?(@preset.try(:show_code))
|
6
|
+
th.code.btn-inverse.col-sm-1 = t(:'code')
|
7
|
+
|
8
|
+
- if show_field?(@preset.try(:show_foreign_id_code))
|
9
|
+
th.foreign_id_code.btn-inverse.col-sm-1 = t(:'student.foreign_id_code')
|
10
|
+
|
11
|
+
- if show_field?(@preset.try(:show_enrollment_status))
|
12
|
+
th.enrollment_status.btn-inverse.col-sm-1 = t(:'enrollment_status.singular')
|
13
|
+
|
14
|
+
- if show_field?(@preset.try(:show_user))
|
15
|
+
th.user.btn-inverse = t(:'user.singular')
|
16
|
+
|
17
|
+
- if show_field?(@preset.try(:show_surname))
|
18
|
+
th.surname.btn-inverse = t(:'surname')
|
19
|
+
|
20
|
+
- if show_field?(@preset.try(:show_middle_name))
|
21
|
+
th.middle_name.btn-inverse = t(:'middle_name')
|
22
|
+
|
23
|
+
- if show_field?(@preset.try(:show_name))
|
24
|
+
th.name.btn-inverse = t(:'name')
|
25
|
+
|
26
|
+
- if show_field?(@preset.try(:show_birth_date))
|
27
|
+
th.birth_date.btn-inverse.col-sm-1 = t(:'birth_date')
|
28
|
+
|
29
|
+
- if show_field?(@preset.try(:show_gender))
|
30
|
+
th.gender.btn-inverse.col-sm-1 = t(:'gender.label')
|
31
|
+
|
32
|
+
- if show_field?(@preset.try(:show_class_name))
|
33
|
+
th.btn-inverse = t(:'class_group.name')
|
34
|
+
|
35
|
+
- if show_field?(@preset.try(:show_specialty))
|
36
|
+
th.major_specialty.btn-inverse = t(:'specialty.singular')
|
37
|
+
|
38
|
+
- if show_field?(@preset.try(:show_admitted))
|
39
|
+
th.admitted.btn-inverse.col-sm-1 = t(:'admitted')
|
40
|
+
|
41
|
+
- if show_field?(@preset.try(:show_graduated))
|
42
|
+
th.graduated.btn-inverse.col-sm-1 = t(:'graduated')
|
43
|
+
|
44
|
+
- if show_field?(@preset.try(:show_primary_contact))
|
45
|
+
th.primary_contact.btn-inverse.col-sm-1 = t(:'primary_contact')
|
46
|
+
|
47
|
+
- if show_field?(@preset.try(:show_primary_email))
|
48
|
+
th.primary_email.btn-inverse.col-sm-1 = t(:'primary_email')
|
49
|
+
|
50
|
+
- if show_field?(@preset.try(:show_primary_address))
|
51
|
+
th.primary_address.btn-inverse.col-sm-1 = t(:'primary_address')
|
52
|
+
|
53
|
+
- if show_field?(@preset.try(:show_personal_information))
|
54
|
+
th.personal_information.btn-inverse.col-sm-1 = t(:'personal')
|
55
|
+
|
56
|
+
= th_actions 2
|
57
|
+
|
58
|
+
tbody
|
59
|
+
= render @students
|
60
|
+
|
61
|
+
|
62
|
+
= paginate @students, remote: true
|
@@ -0,0 +1,63 @@
|
|
1
|
+
- if @enrolled_students && @enrolled_students.include?(student.id.to_s)
|
2
|
+
td.vm-tc = image_tag 'check.png', class: 'enrolled'
|
3
|
+
- elsif @selected_students
|
4
|
+
td.vm-tc = check_box_tag "","", (@selected_students.include?('student-'+student.id.to_s) ? true : false), class: "student-check student-#{student.id}", id: "student-#{student.id}"
|
5
|
+
- else
|
6
|
+
td.vm-tc = check_box_tag "","", false, class: "student-check student-#{student.id}", id: "student-#{student.id}"
|
7
|
+
|
8
|
+
- if show_field?(@preset.try(:show_code))
|
9
|
+
td.code = student.code
|
10
|
+
|
11
|
+
- if show_field?(@preset.try(:show_foreign_id_code))
|
12
|
+
td.foreign_id_code = student.foreign_id_code
|
13
|
+
|
14
|
+
- if show_field?(@preset.try(:show_enrollment_status))
|
15
|
+
td.enrollment_status = student.enrollment_status
|
16
|
+
|
17
|
+
- if show_field?(@preset.try(:show_user))
|
18
|
+
td.user = student.user
|
19
|
+
|
20
|
+
- if show_field?(@preset.try(:show_surname))
|
21
|
+
td.surname = student.surname
|
22
|
+
|
23
|
+
- if show_field?(@preset.try(:show_middle_name))
|
24
|
+
td.middle_name = student.middle_name
|
25
|
+
|
26
|
+
- if show_field?(@preset.try(:show_name))
|
27
|
+
td.name = student.name
|
28
|
+
|
29
|
+
- if show_field?(@preset.try(:show_birth_date))
|
30
|
+
td.birth_date = student.birth_date
|
31
|
+
|
32
|
+
- if show_field?(@preset.try(:show_gender))
|
33
|
+
td.gender = gender(student)
|
34
|
+
|
35
|
+
- if show_field?(@preset.try(:show_class_name))
|
36
|
+
td.class-name = student.class_and_number
|
37
|
+
|
38
|
+
- if show_field?(@preset.try(:show_specialty))
|
39
|
+
td.major_specialty = student.major_specialty
|
40
|
+
|
41
|
+
- if show_field?(@preset.try(:show_admitted))
|
42
|
+
td.admitted = student.admitted
|
43
|
+
|
44
|
+
- if show_field?(@preset.try(:show_graduated))
|
45
|
+
td.graduated = student.graduated
|
46
|
+
|
47
|
+
- if show_field?(@preset.try(:show_primary_contact))
|
48
|
+
td.primary_contact = student.primary_contact
|
49
|
+
|
50
|
+
- if show_field?(@preset.try(:show_primary_email))
|
51
|
+
td.primary_email = student.contacts.primary_email
|
52
|
+
|
53
|
+
- if show_field?(@preset.try(:show_primary_address))
|
54
|
+
td.primary_address = student.primary_address
|
55
|
+
|
56
|
+
- if show_field?(@preset.try(:show_personal_information))
|
57
|
+
td.personal_information
|
58
|
+
- student.addresses_count.times do
|
59
|
+
= address_icon
|
60
|
+
- student.contacts_count.times do
|
61
|
+
= contact_icon
|
62
|
+
- student.guardians_count.times do
|
63
|
+
= guardian_icon
|