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,79 @@
|
|
1
|
+
module Gaku
|
2
|
+
class Admin::Schools::ProgramsController < Admin::BaseController
|
3
|
+
|
4
|
+
respond_to :js, only: %i( new create destroy edit update show_program_levels show_program_specialties show_program_syllabuses )
|
5
|
+
|
6
|
+
before_action :set_school
|
7
|
+
before_action :set_program, only: %i( show_program_levels show_program_specialties show_program_syllabuses destroy edit show update )
|
8
|
+
before_action :load_data, only: %i( new edit )
|
9
|
+
|
10
|
+
def new
|
11
|
+
@program = Program.new
|
12
|
+
respond_with @program
|
13
|
+
end
|
14
|
+
|
15
|
+
def create
|
16
|
+
@program = Program.new(program_params)
|
17
|
+
@program.save
|
18
|
+
@school.programs << @program
|
19
|
+
set_count
|
20
|
+
respond_with @program
|
21
|
+
end
|
22
|
+
|
23
|
+
def edit
|
24
|
+
end
|
25
|
+
|
26
|
+
def update
|
27
|
+
@program.update(program_params)
|
28
|
+
respond_with @program
|
29
|
+
end
|
30
|
+
|
31
|
+
def destroy
|
32
|
+
@program.destroy
|
33
|
+
set_count
|
34
|
+
respond_with @program
|
35
|
+
end
|
36
|
+
|
37
|
+
def show_program_levels
|
38
|
+
end
|
39
|
+
|
40
|
+
def show_program_specialties
|
41
|
+
end
|
42
|
+
|
43
|
+
def show_program_syllabuses
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def program_params
|
49
|
+
params.require(:program).permit(attributes)
|
50
|
+
end
|
51
|
+
|
52
|
+
def attributes
|
53
|
+
#permit :id for update nested attributes
|
54
|
+
[:id, :name, :description,
|
55
|
+
{ program_specialties_attributes: [:id, :specialty_id, :_destroy] },
|
56
|
+
{ program_levels_attributes: [:id, :level_id, :_destroy] },
|
57
|
+
{ program_syllabuses_attributes: [:id, :syllabus_id, :_destroy] }]
|
58
|
+
end
|
59
|
+
|
60
|
+
def load_data
|
61
|
+
@levels = Level.all
|
62
|
+
@syllabuses = Syllabus.all
|
63
|
+
@specialties = Specialty.all
|
64
|
+
end
|
65
|
+
|
66
|
+
def set_program
|
67
|
+
@program = Program.find(params[:id])
|
68
|
+
end
|
69
|
+
|
70
|
+
def set_school
|
71
|
+
@school = School.find(params[:school_id])
|
72
|
+
end
|
73
|
+
|
74
|
+
def set_count
|
75
|
+
@count = @school.programs.count
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
module Gaku
|
2
|
+
class Admin::SchoolsController < Admin::BaseController
|
3
|
+
|
4
|
+
respond_to :js, only: %i( new create destroy )
|
5
|
+
respond_to :html, only: %i( index edit edit_master update update_master show show_master )
|
6
|
+
|
7
|
+
before_action :set_school, only: %i( edit show update destroy )
|
8
|
+
before_action :set_master_school, only: %i( show_master edit_master update_master )
|
9
|
+
|
10
|
+
def show_master
|
11
|
+
respond_with @school
|
12
|
+
end
|
13
|
+
|
14
|
+
def edit_master
|
15
|
+
respond_with @school
|
16
|
+
end
|
17
|
+
|
18
|
+
def destroy
|
19
|
+
@school.destroy
|
20
|
+
set_count
|
21
|
+
respond_with @school
|
22
|
+
end
|
23
|
+
|
24
|
+
def new
|
25
|
+
@school = School.new
|
26
|
+
respond_with @school
|
27
|
+
end
|
28
|
+
|
29
|
+
def create
|
30
|
+
@school = School.new(school_params)
|
31
|
+
@school.save
|
32
|
+
set_count
|
33
|
+
respond_with @school
|
34
|
+
end
|
35
|
+
|
36
|
+
def edit
|
37
|
+
respond_with @school
|
38
|
+
end
|
39
|
+
|
40
|
+
def show
|
41
|
+
respond_with @school
|
42
|
+
end
|
43
|
+
|
44
|
+
def update
|
45
|
+
@school.update(school_params)
|
46
|
+
respond_with @school, location: [:edit, :admin, @school]
|
47
|
+
end
|
48
|
+
|
49
|
+
def update_master
|
50
|
+
@school.update(school_params)
|
51
|
+
respond_with @school, location: admin_school_details_edit_path
|
52
|
+
end
|
53
|
+
|
54
|
+
def index
|
55
|
+
@schools = School.all
|
56
|
+
set_count
|
57
|
+
respond_with @schools
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def school_params
|
63
|
+
params.require(:school).permit(attributes)
|
64
|
+
end
|
65
|
+
|
66
|
+
def attributes
|
67
|
+
[:name, :primary, :slogan, :description, :founded, :principal, :vice_principal, :grades, :code, { levels_attributes: [ :name, :'_destroy', :id ] }, :picture ]
|
68
|
+
end
|
69
|
+
|
70
|
+
def set_school
|
71
|
+
@school = School.find(params[:id])
|
72
|
+
end
|
73
|
+
|
74
|
+
def set_count
|
75
|
+
@count = School.count
|
76
|
+
end
|
77
|
+
|
78
|
+
def set_master_school
|
79
|
+
@school = School.primary
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Gaku
|
2
|
+
class Admin::SpecialtiesController < Admin::BaseController
|
3
|
+
|
4
|
+
#load_and_authorize_resource class: Specialty
|
5
|
+
|
6
|
+
respond_to :js, only: %i( new create edit update destroy )
|
7
|
+
respond_to :html, only: :index
|
8
|
+
|
9
|
+
before_action :set_specialty, only: %i( edit update destroy )
|
10
|
+
before_action :load_data, only: %i( new edit )
|
11
|
+
|
12
|
+
def index
|
13
|
+
@specialties = Specialty.all
|
14
|
+
@count = Specialty.count
|
15
|
+
respond_with @specialtys
|
16
|
+
end
|
17
|
+
|
18
|
+
def new
|
19
|
+
@specialty = Specialty.new
|
20
|
+
respond_with @specialty
|
21
|
+
end
|
22
|
+
|
23
|
+
def create
|
24
|
+
@specialty = Specialty.new(specialty_params)
|
25
|
+
@specialty.save
|
26
|
+
@count = Specialty.count
|
27
|
+
respond_with @specialty
|
28
|
+
end
|
29
|
+
|
30
|
+
def edit
|
31
|
+
end
|
32
|
+
|
33
|
+
def update
|
34
|
+
@specialty.update(specialty_params)
|
35
|
+
respond_with @specialty
|
36
|
+
end
|
37
|
+
|
38
|
+
def destroy
|
39
|
+
@specialty.destroy
|
40
|
+
@count = Specialty.count
|
41
|
+
respond_with @specialty
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def set_specialty
|
47
|
+
@specialty = Specialty.find(params[:id])
|
48
|
+
end
|
49
|
+
|
50
|
+
def load_data
|
51
|
+
@departments = Department.all
|
52
|
+
end
|
53
|
+
|
54
|
+
def specialty_params
|
55
|
+
params.require(:specialty).permit(attributes)
|
56
|
+
end
|
57
|
+
|
58
|
+
def attributes
|
59
|
+
%i(name description major_only department_id)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
module Gaku
|
2
|
+
module Admin
|
3
|
+
class StatesController < Admin::BaseController
|
4
|
+
|
5
|
+
#load_and_authorize_resource class: State
|
6
|
+
|
7
|
+
respond_to :js, only: %i( new create edit update destroy country_states )
|
8
|
+
respond_to :html, only: %i( index edit update )
|
9
|
+
|
10
|
+
before_action :set_state, only: %i( edit show update destroy )
|
11
|
+
before_action :set_countries
|
12
|
+
|
13
|
+
def country_states
|
14
|
+
if params[:state][:country_iso].empty?
|
15
|
+
@country = set_default_country
|
16
|
+
set_count @country
|
17
|
+
if @country
|
18
|
+
respond_with @country
|
19
|
+
else
|
20
|
+
render nothing: true
|
21
|
+
end
|
22
|
+
else
|
23
|
+
@country = Country.where(iso: params[:state][:country_iso]).first
|
24
|
+
@states = @country.states
|
25
|
+
set_count @country
|
26
|
+
respond_with @country
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def destroy
|
31
|
+
@state.destroy
|
32
|
+
respond_with @state
|
33
|
+
end
|
34
|
+
|
35
|
+
def new
|
36
|
+
@state = State.new
|
37
|
+
respond_with @state
|
38
|
+
end
|
39
|
+
|
40
|
+
def create
|
41
|
+
@state = State.new(state_params)
|
42
|
+
@state.save
|
43
|
+
respond_with @state
|
44
|
+
end
|
45
|
+
|
46
|
+
def edit
|
47
|
+
end
|
48
|
+
|
49
|
+
def update
|
50
|
+
@state.update(state_params)
|
51
|
+
respond_with @state
|
52
|
+
end
|
53
|
+
|
54
|
+
def index
|
55
|
+
@country = set_default_country
|
56
|
+
set_count @country
|
57
|
+
respond_with @country
|
58
|
+
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def state_params
|
63
|
+
params.require(:state).permit(attributes)
|
64
|
+
end
|
65
|
+
|
66
|
+
def attributes
|
67
|
+
%i( name abbr name_ascii code country_iso )
|
68
|
+
end
|
69
|
+
|
70
|
+
def set_state
|
71
|
+
@state = State.find(params[:id])
|
72
|
+
end
|
73
|
+
|
74
|
+
def set_countries
|
75
|
+
@countries = Country.all
|
76
|
+
end
|
77
|
+
|
78
|
+
def set_count(object)
|
79
|
+
@count = object.states.count unless object.nil?
|
80
|
+
end
|
81
|
+
|
82
|
+
def country_preset
|
83
|
+
Preset.address('country')
|
84
|
+
end
|
85
|
+
|
86
|
+
def set_default_country
|
87
|
+
Country.where(iso: country_preset).first
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
module Gaku
|
2
|
+
module Admin
|
3
|
+
class TemplatesController < Admin::BaseController
|
4
|
+
|
5
|
+
responders :collection
|
6
|
+
|
7
|
+
respond_to :js, only: %i( destroy )
|
8
|
+
respond_to :html, only: %i( new edit index update create )
|
9
|
+
|
10
|
+
before_action :set_template, only: %i( download edit update destroy )
|
11
|
+
|
12
|
+
def new
|
13
|
+
@template = Template.new
|
14
|
+
end
|
15
|
+
|
16
|
+
def create
|
17
|
+
@template = Template.new(template_params)
|
18
|
+
if @template.save
|
19
|
+
set_count
|
20
|
+
respond_with @template, location: admin_templates_path
|
21
|
+
else
|
22
|
+
render :new
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def edit
|
27
|
+
respond_with @template
|
28
|
+
end
|
29
|
+
|
30
|
+
def update
|
31
|
+
@template.update(template_params)
|
32
|
+
respond_with @template, location: admin_templates_path
|
33
|
+
end
|
34
|
+
|
35
|
+
def download
|
36
|
+
send_file @template.file.path
|
37
|
+
end
|
38
|
+
|
39
|
+
def index
|
40
|
+
@templates = Template.all
|
41
|
+
set_count
|
42
|
+
respond_with @templates
|
43
|
+
end
|
44
|
+
|
45
|
+
def destroy
|
46
|
+
@template.destroy
|
47
|
+
set_count
|
48
|
+
respond_with @template
|
49
|
+
end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def set_count
|
54
|
+
@count = Template.count
|
55
|
+
end
|
56
|
+
|
57
|
+
def set_template
|
58
|
+
@template = Template.find(params[:id])
|
59
|
+
end
|
60
|
+
|
61
|
+
def template_params
|
62
|
+
params.require(:template).permit(attributes)
|
63
|
+
end
|
64
|
+
|
65
|
+
def attributes
|
66
|
+
%i( name context locked file )
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
module Gaku
|
2
|
+
class Admin::UsersController < Admin::BaseController
|
3
|
+
|
4
|
+
#load_and_authorize_resource class: User
|
5
|
+
|
6
|
+
respond_to :js, only: %i( new create edit update destroy )
|
7
|
+
respond_to :html, only: :index
|
8
|
+
|
9
|
+
before_action :set_user, only: %i( edit update destroy )
|
10
|
+
before_action :set_roles
|
11
|
+
|
12
|
+
def index
|
13
|
+
@users = User.all.page(params[:page])
|
14
|
+
@count = User.count
|
15
|
+
respond_with @users
|
16
|
+
end
|
17
|
+
|
18
|
+
def new
|
19
|
+
@user = User.new
|
20
|
+
respond_with @user
|
21
|
+
end
|
22
|
+
|
23
|
+
def create
|
24
|
+
@user = User.new(user_params)
|
25
|
+
@user.save
|
26
|
+
save_user_roles
|
27
|
+
@count = User.count
|
28
|
+
respond_with @user
|
29
|
+
end
|
30
|
+
|
31
|
+
def edit
|
32
|
+
end
|
33
|
+
|
34
|
+
def update
|
35
|
+
clean_password
|
36
|
+
save_user_roles
|
37
|
+
@user.update(user_params)
|
38
|
+
respond_with @user
|
39
|
+
end
|
40
|
+
|
41
|
+
def destroy
|
42
|
+
@user.destroy
|
43
|
+
@count = User.count
|
44
|
+
respond_with @user
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def set_user
|
50
|
+
@user = User.find(params[:id])
|
51
|
+
end
|
52
|
+
|
53
|
+
def user_params
|
54
|
+
params.require(:user).permit(attributes)
|
55
|
+
end
|
56
|
+
|
57
|
+
def attributes
|
58
|
+
[:login, :username, :email, :password, :password_confirmation, :remember_me, :locale, { role_ids: [] } ]
|
59
|
+
end
|
60
|
+
|
61
|
+
def set_roles
|
62
|
+
@roles = Role.all
|
63
|
+
end
|
64
|
+
|
65
|
+
def save_user_roles
|
66
|
+
if params[:user][:role_ids]
|
67
|
+
@user.roles.destroy_all
|
68
|
+
Role.all.each do |role|
|
69
|
+
if params[:user][:role_ids].include?(role.id.to_s)
|
70
|
+
@user.roles << role
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def clean_password
|
77
|
+
params[:user].delete(:password) if params[:user][:password].blank?
|
78
|
+
params[:user].delete(:password_confirmation) if params[:user][:password_confirmation].blank?
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Gaku
|
2
|
+
class StatesController < CoreController
|
3
|
+
respond_to :js, :json
|
4
|
+
|
5
|
+
def index
|
6
|
+
if params[:country_id]
|
7
|
+
@country = Country.find(params[:country_id])
|
8
|
+
@states = State.where(country_iso: @country.iso)
|
9
|
+
.order('name asc')
|
10
|
+
else
|
11
|
+
@states = State.all
|
12
|
+
end
|
13
|
+
|
14
|
+
respond_with @states
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Gaku
|
2
|
+
module SharedHelper
|
3
|
+
|
4
|
+
def can_edit?
|
5
|
+
%w( edit create update ).include? controller.action_name
|
6
|
+
end
|
7
|
+
|
8
|
+
def genders
|
9
|
+
{ t(:'gender.female') => false, t(:'gender.male') => true }
|
10
|
+
end
|
11
|
+
|
12
|
+
def state_load(object)
|
13
|
+
object.country.nil? ? Gaku::State.none : object.country.states
|
14
|
+
end
|
15
|
+
|
16
|
+
def disabled?(object)
|
17
|
+
object.new_record? || object.country.states.blank?
|
18
|
+
end
|
19
|
+
|
20
|
+
def render_flash
|
21
|
+
escape_javascript(render 'gaku/shared/flash', flash: flash)
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
td = simple_grade_type.name
|
2
|
+
td = simple_grade_type.max_score
|
3
|
+
td = simple_grade_type.passing_score
|
4
|
+
td = simple_grade_type.school
|
5
|
+
td = simple_grade_type.grading_method
|
6
|
+
td
|
7
|
+
= ajax_link_to_edit [:edit, :admin, simple_grade_type]
|
8
|
+
= ajax_link_to_delete [:admin, simple_grade_type]
|
@@ -0,0 +1,7 @@
|
|
1
|
+
= f.text_field :name, label: t(:'simple_grade_type.name')
|
2
|
+
= f.number_field :max_score, label: t(:'simple_grade_type.max_score')
|
3
|
+
= f.number_field :passing_score, label: t(:'simple_grade_type.passing_score')
|
4
|
+
|
5
|
+
|
6
|
+
= f.select :school_id, options_from_collection_for_select(@schools, :id, :name), {prompt: t(:'school.choose')}, label: t(:'school.plural')
|
7
|
+
= f.select :grading_method_id, options_from_collection_for_select(@grading_methods, :id, :name), {prompt: t(:'grading_method.choose')}, label: t(:'grading_method.plural')
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-simple-grade-types-index tbody').append('<%= j render("simple_grade_type", {simple_grade_type: @simple_grade_type}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-simple-grade-type').slide();
|
4
|
+
$('#new-admin-simple-grade-type-link').show();
|
5
|
+
|
6
|
+
$('.admin-simple-grade-types-count').html("<%= print_count(@count, t(:'simple_grade_type.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,23 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-simple-grade-types-count' do
|
4
|
+
= print_count @count, t(:'simple_grade_type.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'simple_grade_type.add'), [:new, :admin, :simple_grade_type], id: 'new-admin-simple-grade-type-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-simple-grade-type.d-none
|
10
|
+
|
11
|
+
#admin-simple-grade-types
|
12
|
+
= table_for 'admin-simple-grade-types-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'simple_grade_type.singular')
|
16
|
+
= th t(:'simple_grade_type.max_score')
|
17
|
+
= th t(:'simple_grade_type.passing_score')
|
18
|
+
= th t(:'school.singular')
|
19
|
+
= th t(:'grading_method.singular')
|
20
|
+
= th_actions 2
|
21
|
+
tbody
|
22
|
+
= render partial: 'gaku/admin/achievements/simple_grade_types/simple_grade_type', collection: @simple_grade_types, as: :simple_grade_type
|
23
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
td = attendance_type.name
|
2
|
+
td = color_code attendance_type.color_code
|
3
|
+
td = attendance_type.credit_rate
|
4
|
+
td = boolean_image attendance_type.counted_absent
|
5
|
+
td = boolean_image attendance_type.disable_credit
|
6
|
+
td = boolean_image attendance_type.auto_credit
|
7
|
+
td
|
8
|
+
= ajax_link_to_edit [:edit, :admin, attendance_type]
|
9
|
+
= ajax_link_to_delete [:admin, attendance_type]
|
@@ -0,0 +1,6 @@
|
|
1
|
+
= f.text_field :name, label: t(:'attendance_type.name')
|
2
|
+
= f.text_field :color_code, label: t(:'attendance_type.color_code')
|
3
|
+
= f.text_field :credit_rate, label: t(:'attendance_type.credit_rate')
|
4
|
+
= f.check_box :counted_absent, label: t(:'attendance_type.counted_absent')
|
5
|
+
= f.check_box :disable_credit, label: t(:'attendance_type.disable_credit')
|
6
|
+
= f.check_box :auto_credit, label: t(:'attendance_type.auto_credit')
|