gaku_admin 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/admin/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.svg +228 -0
- data/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/gaku/admin/admin.coffee +51 -0
- data/app/assets/javascripts/gaku/admin/base.js.coffee +118 -0
- data/app/assets/javascripts/gaku/admin/slide.js.erb +14 -0
- data/app/assets/javascripts/gaku/admin.js.coffee +43 -0
- data/app/assets/stylesheets/gaku/admin/bootstrap_and_theme.css.scss +571 -0
- data/app/assets/stylesheets/gaku/admin/disposals.css.scss +14 -0
- data/app/assets/stylesheets/gaku/admin/gaku.css.scss +216 -0
- data/app/assets/stylesheets/gaku/admin.css +13 -0
- data/app/assets/templates/roster.xls +0 -0
- data/app/controllers/gaku/admin/achievements/simple_grade_types_controller.rb +70 -0
- data/app/controllers/gaku/admin/attendance_types_controller.rb +60 -0
- data/app/controllers/gaku/admin/badge_types_controller.rb +69 -0
- data/app/controllers/gaku/admin/base_controller.rb +43 -0
- data/app/controllers/gaku/admin/commute_method_types_controller.rb +54 -0
- data/app/controllers/gaku/admin/contact_types_controller.rb +55 -0
- data/app/controllers/gaku/admin/departments_controller.rb +55 -0
- data/app/controllers/gaku/admin/enrollment_statuses_controller.rb +58 -0
- data/app/controllers/gaku/admin/grading_method_sets/grading_method_set_items_controller.rb +70 -0
- data/app/controllers/gaku/admin/grading_method_sets_controller.rb +69 -0
- data/app/controllers/gaku/admin/grading_methods_controller.rb +60 -0
- data/app/controllers/gaku/admin/presets_controller.rb +75 -0
- data/app/controllers/gaku/admin/roles_controller.rb +54 -0
- data/app/controllers/gaku/admin/school_years/semesters_controller.rb +58 -0
- data/app/controllers/gaku/admin/school_years_controller.rb +63 -0
- data/app/controllers/gaku/admin/schools/campuses/addresses_controller.rb +64 -0
- data/app/controllers/gaku/admin/schools/campuses/contacts_controller.rb +77 -0
- data/app/controllers/gaku/admin/schools/campuses_controller.rb +72 -0
- data/app/controllers/gaku/admin/schools/programs_controller.rb +79 -0
- data/app/controllers/gaku/admin/schools_controller.rb +84 -0
- data/app/controllers/gaku/admin/specialties_controller.rb +63 -0
- data/app/controllers/gaku/admin/states_controller.rb +92 -0
- data/app/controllers/gaku/admin/system_tools_controller.rb +8 -0
- data/app/controllers/gaku/admin/templates_controller.rb +72 -0
- data/app/controllers/gaku/admin/users_controller.rb +82 -0
- data/app/controllers/gaku/states_controller.rb +17 -0
- data/app/helpers/gaku/admin_helper.rb +12 -0
- data/app/helpers/gaku/presets_helper.rb +10 -0
- data/app/helpers/gaku/shared_helper.rb +25 -0
- data/app/overrides/admin_menu.rb +6 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/_fields.html.slim +8 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/_form.html.slim +3 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/_form_fields.html.slim +7 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/_modal.html.slim +4 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/_simple_grade_type.html.slim +2 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/create.js.erb +7 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/destroy.js.erb +2 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/edit.js.erb +3 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/index.html.slim +23 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/new.js.erb +3 -0
- data/app/views/gaku/admin/achievements/simple_grade_types/update.js.erb +4 -0
- data/app/views/gaku/admin/attendance_types/_attendance_type.html.slim +2 -0
- data/app/views/gaku/admin/attendance_types/_fields.html.slim +9 -0
- data/app/views/gaku/admin/attendance_types/_form.html.slim +3 -0
- data/app/views/gaku/admin/attendance_types/_form_fields.html.slim +6 -0
- data/app/views/gaku/admin/attendance_types/_modal.html.slim +4 -0
- data/app/views/gaku/admin/attendance_types/create.js.erb +7 -0
- data/app/views/gaku/admin/attendance_types/destroy.js.erb +2 -0
- data/app/views/gaku/admin/attendance_types/edit.js.erb +4 -0
- data/app/views/gaku/admin/attendance_types/index.html.slim +24 -0
- data/app/views/gaku/admin/attendance_types/index.json.rb +1 -0
- data/app/views/gaku/admin/attendance_types/new.js.erb +4 -0
- data/app/views/gaku/admin/attendance_types/update.js.erb +4 -0
- data/app/views/gaku/admin/badge_types/_badge_type.html.slim +2 -0
- data/app/views/gaku/admin/badge_types/_fields.html.slim +7 -0
- data/app/views/gaku/admin/badge_types/_form.html.slim +3 -0
- data/app/views/gaku/admin/badge_types/_form_fields.html.slim +7 -0
- data/app/views/gaku/admin/badge_types/_modal.html.slim +4 -0
- data/app/views/gaku/admin/badge_types/destroy.js.erb +2 -0
- data/app/views/gaku/admin/badge_types/edit.js.erb +3 -0
- data/app/views/gaku/admin/badge_types/index.html.slim +22 -0
- data/app/views/gaku/admin/badge_types/new.js.erb +3 -0
- data/app/views/gaku/admin/commute_method_types/_commute_method_type.html.slim +2 -0
- data/app/views/gaku/admin/commute_method_types/_fields.html.slim +4 -0
- data/app/views/gaku/admin/commute_method_types/_form.html.slim +3 -0
- data/app/views/gaku/admin/commute_method_types/_modal.html.slim +4 -0
- data/app/views/gaku/admin/commute_method_types/create.js.erb +7 -0
- data/app/views/gaku/admin/commute_method_types/destroy.js.erb +2 -0
- data/app/views/gaku/admin/commute_method_types/edit.js.erb +3 -0
- data/app/views/gaku/admin/commute_method_types/index.html.slim +18 -0
- data/app/views/gaku/admin/commute_method_types/new.js.erb +3 -0
- data/app/views/gaku/admin/commute_method_types/update.js.erb +3 -0
- data/app/views/gaku/admin/contact_types/_contact_type.html.slim +2 -0
- data/app/views/gaku/admin/contact_types/_fields.html.slim +4 -0
- data/app/views/gaku/admin/contact_types/_form.html.slim +3 -0
- data/app/views/gaku/admin/contact_types/_modal.html.slim +4 -0
- data/app/views/gaku/admin/contact_types/create.js.erb +7 -0
- data/app/views/gaku/admin/contact_types/destroy.js.erb +2 -0
- data/app/views/gaku/admin/contact_types/edit.js.erb +3 -0
- data/app/views/gaku/admin/contact_types/index.html.slim +18 -0
- data/app/views/gaku/admin/contact_types/new.js.erb +3 -0
- data/app/views/gaku/admin/contact_types/update.js.erb +3 -0
- data/app/views/gaku/admin/departments/_department.html.slim +2 -0
- data/app/views/gaku/admin/departments/_form.html.slim +3 -0
- data/app/views/gaku/admin/departments/_form_fields.html.slim +1 -0
- data/app/views/gaku/admin/departments/_modal.html.slim +4 -0
- data/app/views/gaku/admin/departments/_table_fields.html.slim +5 -0
- data/app/views/gaku/admin/departments/create.js.erb +7 -0
- data/app/views/gaku/admin/departments/destroy.js.erb +2 -0
- data/app/views/gaku/admin/departments/edit.js.erb +3 -0
- data/app/views/gaku/admin/departments/index.html.slim +20 -0
- data/app/views/gaku/admin/departments/new.js.erb +3 -0
- data/app/views/gaku/admin/departments/update.js.erb +4 -0
- data/app/views/gaku/admin/enrollment_statuses/_enrollment_status.html.slim +2 -0
- data/app/views/gaku/admin/enrollment_statuses/_fields.html.slim +6 -0
- data/app/views/gaku/admin/enrollment_statuses/_form.html.slim +3 -0
- data/app/views/gaku/admin/enrollment_statuses/_form_fields.html.slim +3 -0
- data/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +4 -0
- data/app/views/gaku/admin/enrollment_statuses/create.js.erb +7 -0
- data/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +2 -0
- data/app/views/gaku/admin/enrollment_statuses/edit.js.erb +3 -0
- data/app/views/gaku/admin/enrollment_statuses/index.html.slim +21 -0
- data/app/views/gaku/admin/enrollment_statuses/new.js.erb +3 -0
- data/app/views/gaku/admin/enrollment_statuses/update.js.erb +4 -0
- data/app/views/gaku/admin/grading_method_sets/_fields.html.slim +9 -0
- data/app/views/gaku/admin/grading_method_sets/_form.html.slim +3 -0
- data/app/views/gaku/admin/grading_method_sets/_form_fields.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/_grading_method_set.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/_modal.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/create.js.erb +7 -0
- data/app/views/gaku/admin/grading_method_sets/destroy.js.erb +7 -0
- data/app/views/gaku/admin/grading_method_sets/edit.js.erb +3 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_fields.html.slim +9 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +3 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form_fields.html.slim +1 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_item.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +23 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +4 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +7 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +2 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/edit.js.erb +3 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/new.js.erb +3 -0
- data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/update.js.erb +3 -0
- data/app/views/gaku/admin/grading_method_sets/index.html.slim +23 -0
- data/app/views/gaku/admin/grading_method_sets/make_primary.js.erb +6 -0
- data/app/views/gaku/admin/grading_method_sets/new.js.erb +3 -0
- data/app/views/gaku/admin/grading_method_sets/show.html.slim +13 -0
- data/app/views/gaku/admin/grading_method_sets/update.js.erb +3 -0
- data/app/views/gaku/admin/grading_methods/_fields.html.slim +6 -0
- data/app/views/gaku/admin/grading_methods/_form.html.slim +3 -0
- data/app/views/gaku/admin/grading_methods/_form_fields.html.slim +4 -0
- data/app/views/gaku/admin/grading_methods/_grading_method.html.slim +2 -0
- data/app/views/gaku/admin/grading_methods/_modal.html.slim +4 -0
- data/app/views/gaku/admin/grading_methods/create.js.erb +7 -0
- data/app/views/gaku/admin/grading_methods/destroy.js.erb +2 -0
- data/app/views/gaku/admin/grading_methods/edit.js.erb +3 -0
- data/app/views/gaku/admin/grading_methods/index.html.slim +20 -0
- data/app/views/gaku/admin/grading_methods/new.js.erb +3 -0
- data/app/views/gaku/admin/grading_methods/update.js.erb +3 -0
- data/app/views/gaku/admin/presets/_address.html.slim +19 -0
- data/app/views/gaku/admin/presets/_chooser_fields.html.slim +91 -0
- data/app/views/gaku/admin/presets/_export_formats.html.slim +19 -0
- data/app/views/gaku/admin/presets/_fields.html.slim +5 -0
- data/app/views/gaku/admin/presets/_grading.html.slim +14 -0
- data/app/views/gaku/admin/presets/_locale.html.slim +3 -0
- data/app/views/gaku/admin/presets/_names_order.html.slim +15 -0
- data/app/views/gaku/admin/presets/_pagination.html.slim +25 -0
- data/app/views/gaku/admin/presets/_person.html.slim +8 -0
- data/app/views/gaku/admin/presets/_preset.html.slim +2 -0
- data/app/views/gaku/admin/presets/_student.html.slim +19 -0
- data/app/views/gaku/admin/presets/_tabs.html.slim +51 -0
- data/app/views/gaku/admin/presets/edit.html.slim +1 -0
- data/app/views/gaku/admin/presets/index.html.slim +16 -0
- data/app/views/gaku/admin/roles/_fields.html.slim +5 -0
- data/app/views/gaku/admin/roles/_form.html.slim +3 -0
- data/app/views/gaku/admin/roles/_form_fields.html.slim +1 -0
- data/app/views/gaku/admin/roles/_modal.html.slim +4 -0
- data/app/views/gaku/admin/roles/_role.html.slim +2 -0
- data/app/views/gaku/admin/roles/create.js.erb +7 -0
- data/app/views/gaku/admin/roles/destroy.js.erb +2 -0
- data/app/views/gaku/admin/roles/edit.js.erb +3 -0
- data/app/views/gaku/admin/roles/index.html.slim +20 -0
- data/app/views/gaku/admin/roles/new.js.erb +3 -0
- data/app/views/gaku/admin/roles/update.js.erb +3 -0
- data/app/views/gaku/admin/school_years/_fields.html.slim +7 -0
- data/app/views/gaku/admin/school_years/_form.html.slim +3 -0
- data/app/views/gaku/admin/school_years/_form_fields.html.slim +5 -0
- data/app/views/gaku/admin/school_years/_modal.html.slim +5 -0
- data/app/views/gaku/admin/school_years/_school_year.html.slim +3 -0
- data/app/views/gaku/admin/school_years/_show_table.html.slim +10 -0
- data/app/views/gaku/admin/school_years/create.js.erb +10 -0
- data/app/views/gaku/admin/school_years/destroy.js.erb +2 -0
- data/app/views/gaku/admin/school_years/edit.js.erb +5 -0
- data/app/views/gaku/admin/school_years/index.html.slim +21 -0
- data/app/views/gaku/admin/school_years/new.js.erb +5 -0
- data/app/views/gaku/admin/school_years/semesters/_fields.html.slim +7 -0
- data/app/views/gaku/admin/school_years/semesters/_form.html.slim +3 -0
- data/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +5 -0
- data/app/views/gaku/admin/school_years/semesters/_modal.html.slim +5 -0
- data/app/views/gaku/admin/school_years/semesters/_semester.html.slim +3 -0
- data/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +22 -0
- data/app/views/gaku/admin/school_years/semesters/create.js.erb +10 -0
- data/app/views/gaku/admin/school_years/semesters/destroy.js.erb +2 -0
- data/app/views/gaku/admin/school_years/semesters/edit.js.erb +6 -0
- data/app/views/gaku/admin/school_years/semesters/new.js.erb +4 -0
- data/app/views/gaku/admin/school_years/semesters/update.js.erb +8 -0
- data/app/views/gaku/admin/school_years/show.html.slim +15 -0
- data/app/views/gaku/admin/school_years/update.js.erb +8 -0
- data/app/views/gaku/admin/schools/_fields.html.slim +9 -0
- data/app/views/gaku/admin/schools/_form.html.slim +3 -0
- data/app/views/gaku/admin/schools/_form_fields.html.slim +25 -0
- data/app/views/gaku/admin/schools/_school.html.slim +6 -0
- data/app/views/gaku/admin/schools/_show_table.html.slim +35 -0
- data/app/views/gaku/admin/schools/_tabs.html.slim +15 -0
- data/app/views/gaku/admin/schools/campuses/_campus.html.slim +6 -0
- data/app/views/gaku/admin/schools/campuses/_campuses.html.slim +23 -0
- data/app/views/gaku/admin/schools/campuses/_form.html.slim +3 -0
- data/app/views/gaku/admin/schools/campuses/_form_fields.html.slim +1 -0
- data/app/views/gaku/admin/schools/campuses/_picture.html.slim +8 -0
- data/app/views/gaku/admin/schools/campuses/_show_table.html.slim +10 -0
- data/app/views/gaku/admin/schools/campuses/_tabs.html.slim +15 -0
- data/app/views/gaku/admin/schools/campuses/_upload_picture.html.slim +7 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_address.html.slim +7 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_address_row_fields.html.slim +4 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_addresses.html.slim +24 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_fields.html.slim +7 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_form.html.slim +3 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_form_fields.html.slim +26 -0
- data/app/views/gaku/admin/schools/campuses/addresses/_modal.html.slim +5 -0
- data/app/views/gaku/admin/schools/campuses/addresses/create.js.erb +6 -0
- data/app/views/gaku/admin/schools/campuses/addresses/destroy.js.erb +2 -0
- data/app/views/gaku/admin/schools/campuses/addresses/edit.js.erb +4 -0
- data/app/views/gaku/admin/schools/campuses/addresses/new.js.erb +4 -0
- data/app/views/gaku/admin/schools/campuses/addresses/update.js.erb +4 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_contact.html.slim +3 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_contacts.html.slim +22 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_delete_link.html.slim +1 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_fields.html.slim +12 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_form.html.slim +3 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_form_fields.html.slim +14 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_modal.html.slim +5 -0
- data/app/views/gaku/admin/schools/campuses/contacts/_primary_field.html.slim +13 -0
- data/app/views/gaku/admin/schools/campuses/contacts/create.js.erb +20 -0
- data/app/views/gaku/admin/schools/campuses/contacts/destroy.js.erb +8 -0
- data/app/views/gaku/admin/schools/campuses/contacts/edit.js.erb +4 -0
- data/app/views/gaku/admin/schools/campuses/contacts/make_primary.js.erb +6 -0
- data/app/views/gaku/admin/schools/campuses/contacts/new.js.erb +3 -0
- data/app/views/gaku/admin/schools/campuses/contacts/soft_delete.js.erb +8 -0
- data/app/views/gaku/admin/schools/campuses/contacts/update.js.erb +14 -0
- data/app/views/gaku/admin/schools/campuses/create.js.erb +9 -0
- data/app/views/gaku/admin/schools/campuses/destroy.js.erb +2 -0
- data/app/views/gaku/admin/schools/campuses/edit.html.slim +19 -0
- data/app/views/gaku/admin/schools/campuses/new.js.erb +3 -0
- data/app/views/gaku/admin/schools/campuses/show.html.slim +13 -0
- data/app/views/gaku/admin/schools/create.js.erb +7 -0
- data/app/views/gaku/admin/schools/destroy.js.erb +1 -0
- data/app/views/gaku/admin/schools/edit.html.slim +19 -0
- data/app/views/gaku/admin/schools/edit_master.html.slim +22 -0
- data/app/views/gaku/admin/schools/index.html.slim +25 -0
- data/app/views/gaku/admin/schools/new.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/_fields.html.slim +10 -0
- data/app/views/gaku/admin/schools/programs/_form.html.slim +14 -0
- data/app/views/gaku/admin/schools/programs/_form_fields.html.slim +6 -0
- data/app/views/gaku/admin/schools/programs/_modal.html.slim +3 -0
- data/app/views/gaku/admin/schools/programs/_program.html.slim +2 -0
- data/app/views/gaku/admin/schools/programs/_programs.html.slim +23 -0
- data/app/views/gaku/admin/schools/programs/create.js.erb +7 -0
- data/app/views/gaku/admin/schools/programs/destroy.js.erb +2 -0
- data/app/views/gaku/admin/schools/programs/edit.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/new.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +6 -0
- data/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +11 -0
- data/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +7 -0
- data/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +10 -0
- data/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +5 -0
- data/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +10 -0
- data/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +3 -0
- data/app/views/gaku/admin/schools/programs/update.js.erb +3 -0
- data/app/views/gaku/admin/schools/show.html.slim +13 -0
- data/app/views/gaku/admin/schools/show_master.html.slim +14 -0
- data/app/views/gaku/admin/shared/_picture.html.slim +6 -0
- data/app/views/gaku/admin/shared/_upload_picture.html.slim +7 -0
- data/app/views/gaku/admin/specialties/_fields.html.slim +7 -0
- data/app/views/gaku/admin/specialties/_form.html.slim +3 -0
- data/app/views/gaku/admin/specialties/_form_fields.html.slim +4 -0
- data/app/views/gaku/admin/specialties/_modal.html.slim +4 -0
- data/app/views/gaku/admin/specialties/_specialty.html.slim +2 -0
- data/app/views/gaku/admin/specialties/create.js.erb +7 -0
- data/app/views/gaku/admin/specialties/destroy.js.erb +2 -0
- data/app/views/gaku/admin/specialties/edit.js.erb +3 -0
- data/app/views/gaku/admin/specialties/index.html.slim +21 -0
- data/app/views/gaku/admin/specialties/new.js.erb +3 -0
- data/app/views/gaku/admin/specialties/update.js.erb +3 -0
- data/app/views/gaku/admin/states/_country_select_form.html.slim +4 -0
- data/app/views/gaku/admin/states/_country_table.html.slim +11 -0
- data/app/views/gaku/admin/states/_fields.html.slim +8 -0
- data/app/views/gaku/admin/states/_form.html.slim +4 -0
- data/app/views/gaku/admin/states/_form_fields.html.slim +14 -0
- data/app/views/gaku/admin/states/_modal.html.slim +4 -0
- data/app/views/gaku/admin/states/_state.html.slim +2 -0
- data/app/views/gaku/admin/states/country_states.js.erb +2 -0
- data/app/views/gaku/admin/states/create.js.erb +7 -0
- data/app/views/gaku/admin/states/destroy.js.erb +2 -0
- data/app/views/gaku/admin/states/edit.js.erb +3 -0
- data/app/views/gaku/admin/states/index.html.slim +15 -0
- data/app/views/gaku/admin/states/new.js.erb +3 -0
- data/app/views/gaku/admin/states/update.js.erb +3 -0
- data/app/views/gaku/admin/system_tools/index.html.slim +1 -0
- data/app/views/gaku/admin/templates/_error_msg.html.slim +8 -0
- data/app/views/gaku/admin/templates/_fields.html.slim +8 -0
- data/app/views/gaku/admin/templates/_form.html.slim +3 -0
- data/app/views/gaku/admin/templates/_form_fields.html.slim +4 -0
- data/app/views/gaku/admin/templates/_modal.html.slim +4 -0
- data/app/views/gaku/admin/templates/_template.html.slim +2 -0
- data/app/views/gaku/admin/templates/destroy.js.erb +2 -0
- data/app/views/gaku/admin/templates/edit.html.slim +1 -0
- data/app/views/gaku/admin/templates/index.html.slim +20 -0
- data/app/views/gaku/admin/templates/new.html.slim +1 -0
- data/app/views/gaku/admin/users/_fields.html.slim +5 -0
- data/app/views/gaku/admin/users/_form.html.slim +3 -0
- data/app/views/gaku/admin/users/_form_fields.html.slim +14 -0
- data/app/views/gaku/admin/users/_modal.html.slim +4 -0
- data/app/views/gaku/admin/users/_user.html.slim +2 -0
- data/app/views/gaku/admin/users/create.js.erb +7 -0
- data/app/views/gaku/admin/users/destroy.js.erb +2 -0
- data/app/views/gaku/admin/users/edit.js.erb +3 -0
- data/app/views/gaku/admin/users/index.html.slim +21 -0
- data/app/views/gaku/admin/users/new.js.erb +3 -0
- data/app/views/gaku/admin/users/update.js.erb +4 -0
- data/app/views/gaku/layouts/admin/edit.html.slim +10 -0
- data/app/views/gaku/layouts/admin/gaku.html.slim +27 -0
- data/app/views/gaku/layouts/admin/index.html.slim +12 -0
- data/app/views/gaku/layouts/admin/show.html.slim +10 -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/_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/_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/menu/_admin.html.erb +71 -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/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/config/initializers/client_side_validations.rb +9 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/routes.rb +67 -0
- data/lib/gaku/admin/engine.rb +30 -0
- data/lib/gaku/admin.rb +31 -0
- data/lib/gaku/app_responder.rb +6 -0
- data/lib/gaku_admin.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 +684 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-attendance-types-index tbody').append('<%= j render("attendance_type", {attendance_type: @attendance_type}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-attendance-type').slide();
|
4
|
+
$('#new-admin-attendance-type-link').show();
|
5
|
+
|
6
|
+
$('.admin-attendance-types-count').html("<%= print_count(@count, t(:'attendance_type.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,4 @@
|
|
1
|
+
$('#modal-dialogs').html('<%= j render("modal", {attendance_type: @attendance_type}) %>');
|
2
|
+
$('#edit-attendance-type-modal #attendance_type_color_code').minicolors({theme: 'bootstrap'});
|
3
|
+
$('#edit-attendance-type-modal').modal('show');
|
4
|
+
$('.remote-form').enableValidations();
|
@@ -0,0 +1,24 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-attendance-types-count' do
|
4
|
+
= print_count @count, t(:'attendance_type.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'attendance_type.add'), [:new, :admin, :attendance_type], id: 'new-admin-attendance-type-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-attendance-type.d-none
|
10
|
+
|
11
|
+
#admin-attendance-types
|
12
|
+
= table_for 'admin-attendance-types-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'attendance_type.singular')
|
16
|
+
= th t(:'attendance_type.color_code')
|
17
|
+
= th t(:'attendance_type.credit_rate')
|
18
|
+
= th t(:'attendance_type.counted_absent')
|
19
|
+
= th t(:'attendance_type.disable_credit')
|
20
|
+
= th t(:'attendance_type.auto_credit')
|
21
|
+
= th_actions 2
|
22
|
+
tbody
|
23
|
+
= render partial: 'gaku/admin/attendance_types/attendance_type', collection: @attendance_types, as: :attendance_type
|
24
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
@attendance_types.to_json(root: false)
|
@@ -0,0 +1,7 @@
|
|
1
|
+
= f.text_field :name, label: t(:'badge_type.name')
|
2
|
+
= f.text_field :code, label: t(:'badge_type.code')
|
3
|
+
= f.text_field :description, label: t(:'badge_type.description')
|
4
|
+
= f.text_field :authority, label: t(:'badge_type.authority')
|
5
|
+
= f.text_field :issuer, label: t(:'badge_type.issuer')
|
6
|
+
= f.text_field :url, label: t(:'badge_type.url')
|
7
|
+
= f.file_field :badge_image, label: t(:'badge_type.badge')
|
@@ -0,0 +1,22 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-badge-types-count' do
|
4
|
+
= print_count @count, t(:'badge_type.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'badge_type.add'), [:new, :admin, :badge_type], id: 'new-admin-badge-type-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-badge-type.d-none
|
10
|
+
|
11
|
+
#admin-badge-types
|
12
|
+
= table_for 'admin-badge-types-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'badge_type.singular')
|
16
|
+
= th t(:'badge_type.description')
|
17
|
+
= th t(:'badge_type.authority')
|
18
|
+
= th t(:'badge_type.badge')
|
19
|
+
= th_actions 2
|
20
|
+
tbody
|
21
|
+
= render partial: 'gaku/admin/badge_types/badge_type', collection: @badge_types, as: :badge_type
|
22
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= modal_for 'edit-commute-method-type-modal' do
|
2
|
+
= modal_form_for [:admin, @commute_method_type], resource: 'admin-commute-method-type' do |f|
|
3
|
+
= f.text_field :name, label: t(:'commute_method_type.name')
|
4
|
+
= buttons_for @commute_method_type, resource: 'admin-commute-method-type'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-commute-method-types table tbody').append('<%= j render("commute_method_type", {commute_method_type: @commute_method_type}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-commute-method-type').slide();
|
4
|
+
$('#new-admin-commute-method-type-link').show();
|
5
|
+
|
6
|
+
$('.admin-commute-method-types-count').html("<%= print_count(@count, t(:'commute_method_type.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-commute-method-types-count' do
|
4
|
+
= print_count @count, t(:'commute_method_type.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'commute_method_type.new'), [:new, :admin, :commute_method_type], id: 'new-admin-commute-method-type-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-commute-method-type.d-none
|
10
|
+
|
11
|
+
#admin-commute-method-types
|
12
|
+
= table_for 'admin-commute-method-types-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'commute_method_type.plural')
|
16
|
+
= th_actions 2
|
17
|
+
tbody
|
18
|
+
= render partial: 'commute_method_type', collection: @commute_method_types, as: :commute_method_type
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-contact-types-index tbody').append('<%= j render("contact_type", {contact_type: @contact_type}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-contact-type').slide();
|
4
|
+
$('#new-admin-contact-type-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-contact-types-count').html("<%= print_count(@count, t(:'contact_type.list')) %>");
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-contact-types-count' do
|
4
|
+
= print_count @count, t(:'contact_type.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'contact_type.add'), [:new, :admin, :contact_type], id: 'new-admin-contact-type-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-contact-type.d-none
|
10
|
+
|
11
|
+
#admin-contact-types
|
12
|
+
= table_for 'admin-contact-types-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'contact_type.singular')
|
16
|
+
= th_actions 2
|
17
|
+
tbody
|
18
|
+
= render partial: 'contact_type', collection: @contact_types, as: 'contact_type'
|
@@ -0,0 +1 @@
|
|
1
|
+
= f.text_field :name, label: t(:'department.name')
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-departments-index tbody').append('<%= j render("department", {department: @department}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-department').slide();
|
4
|
+
$('#new-admin-department-link').show();
|
5
|
+
|
6
|
+
$('.admin-departments-count').html("<%= print_count(@count, t(:'department.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-departments-count' do
|
4
|
+
= print_count @count, t(:'department.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'department.add'), [:new, :admin, :department], id: 'new-admin-department-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-department.d-none
|
10
|
+
|
11
|
+
#admin-departments
|
12
|
+
= table_for 'admin-departments-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'department.name')
|
16
|
+
|
17
|
+
= th_actions 2
|
18
|
+
tbody
|
19
|
+
= render partial: 'gaku/admin/departments/department', collection: @departments, as: :department
|
20
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-enrollment-statuses-index tbody').append('<%= j render("enrollment_status", {enrollment_status: @enrollment_status}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-enrollment-status').slide();
|
4
|
+
$('#new-admin-enrollment-status-link').show();
|
5
|
+
|
6
|
+
$('.admin-enrollment-statuses-count').html("<%= print_count(@count, t(:'enrollment_status.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,21 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-enrollment-statuses-count' do
|
4
|
+
= print_count @count, t(:'enrollment_status.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'enrollment_status.add'), [:new, :admin, :enrollment_status], id: 'new-admin-enrollment-status-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-enrollment-status.d-none
|
10
|
+
|
11
|
+
#admin-enrollment-statuses
|
12
|
+
= table_for 'admin-enrollment-statuses-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'enrollment_status.name')
|
16
|
+
= th t(:'enrollment_status.code')
|
17
|
+
= th t(:'enrollment_status.active')
|
18
|
+
= th_actions 2
|
19
|
+
tbody
|
20
|
+
= render partial: 'gaku/admin/enrollment_statuses/enrollment_status', collection: @enrollment_statuses, as: 'enrollment_status'
|
21
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
td = render 'make_primary_field', grading_method_set: grading_method_set
|
2
|
+
td = grading_method_set.name
|
3
|
+
td = boolean_image grading_method_set.display_deviation
|
4
|
+
td = boolean_image grading_method_set.display_rank
|
5
|
+
td = boolean_image grading_method_set.rank_order
|
6
|
+
td
|
7
|
+
= link_to_show [:admin, grading_method_set]
|
8
|
+
= ajax_link_to_edit [:edit, :admin, grading_method_set]
|
9
|
+
= ajax_link_to_delete [:admin, grading_method_set]
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= f.text_field :name, validate: { uniqueness: true }, label: t(:'grading_method_set.name')
|
2
|
+
= f.check_box :display_deviation, label: t(:'grading_method_set.display_deviation')
|
3
|
+
= f.check_box :display_rank, label: t(:'grading_method_set.display_rank')
|
4
|
+
= f.check_box :rank_order, label: t(:'grading_method_set.rank_order')
|
@@ -0,0 +1,4 @@
|
|
1
|
+
- if grading_method_set.primary?
|
2
|
+
= link_to ok_icon, [:make_primary, :admin, grading_method_set], remote: true, class: 'col-md-12 btn btn-xs btn-primary make-primary-grading-method-set', method: :patch, data: { confirm: t('confirm') }, id: 'set_primary_link'
|
3
|
+
- else
|
4
|
+
= link_to ok_icon, [:make_primary, :admin, grading_method_set], remote: true, id: 'set_primary_link', class: 'col-md-12 btn btn-xs btn-default make-primary-grading-method-set', method: :patch, data: { confirm: t('confirm') }
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-grading-method-sets-index tbody').append('<%= j render("grading_method_set", {grading_method_set: @grading_method_set}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-grading-method-set').slide();
|
4
|
+
$('#new-admin-grading-method-set-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-grading-method-sets-count').html("<%= print_count(@count+1, t(:'grading_method_set.list')) %>");
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('.admin-grading-method-sets-count').html("<%= print_count(@count-1, t(:'grading_method_set.list')) %>");
|
2
|
+
|
3
|
+
<%- if Gaku::GradingMethodSet.all.any? && @grading_method_set.primary? %>
|
4
|
+
$('#grading-method-set-<%= Gaku::GradingMethodSet.first.try(:id) %> td a').addClass('btn-primary');
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,9 @@
|
|
1
|
+
= drag_field
|
2
|
+
td = grading_method_set_item.grading_method.name
|
3
|
+
td = grading_method_set_item.grading_method.description
|
4
|
+
td = grading_method_set_item.grading_method.method
|
5
|
+
td = grading_method_set_item.grading_method.arguments
|
6
|
+
td = boolean_image grading_method_set_item.grading_method.name
|
7
|
+
td
|
8
|
+
= ajax_link_to_edit [:edit, :admin, grading_method_set_item.grading_method_set, grading_method_set_item]
|
9
|
+
= ajax_link_to_delete [:admin, grading_method_set_item.grading_method_set, grading_method_set_item]
|
@@ -0,0 +1,3 @@
|
|
1
|
+
= remote_form_for [:admin, @grading_method_set, @grading_method_set_item], resource: 'admin-grading-method-set-grading-method-set-item' do |f|
|
2
|
+
= render 'form_fields', f: f
|
3
|
+
= buttons_for @grading_method_set_item, resource: 'admin-grading-method-set-grading-method-set-item', label: t(:'grading_method_set_item.save')
|
@@ -0,0 +1 @@
|
|
1
|
+
= f.select :grading_method_id, @grading_methods, { prompt: t(:'grading_method.choose') }, label: t(:'grading_method.plural'), uniqueness: true
|
@@ -0,0 +1,23 @@
|
|
1
|
+
= index_header do
|
2
|
+
#new-admin-grading-method-set-grading-method-set-item.d-none
|
3
|
+
.pull-left
|
4
|
+
= count_div 'admin-grading-method-set-grading-method-set-items-count' do
|
5
|
+
= print_count @count, t(:'grading_method.list')
|
6
|
+
.pull-right
|
7
|
+
= ajax_link_to_new t(:'grading_method.add'), [:new, :admin, @grading_method_set, :grading_method_set_item], id: 'new-admin-grading-method-set-grading-method-set-item-link'
|
8
|
+
|
9
|
+
= hr
|
10
|
+
|
11
|
+
= index_body do
|
12
|
+
= table_for 'admin-grading-method-set-grading-method-set-items-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'order')
|
16
|
+
= th t(:'grading_method.name')
|
17
|
+
= th t(:'grading_method.description')
|
18
|
+
= th t(:'grading_method.method')
|
19
|
+
= th t(:'grading_method.arguments')
|
20
|
+
= th t(:'grading_method.curved')
|
21
|
+
= th_actions 2
|
22
|
+
tbody class='sortable' data-sort-url='#{sort_admin_grading_method_set_grading_method_set_items_path(@grading_method_set)}'
|
23
|
+
= render partial: 'gaku/admin/grading_method_sets/grading_method_set_items/item', collection: @grading_method_set.items, as: :grading_method_set_item
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= modal_for 'edit-grading-method-set-grading-method-set-item-modal' do
|
2
|
+
= modal_form_for [:admin, @grading_method_set, @grading_method_set_item], resource: 'admin-grading-method-set-grading-method-set-item' do |f|
|
3
|
+
= render 'form_fields', f: f
|
4
|
+
= buttons_for @grading_method_set_item, resource: 'admin-grading-method-set-grading-method-set-item'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-grading-method-set-grading-method-set-items-index tbody').append('<%= j render("item", {grading_method_set_item: @grading_method_set_item}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-grading-method-set-grading-method-set-item').slide();
|
4
|
+
$('#new-admin-grading-method-set-grading-method-set-item-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-grading-method-set-grading-method-set-items-count').html("<%= print_count(@count, t(:'grading_method.list')) %>");
|
@@ -0,0 +1,23 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-grading-method-sets-count' do
|
4
|
+
= print_count @count, t(:'grading_method_set.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'grading_method_set.add'), [:new, :admin, :grading_method_set], id: 'new-admin-grading-method-set-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-grading-method-set.d-none
|
10
|
+
|
11
|
+
#admin-grading-method-sets
|
12
|
+
= table_for 'admin-grading-method-sets-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th_icon 'home'
|
16
|
+
= th t(:'grading_method_set.singular')
|
17
|
+
= th t(:'grading_method_set.display_deviation')
|
18
|
+
= th t(:'grading_method_set.display_rank')
|
19
|
+
= th t(:'grading_method_set.rank_order')
|
20
|
+
|
21
|
+
= th_actions 3
|
22
|
+
tbody
|
23
|
+
= render partial: 'grading_method_set', collection: @grading_method_sets, as: :grading_method_set
|