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,6 @@
|
|
1
|
+
$('#admin-grading-method-sets-index tbody tr').each(function(){
|
2
|
+
$(this).find('.make-primary-grading-method-set').removeClass('btn-primary')
|
3
|
+
});
|
4
|
+
|
5
|
+
$("#grading-method-set-<%= @grading_method_set.id %>").find('.make-primary-grading-method-set')
|
6
|
+
.addClass('btn-primary')
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-grading-methods-index tbody').append('<%= j render("grading_method", {grading_method: @grading_method}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-grading-method').slide();
|
4
|
+
$('#new-admin-grading-method-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-grading-methods-count').html("<%= print_count(@count, t(:'grading_method.list')) %>");
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-grading-methods-count' do
|
4
|
+
= print_count @count, t(:'grading_method.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'grading_method.add'), [:new, :admin, :grading_method], id: 'new-admin-grading-method-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-grading-method.d-none
|
10
|
+
|
11
|
+
#admin-grading-methods
|
12
|
+
= table_for 'admin-grading-methods-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'grading_method.singular')
|
16
|
+
= th t(:'grading_method.description')
|
17
|
+
= th t(:'grading_method.method')
|
18
|
+
= th_actions 2
|
19
|
+
tbody
|
20
|
+
= render partial: 'grading_method', collection: @grading_methods, as: :grading_method
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
.row
|
4
|
+
.col-md-3
|
5
|
+
= f.fields_for :address do |a|
|
6
|
+
= a.label t(:'preset.address.country')
|
7
|
+
= a.select :country, @countries, {selected: @preset['address']['country'], prompt: t(:'address.choose_country')}
|
8
|
+
|
9
|
+
.col-md-3
|
10
|
+
= f.fields_for :address do |a|
|
11
|
+
= a.label t(:'preset.address.state')
|
12
|
+
= a.text_field :state, value: @preset['address']['state']
|
13
|
+
|
14
|
+
.col-md-3
|
15
|
+
= f.fields_for :address do |a|
|
16
|
+
= a.label t(:'preset.address.city')
|
17
|
+
= a.text_field :city, value: @preset['address']['city']
|
18
|
+
|
19
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,91 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
|
4
|
+
.row
|
5
|
+
.col-md-6
|
6
|
+
= f.label t(:'name')
|
7
|
+
= f.check_box 'chooser_fields[show_name]' , {checked: preset_checked?(:show_name)}
|
8
|
+
|
9
|
+
.row
|
10
|
+
.col-md-6
|
11
|
+
= f.label t(:'middle_name')
|
12
|
+
= f.check_box 'chooser_fields[show_middle_name]' , {checked: preset_checked?(:show_middle_name)}
|
13
|
+
|
14
|
+
.row
|
15
|
+
.col-md-6
|
16
|
+
= f.label t(:'surname')
|
17
|
+
= f.check_box 'chooser_fields[show_surname]' , {checked: preset_checked?(:show_surname)}
|
18
|
+
|
19
|
+
.row
|
20
|
+
.col-md-6
|
21
|
+
= f.label t(:'birth_date')
|
22
|
+
= f.check_box 'chooser_fields[show_birth_date]' , {checked: preset_checked?(:show_birth_date)}
|
23
|
+
|
24
|
+
.row
|
25
|
+
.col-md-6
|
26
|
+
= f.label t(:'gender.label')
|
27
|
+
= f.check_box 'chooser_fields[show_gender]' , {checked: preset_checked?(:show_gender)}
|
28
|
+
|
29
|
+
.row
|
30
|
+
.col-md-6
|
31
|
+
= f.label t(:'user.singular')
|
32
|
+
= f.check_box 'chooser_fields[show_user]' , {checked: preset_checked?(:show_user)}
|
33
|
+
|
34
|
+
.row
|
35
|
+
.col-md-6
|
36
|
+
= f.label t(:'code')
|
37
|
+
= f.check_box 'chooser_fields[show_code]' , {checked: preset_checked?(:show_code)}
|
38
|
+
|
39
|
+
.row
|
40
|
+
.col-md-6
|
41
|
+
= f.label t(:'student.foreign_id_code')
|
42
|
+
= f.check_box 'chooser_fields[show_foreign_id_code]' , {checked: preset_checked?(:show_foreign_id_code)}
|
43
|
+
|
44
|
+
.row
|
45
|
+
.col-md-6
|
46
|
+
= f.label t(:'enrollment_status.singular')
|
47
|
+
= f.check_box 'chooser_fields[show_enrollment_status]', {checked: preset_checked?(:show_enrollment_status)}
|
48
|
+
|
49
|
+
.row
|
50
|
+
.col-md-6
|
51
|
+
= f.label t(:'class_group.name')
|
52
|
+
= f.check_box 'chooser_fields[show_class_name]', {checked: preset_checked?(:show_class_name)}
|
53
|
+
|
54
|
+
|
55
|
+
.row
|
56
|
+
.col-md-6
|
57
|
+
= f.label t(:'specialty.singular')
|
58
|
+
= f.check_box 'chooser_fields[show_specialty]', {checked: preset_checked?(:show_specialty)}
|
59
|
+
|
60
|
+
.row
|
61
|
+
.col-md-6
|
62
|
+
= f.label t(:'admitted')
|
63
|
+
= f.check_box 'chooser_fields[show_admitted]', {checked: preset_checked?(:show_admitted)}
|
64
|
+
|
65
|
+
.row
|
66
|
+
.col-md-6
|
67
|
+
= f.label t(:'graduated')
|
68
|
+
= f.check_box 'chooser_fields[show_graduated]', {checked: preset_checked?(:show_graduated)}
|
69
|
+
|
70
|
+
.row
|
71
|
+
.col-md-6
|
72
|
+
= f.label t(:'address.primary')
|
73
|
+
= f.check_box 'chooser_fields[show_primary_address]', {checked: preset_checked?(:show_primary_address)}
|
74
|
+
|
75
|
+
.row
|
76
|
+
.col-md-6
|
77
|
+
= f.label t(:'contact.primary')
|
78
|
+
= f.check_box 'chooser_fields[show_primary_contact]', {checked: preset_checked?(:show_primary_contact)}
|
79
|
+
|
80
|
+
.row
|
81
|
+
.col-md-6
|
82
|
+
= f.label t(:'contact.primary_email')
|
83
|
+
= f.check_box 'chooser_fields[show_primary_email]', {checked: preset_checked?(:show_primary_email)}
|
84
|
+
|
85
|
+
.row
|
86
|
+
.col-md-6
|
87
|
+
= f.label t(:'personal_information')
|
88
|
+
= f.check_box 'chooser_fields[show_personal_information]', {checked: preset_checked?(:show_personal_information)}
|
89
|
+
|
90
|
+
= buttons_for @preset, resource: 'admin-preset'
|
91
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
.row
|
4
|
+
.col-md-4
|
5
|
+
= f.fields_for :export_formats do |ef|
|
6
|
+
= ef.label t(:'preset.export_formats.spreadsheets')
|
7
|
+
= ef.select :spreadsheets, ['xls','xml','ods','fods', 'xlsx'], {selected: @preset['export_formats']['spreadsheets'], prompt: t(:'preset.export_formats.choose')}
|
8
|
+
|
9
|
+
.col-md-4
|
10
|
+
= f.fields_for :export_formats do |ef|
|
11
|
+
= ef.label t(:'preset.export_formats.printables')
|
12
|
+
= ef.select :printables, ['pdf', 'ps'], {selected: @preset['export_formats']['printables'], prompt: t(:'preset.export_formats.choose')}
|
13
|
+
|
14
|
+
.col-md-4
|
15
|
+
= fields_for :export_formats do |ef|
|
16
|
+
= ef.label t(:'preset.export_formats.documents')
|
17
|
+
= ef.select :documents, ['wip will be added'], {selected: @preset['export_formats']['documents'], prompt: t(:'preset.export_formats.choose')}
|
18
|
+
|
19
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
.row
|
4
|
+
.col-md-6
|
5
|
+
= f.fields_for :grading do |g|
|
6
|
+
= g.label t(:'preset.grading.grading_method')
|
7
|
+
= g.text_field :method, value: @preset['grading']['method']
|
8
|
+
|
9
|
+
.col-md-6
|
10
|
+
= f.fields_for :grading do |g|
|
11
|
+
= g.label t(:'preset.grading.grading_scheme')
|
12
|
+
= g.text_field :scheme, value: @preset['grading']['scheme']
|
13
|
+
|
14
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do |f|
|
2
|
+
.row
|
3
|
+
.col-md-6
|
4
|
+
= f.text_field :names_order, value: @preset.names_order, title: t(:'preset.names_order')
|
5
|
+
.col-md-6
|
6
|
+
p
|
7
|
+
'Information:
|
8
|
+
br
|
9
|
+
'%first - Student first name
|
10
|
+
br
|
11
|
+
'%middle - Student middle name
|
12
|
+
br
|
13
|
+
'%last - Student last name
|
14
|
+
|
15
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
.row
|
4
|
+
.col-md-2
|
5
|
+
= f.fields_for :pagination do |p|
|
6
|
+
= p.label t(:'preset.per_page.default')
|
7
|
+
= p.select :default, @per_page_values, { selected: @preset['pagination']['default'] }
|
8
|
+
|
9
|
+
.col-md-2
|
10
|
+
= f.fields_for :pagination do |p|
|
11
|
+
= p.label t(:'preset.per_page.students')
|
12
|
+
= p.select :students, @per_page_values, { selected: @preset['pagination']['students'] }
|
13
|
+
|
14
|
+
.col-md-2
|
15
|
+
= f.fields_for :pagination do |p|
|
16
|
+
= p.label t(:'preset.per_page.teachers')
|
17
|
+
= p.select :teachers, @per_page_values, { selected: @preset['pagination']['teachers'] }
|
18
|
+
|
19
|
+
|
20
|
+
.col-md-2
|
21
|
+
= f.fields_for :pagination do |p|
|
22
|
+
= p.label t(:'preset.per_page.changes')
|
23
|
+
= p.select :changes, @per_page_values, { selected: @preset['pagination']['changes'] }
|
24
|
+
|
25
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do
|
2
|
+
= fields_for :preset do |f|
|
3
|
+
.row
|
4
|
+
.col-md-3
|
5
|
+
= f.fields_for :person do |p|
|
6
|
+
= p.label t(:'preset.person.gender')
|
7
|
+
= p.select :gender, genders, {selected: @preset['person']['gender'], prompt: t(:'gender.choose')}
|
8
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
= normal_form_for [:admin, @preset], resource: 'admin-preset', label: 'nil' do |f|
|
2
|
+
.row
|
3
|
+
.col-md-6
|
4
|
+
= f.text_field 'student[id_code]', value: @preset.student['id_code'], title: t(:'preset.student.id_code')
|
5
|
+
.col-md-6
|
6
|
+
p
|
7
|
+
'Information:
|
8
|
+
br
|
9
|
+
'%specialty- Student specialty
|
10
|
+
br
|
11
|
+
'%year - Student enrollment year
|
12
|
+
br
|
13
|
+
'%semester - Student semester
|
14
|
+
br
|
15
|
+
'%yearly_serial - Student year serial
|
16
|
+
br
|
17
|
+
'%id_serial - Student id serial
|
18
|
+
|
19
|
+
= buttons_for @preset, resource: 'admin-preset'
|
@@ -0,0 +1,51 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-12
|
3
|
+
ul.nav.nav-tabs.nav-justified
|
4
|
+
li.active
|
5
|
+
a#admin-preset-pagination-tab-link data-toggle="tab" href="#pagination"
|
6
|
+
= t(:'preset.pagination')
|
7
|
+
li
|
8
|
+
a#admin-preset-names-order-tab-link data-toggle="tab" href="#names_order"
|
9
|
+
= t(:'preset.names_order')
|
10
|
+
li
|
11
|
+
a#admin-preset-locale-tab-link data-toggle="tab" href="#locale"
|
12
|
+
= t(:'preset.locale')
|
13
|
+
li
|
14
|
+
a#admin-preset-person-tab-link data-toggle="tab" href="#person"
|
15
|
+
= t(:'preset.person.singular')
|
16
|
+
li
|
17
|
+
a#admin-preset-student-tab-link data-toggle="tab" href="#student"
|
18
|
+
= t(:'preset.student.singular')
|
19
|
+
li
|
20
|
+
a#admin-preset-address-tab-link data-toggle="tab" href="#address"
|
21
|
+
= t(:'preset.address.singular')
|
22
|
+
li
|
23
|
+
a#admin-preset-grading-tab-link data-toggle="tab" href="#grading"
|
24
|
+
= t(:'preset.grading.singular')
|
25
|
+
li
|
26
|
+
a#admin-preset-chooser-fields-tab-link data-toggle="tab" href="#chooser_fields"
|
27
|
+
= t(:'preset.chooser_field.plural')
|
28
|
+
li
|
29
|
+
a#admin-preset-export-formats-tab-link data-toggle="tab" href="#export_formats"
|
30
|
+
= t(:'preset.export_formats.plural')
|
31
|
+
|
32
|
+
.tab-content
|
33
|
+
#pagination.tab-pane.active
|
34
|
+
= render 'gaku/admin/presets/pagination'
|
35
|
+
#names_order.tab-pane
|
36
|
+
= render 'gaku/admin/presets/names_order'
|
37
|
+
#locale.tab-pane
|
38
|
+
= render 'gaku/admin/presets/locale'
|
39
|
+
#person.tab-pane
|
40
|
+
= render 'gaku/admin/presets/person'
|
41
|
+
#student.tab-pane
|
42
|
+
= render 'gaku/admin/presets/student'
|
43
|
+
#address.tab-pane
|
44
|
+
= render 'gaku/admin/presets/address'
|
45
|
+
#grading.tab-pane
|
46
|
+
= render 'gaku/admin/presets/grading'
|
47
|
+
#chooser_fields.tab-pane
|
48
|
+
= render 'gaku/admin/presets/chooser_fields'
|
49
|
+
#export_formats.tab-pane
|
50
|
+
= render 'gaku/admin/presets/export_formats'
|
51
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'tabs'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-presets-count' do
|
4
|
+
= print_count @count, t(:'preset.list')
|
5
|
+
|
6
|
+
#admin-presets
|
7
|
+
= table_for 'admin-presets-index' do
|
8
|
+
thead
|
9
|
+
tr
|
10
|
+
= th t(:'active')
|
11
|
+
= th t(:'preset.name')
|
12
|
+
= th t(:'default')
|
13
|
+
= th_actions 1
|
14
|
+
|
15
|
+
tbody
|
16
|
+
= render partial: 'gaku/admin/presets/preset', collection: @presets, as: :preset
|
@@ -0,0 +1 @@
|
|
1
|
+
= f.text_field :name, label: t(:'role.name')
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-roles-count' do
|
4
|
+
= print_count @count, t(:'role.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'role.add'), [:new, :admin, :role], id: 'new-admin-role-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-role.d-none
|
10
|
+
|
11
|
+
#admin-roles
|
12
|
+
= table_for 'admin-roles-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'role.name')
|
16
|
+
= th t(:'user.plural')
|
17
|
+
= th_actions 2
|
18
|
+
tbody
|
19
|
+
= render partial: 'gaku/admin/roles/role', collection: @roles, as: :role
|
20
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
td = l school_year.starting, format: :long
|
2
|
+
td = l school_year.ending, format: :long
|
3
|
+
td = pluralize (school_year.ending - school_year.starting).to_i, t(:'school_year.day')
|
4
|
+
td
|
5
|
+
= link_to_show [:admin, school_year]
|
6
|
+
= ajax_link_to_edit [:edit, :admin, school_year]
|
7
|
+
= ajax_link_to_delete [:admin, school_year]
|
@@ -0,0 +1,5 @@
|
|
1
|
+
.row.datepicker-form data-locale="#{I18n.locale}"
|
2
|
+
.col-md-6
|
3
|
+
= f.text_field :starting, class: 'datepicker', value: datepicker_date_format(f.object.starting), data: {:'date-format' => 'yyyy-mm-dd'}, label: t(:'school_year.starting')
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :ending, class: 'datepicker',value: datepicker_date_format(f.object.ending), data: {:'date-format' => 'yyyy-mm-dd'}, label: t(:'school_year.ending')
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%- if @school_year.valid? %>
|
2
|
+
$('#admin-school-years-index tbody').append('<%= j render("school_year", {school_year: @school_year}) %>');
|
3
|
+
$('#new-admin-school-year').slide();
|
4
|
+
$('#new-admin-school-year-link').show();
|
5
|
+
showNotice("<%= render_flash %>");
|
6
|
+
$('.admin-school-years-count').html("<%= print_count(@count, t(:'school_year.list')) %>");
|
7
|
+
$('#new-admin-school-year-errors').html('')
|
8
|
+
<%- else %>
|
9
|
+
$('#new-admin-school-year-errors').html('<%= j render("gaku/shared/errors", {target: @school_year}) %>')
|
10
|
+
<% end %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-school-years-count' do
|
4
|
+
= print_count @count, t(:'school_year.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'school_year.add'), [:new, :admin, :school_year], id: 'new-admin-school-year-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-school-year-errors
|
10
|
+
#new-admin-school-year.d-none
|
11
|
+
|
12
|
+
#admin-school-years
|
13
|
+
= table_for 'admin-school-years-index' do
|
14
|
+
thead
|
15
|
+
tr
|
16
|
+
= th t(:'school_year.starting')
|
17
|
+
= th t(:'school_year.ending')
|
18
|
+
= th t(:'school_year.duration')
|
19
|
+
= th_actions 3
|
20
|
+
tbody
|
21
|
+
= render partial: 'school_year', collection: @school_years, as: 'school_year'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- if semester.valid?
|
2
|
+
td = l semester.starting, format: :long
|
3
|
+
td = l semester.ending, format: :long
|
4
|
+
td = pluralize (semester.ending - semester.starting).to_i, t(:'semester.day')
|
5
|
+
td
|
6
|
+
= ajax_link_to_edit [:edit, :admin, @school_year, semester]
|
7
|
+
= ajax_link_to_delete [:admin, @school_year, semester]
|
@@ -0,0 +1,5 @@
|
|
1
|
+
.row.datepicker-form data-locale="#{I18n.locale}"
|
2
|
+
.col-md-6
|
3
|
+
= f.text_field :starting, class: 'datepicker', value: datepicker_date_format(f.object.starting), data: {:'date-format' => 'yyyy-mm-dd'}, label: t(:'school_year.starting')
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :ending, class: 'datepicker',value: datepicker_date_format(f.object.ending), data: {:'date-format' => 'yyyy-mm-dd'}, label: t(:'school_year.ending')
|
@@ -0,0 +1,5 @@
|
|
1
|
+
= modal_for 'edit-school-year-semester-modal' do
|
2
|
+
= modal_form_for [:admin, @school_year, semester], resource: 'admin-school-year-semester' do |f|
|
3
|
+
= modal_form_error 'edit-school-year-semester-modal-error'
|
4
|
+
= render 'form_fields', f: f
|
5
|
+
= buttons_for semester, resource: 'admin-school-year-semester'
|