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,14 @@
|
|
1
|
+
= content_for :title do
|
2
|
+
= t(:'course.plural')
|
3
|
+
|
4
|
+
= content_for :new_form do
|
5
|
+
#new-course.d-none
|
6
|
+
|
7
|
+
= content_for :index_header do
|
8
|
+
.pull-left
|
9
|
+
= count_div 'courses-count' do
|
10
|
+
= print_count @count, t(:'course.list')
|
11
|
+
.pull-right
|
12
|
+
= ajax_link_to_new t(:'course.new'), [:new, :course], id: "new-course-link"
|
13
|
+
|
14
|
+
= render 'courses'
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= modal_for 'semester-modal' do
|
2
|
+
= modal_form_for [@course, @semester_course], { resource: 'course-semester-course', label: t(:'semester.singular') } do |f|
|
3
|
+
= render 'form_fields', f: f
|
4
|
+
= buttons_for @semester_course, { resource: 'course-semester-course', label: t(:'semester.save') }
|
@@ -0,0 +1,16 @@
|
|
1
|
+
= index_header do
|
2
|
+
#new-course-semester-course.d-none
|
3
|
+
.pull-left
|
4
|
+
= count_div 'course-semester-courses-count' do
|
5
|
+
= print_count @course.semesters.count, t(:'semester.list')
|
6
|
+
.pull-right
|
7
|
+
= ajax_link_to_new t(:'semester.add'), [:new, @course, :semester_course], id: 'new-course-semester-course-link'
|
8
|
+
|
9
|
+
= index_body do
|
10
|
+
= table_for 'course-semester-courses-index' do
|
11
|
+
thead
|
12
|
+
tr
|
13
|
+
= th t(:'period')
|
14
|
+
= th_actions 2
|
15
|
+
tbody
|
16
|
+
=render partial: 'gaku/courses/semester_courses/semester_course', collection: @course.semester_courses, as: :semester_course
|
@@ -0,0 +1,6 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
$('#course-semester-courses-index tbody').append('<%= j render("semester_course", { semester_course: @semester_course }) %>');
|
3
|
+
$('#new-course-semester-course').slide();
|
4
|
+
$('#new-course-semester-course-link').show();
|
5
|
+
$('#course-semester-courses-tab-link').html("<%= print_count(@count, t(:'semester.plural')) %>");
|
6
|
+
$('.course-semester-courses-count').html("<%= print_count(@count, t(:'semester.list')) %>");
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#modal-dialogs').html('<%= j render("gaku/shared/student_chooser/modal") %>');
|
2
|
+
$('#student-modal').modal('show');
|
3
|
+
$('#chosen-actions').html('<%= j render("student_chooser_form") %>');
|
4
|
+
$('.show-chosen-table').hide();
|
5
|
+
$('.hide-chosen-table').show();
|
6
|
+
$('#chosen-table').slide();
|
7
|
+
$('#chosen-actions').slide();
|
@@ -0,0 +1,9 @@
|
|
1
|
+
h2 Resend confirmation instructions
|
2
|
+
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
3
|
+
= devise_error_messages!
|
4
|
+
div
|
5
|
+
= f.label :login, t(:'devise.login')
|
6
|
+
br/
|
7
|
+
= f.email_field :login
|
8
|
+
div= f.submit "Resend confirmation instructions"
|
9
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,6 @@
|
|
1
|
+
p
|
2
|
+
| Hello #{@resource.email}!
|
3
|
+
p Someone has requested a link to change your password, and you can do this through the link below.
|
4
|
+
p= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @resource.reset_password_token)
|
5
|
+
p If you didn't request this, please ignore this email.
|
6
|
+
p Your password won't change until you access the link above and create a new one.
|
@@ -0,0 +1,14 @@
|
|
1
|
+
h2 Change your password
|
2
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
3
|
+
= devise_error_messages!
|
4
|
+
= f.hidden_field :reset_password_token
|
5
|
+
div
|
6
|
+
= f.label :password, "New password"
|
7
|
+
br/
|
8
|
+
= f.password_field :password
|
9
|
+
div
|
10
|
+
= f.label :password_confirmation, "Confirm new password"
|
11
|
+
br/
|
12
|
+
= f.password_field :password_confirmation
|
13
|
+
div= f.submit "Change my password"
|
14
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,8 @@
|
|
1
|
+
h2 Forgot your password?
|
2
|
+
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
3
|
+
= devise_error_messages!
|
4
|
+
div
|
5
|
+
= f.label :login, t(:'devise.login')
|
6
|
+
= f.email_field :login
|
7
|
+
div= f.submit "Send me reset password instructions"
|
8
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
h2
|
2
|
+
| Edit #{resource_name.to_s.humanize}
|
3
|
+
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
div
|
6
|
+
= f.label :username, t(:'devise.username')
|
7
|
+
br/
|
8
|
+
= f.text_field :username
|
9
|
+
div
|
10
|
+
= f.label :email
|
11
|
+
br/
|
12
|
+
= f.email_field :email
|
13
|
+
div
|
14
|
+
= f.label :password
|
15
|
+
i (leave blank if you don't want to change it)
|
16
|
+
br/
|
17
|
+
= f.password_field :password, autocomplete: "off"
|
18
|
+
div
|
19
|
+
= f.label :password_confirmation
|
20
|
+
br/
|
21
|
+
= f.password_field :password_confirmation
|
22
|
+
div
|
23
|
+
= f.label :current_password
|
24
|
+
i (we need your current password to confirm your changes)
|
25
|
+
br/
|
26
|
+
= f.password_field :current_password
|
27
|
+
div= f.submit "Update"
|
28
|
+
h3 Cancel my account
|
29
|
+
p
|
30
|
+
| Unhappy? #{link_to "Cancel my account", registration_path(resource_name), confirm: "Are you sure?", method: :delete}.
|
31
|
+
= link_to_back
|
@@ -0,0 +1,27 @@
|
|
1
|
+
div style="width:320px;margin:0 auto;"
|
2
|
+
.row
|
3
|
+
.col-md-12
|
4
|
+
.panel.panel-primary
|
5
|
+
.panel-heading
|
6
|
+
h3.panel-title = t "devise.registrations.sign_up"
|
7
|
+
.panel-body
|
8
|
+
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
9
|
+
= devise_error_messages!
|
10
|
+
.form-group
|
11
|
+
= f.label :username, t(:"devise.username"), class: 'control-label'
|
12
|
+
= f.text_field :username, class: 'form-control col-md-12'
|
13
|
+
.form-group
|
14
|
+
= f.label :email, t(:"devise.email"), class: 'control-label'
|
15
|
+
= f.email_field :email, class: 'form-control col-md-12'
|
16
|
+
.form-group
|
17
|
+
= f.label :password, t(:"devise.password"), class: 'control-label'
|
18
|
+
= f.password_field :password, class: 'form-control col-md-12'
|
19
|
+
.form-group
|
20
|
+
= f.label :password_confirmation, t(:"devise.password_confirmation"), class: 'control-label'
|
21
|
+
= f.password_field :password_confirmation, class: 'form-control col-md-12'
|
22
|
+
hr.mt-0.mb-m
|
23
|
+
.form-group.mb-0
|
24
|
+
= f.submit t("devise.registrations.sign_up"), class: 'col-md-12 btn btn-primary'
|
25
|
+
ul.list-group
|
26
|
+
li.list-group-item
|
27
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,26 @@
|
|
1
|
+
div style="width:320px;margin:0 auto;"
|
2
|
+
.row
|
3
|
+
.col-md-12
|
4
|
+
.panel.panel-primary
|
5
|
+
.panel-heading
|
6
|
+
h3.panel-title = t "devise.registrations.admin_create"
|
7
|
+
.panel-body
|
8
|
+
= t "devise.registrations.admin_set_up"
|
9
|
+
hr.mt-m.mb-m
|
10
|
+
= form_for(resource, as: resource_name, url: create_admin_path) do |f|
|
11
|
+
= devise_error_messages!
|
12
|
+
.form-group
|
13
|
+
= f.label :username, t(:"devise.username"), class: 'control-label'
|
14
|
+
= f.text_field :username, class: 'form-control col-md-12'
|
15
|
+
.form-group
|
16
|
+
= f.label :email, t(:"devise.email"), class: 'control-label'
|
17
|
+
= f.email_field :email, class: 'form-control col-md-12'
|
18
|
+
.form-group
|
19
|
+
= f.label :password, t(:"devise.password"), class: 'control-label'
|
20
|
+
= f.password_field :password, class: 'form-control col-md-12'
|
21
|
+
.form-group
|
22
|
+
= f.label :password_confirmation, t(:"devise.password_confirmation"), class: 'control-label'
|
23
|
+
= f.password_field :password_confirmation, class: 'form-control col-md-12'
|
24
|
+
hr.mt-0.mb-m
|
25
|
+
.form-group.mb-0
|
26
|
+
= f.submit t("devise.registrations.sign_up"), class: 'col-md-12 btn btn-primary'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
div style="width:320px;margin:0 auto;"
|
2
|
+
.row
|
3
|
+
.col-md-12
|
4
|
+
.panel.panel-default
|
5
|
+
.panel-heading
|
6
|
+
h3.panel-title = t "devise.sessions.sign_in"
|
7
|
+
.panel-body
|
8
|
+
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
9
|
+
.form-group
|
10
|
+
= f.label :login, t("devise.login"), class: 'control-label'
|
11
|
+
= f.text_field :login, class: 'form-control col-md-12'
|
12
|
+
.form-group
|
13
|
+
= f.label :password, t("devise.password"), class: 'control-label'
|
14
|
+
= f.password_field :password, class: 'form-control col-md-12'
|
15
|
+
.checkbox
|
16
|
+
- if devise_mapping.rememberable?
|
17
|
+
= f.check_box :remember_me
|
18
|
+
= f.label :remember_me, " ".html_safe + t("devise.sessions.remember_me")
|
19
|
+
hr.mt-0.mb-m
|
20
|
+
.form-group.mb-0
|
21
|
+
= f.submit t("devise.sessions.sign_in"), id: 'sign_in', class: 'col-md-12 btn btn-warning'
|
22
|
+
ul.list-group
|
23
|
+
li.list-group-item
|
24
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<%- if controller_name != 'sessions' %>
|
2
|
+
<%= link_to t("devise.sign_in"), new_session_path(resource_name) %><br />
|
3
|
+
<% end -%>
|
4
|
+
|
5
|
+
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
6
|
+
<%= link_to t("devise.sessions.sign_up"), new_registration_path(resource_name) %><br />
|
7
|
+
<% end -%>
|
8
|
+
|
9
|
+
<%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
|
10
|
+
<%= link_to t("devise.passwords.forgot"), new_password_path(resource_name) %><br />
|
11
|
+
<% end -%>
|
12
|
+
|
13
|
+
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
14
|
+
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
15
|
+
<% end -%>
|
16
|
+
|
17
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
18
|
+
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
19
|
+
<% end -%>
|
20
|
+
|
21
|
+
<%- if devise_mapping.omniauthable? %>
|
22
|
+
<%- resource_class.omniauth_providers.each do |provider| %>
|
23
|
+
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
|
24
|
+
<% end -%>
|
25
|
+
<% end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
h2 Resend unlock instructions
|
2
|
+
= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
3
|
+
= devise_error_messages!
|
4
|
+
div
|
5
|
+
= f.label :email
|
6
|
+
br/
|
7
|
+
= f.email_field :email
|
8
|
+
div= f.submit "Resend unlock instructions"
|
9
|
+
= render "devise/shared/links"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<%= form_for(@exam_division) do |f| %>
|
2
|
+
<% if @exam_division.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@exam_division.errors.count, "error") %> prohibited this exam_division from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @exam_division.errors.full_messages.each do |msg| %>
|
8
|
+
<li><%= msg %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :name %><br />
|
16
|
+
<%= f.text_field :name %>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :portion %><br />
|
20
|
+
<%= f.text_field :portion %>
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<%= f.label :maxscore %><br />
|
24
|
+
<%= f.text_field :maxscore %>
|
25
|
+
</div>
|
26
|
+
<div class="actions">
|
27
|
+
<%= f.submit %>
|
28
|
+
</div>
|
29
|
+
<% end %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<h1>Listing exam_divisions</h1>
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<tr>
|
5
|
+
<th>Name</th>
|
6
|
+
<th>Portion</th>
|
7
|
+
<th>Maxscore</th>
|
8
|
+
<th></th>
|
9
|
+
<th></th>
|
10
|
+
<th></th>
|
11
|
+
</tr>
|
12
|
+
|
13
|
+
<% @exam_divisions.each do |exam_division| %>
|
14
|
+
<tr>
|
15
|
+
<td><%= exam_division.name %></td>
|
16
|
+
<td><%= exam_division.portion %></td>
|
17
|
+
<td><%= exam_division.maxscore %></td>
|
18
|
+
<td><%= link_to t(:show), exam_division %></td>
|
19
|
+
<td><%= link_to t(:edit), edit_exam_division_path(exam_division) %></td>
|
20
|
+
<td><%= ajax_link_to_delete exam_division %></td>
|
21
|
+
</tr>
|
22
|
+
<% end %>
|
23
|
+
</table>
|
24
|
+
|
25
|
+
<br />
|
26
|
+
|
27
|
+
<%= link_to 'New Exam division', new_exam_division_path %>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<p>
|
4
|
+
<b>Name:</b>
|
5
|
+
<%= @exam_division.name %>
|
6
|
+
</p>
|
7
|
+
|
8
|
+
<p>
|
9
|
+
<b>Portion:</b>
|
10
|
+
<%= @exam_division.portion %>
|
11
|
+
</p>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<b>Maxscore:</b>
|
15
|
+
<%= @exam_division.maxscore %>
|
16
|
+
</p>
|
17
|
+
|
18
|
+
|
19
|
+
<%= link_to 'Edit', edit_exam_division_path(@exam_division) %> |
|
20
|
+
<%= link_to 'Back', exam_divisions_path %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
= remote_form_for @exam do |f|
|
2
|
+
.panel.panel-default
|
3
|
+
.panel-heading
|
4
|
+
= t(:'exam.singular')
|
5
|
+
.panel-body
|
6
|
+
= render 'form_fields', f: f
|
7
|
+
|
8
|
+
.panel.panel-default
|
9
|
+
.panel-heading
|
10
|
+
= t(:'exam_portion.master')
|
11
|
+
.panel-body
|
12
|
+
= f.fields_for :exam_portions do |ep_form|
|
13
|
+
= render 'gaku/shared/form_fields/exam_portion_form_fields', ep_form: ep_form
|
14
|
+
.row
|
15
|
+
.col-md-12
|
16
|
+
= buttons_for @exam
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-8
|
3
|
+
= f.text_field :name, label: t(:'exam.name')
|
4
|
+
.col-md-1
|
5
|
+
= f.number_field :weight, label: t(:'exam.weight')
|
6
|
+
.col-md-3
|
7
|
+
= f.select :department_id, options_from_collection_for_select(@departments, :id, :name), {prompt: true}, class: 'span6', label: t(:'department.singular')
|
8
|
+
|
9
|
+
.row
|
10
|
+
.col-md-6
|
11
|
+
= f.text_area :description, size: "0x2", label: t(:'exam.description')
|
12
|
+
.col-md-6
|
13
|
+
= f.text_area :adjustments, size: "0x2", label: t(:'exam.adjustments')
|
14
|
+
|
15
|
+
.row
|
16
|
+
.col-md-6
|
17
|
+
= f.check_box :use_weighting, label: t(:'exam_portion.use_weighting')
|