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,22 @@
|
|
1
|
+
#admin-school-year-semesters
|
2
|
+
= index_header do
|
3
|
+
#new-admin-school-year-semester-errors
|
4
|
+
#new-admin-school-year-semester.d-none
|
5
|
+
|
6
|
+
.pull-left
|
7
|
+
= count_div 'admin-school-year-semesters-count' do
|
8
|
+
= print_count @school_year.semesters.count, t(:'semester.list')
|
9
|
+
.pull-right
|
10
|
+
= ajax_link_to_new t(:'semester.add'), [:new, :admin, @school_year, :semester], id: 'new-admin-school-year-semester-link'
|
11
|
+
= hr
|
12
|
+
|
13
|
+
= index_body do
|
14
|
+
= table_for 'admin-school-year-semesters-index' do
|
15
|
+
thead
|
16
|
+
tr
|
17
|
+
= th t(:'semester.starting')
|
18
|
+
= th t(:'semester.ending')
|
19
|
+
= th t(:'semester.duration')
|
20
|
+
= th_actions 3
|
21
|
+
tbody
|
22
|
+
= render partial: 'gaku/admin/school_years/semesters/semester', collection: @school_year.semesters, as: :semester
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%- if @semester.valid? %>
|
2
|
+
$('#admin-school-year-semesters-index tbody').append('<%= j render("semester", {semester: @semester}) %>');
|
3
|
+
$('#new-admin-school-year-semester').slide();
|
4
|
+
$('#new-admin-school-year-semester-link').show();
|
5
|
+
showNotice("<%= render_flash %>");
|
6
|
+
$('.admin-school-year-semesters-count').html("<%= print_count(@count, t(:'semester.list')) %>");
|
7
|
+
$('#new-admin-school-year-semester-errors').html(' ')
|
8
|
+
<%- else %>
|
9
|
+
$('#new-admin-school-year-semester-errors').html('<%= j render("gaku/shared/errors", {target: @semester}) %>')
|
10
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%- if @semester.valid? %>
|
2
|
+
$('tr#semester-<%= @semester.id %>').html('<%= j render("fields", {semester: @semester}) %>');
|
3
|
+
$("#edit-school-year-semester-modal").modal("hide");
|
4
|
+
showNotice("<%= render_flash %>");
|
5
|
+
$('#edit-school-year-semester-modal-error').html('')
|
6
|
+
<%- else %>
|
7
|
+
$('#edit-school-year-semester-modal-error').html('<%= j render("gaku/shared/errors", {target: @semester}) %>')
|
8
|
+
<% end %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= content_for :show_header do
|
2
|
+
= t(:'school_year.show')
|
3
|
+
=well_div do
|
4
|
+
=render 'show_table'
|
5
|
+
|
6
|
+
=hr
|
7
|
+
|
8
|
+
= well_div do
|
9
|
+
=render 'gaku/admin/school_years/semesters/semesters'
|
10
|
+
|
11
|
+
=hr
|
12
|
+
.row
|
13
|
+
.col-md-12
|
14
|
+
= link_to_back admin_school_years_path
|
15
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%- if @school_year.valid? %>
|
2
|
+
$('tr#school-year-<%= @school_year.id %>').html('<%= j render("fields", {school_year: @school_year}) %>');
|
3
|
+
$("#edit-school-year-modal").modal("hide");
|
4
|
+
showNotice("<%= render_flash %>");
|
5
|
+
$('#edit-school-year-modal-errors').html('')
|
6
|
+
<%- else %>
|
7
|
+
$('#edit-school-year-modal-errors').html('<%= j render("gaku/shared/errors", {target: @school_year}) %>')
|
8
|
+
<% end %>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= f.text_field :name, label: t(:'school.name')
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :code, label: t(:'school.code')
|
6
|
+
|
7
|
+
.row
|
8
|
+
.col-md-6
|
9
|
+
= f.text_field :founded, label: t(:'school.founded')
|
10
|
+
.col-md-6
|
11
|
+
= f.text_field :grades, label: t(:'school.grades')
|
12
|
+
|
13
|
+
.row
|
14
|
+
.col-md-6
|
15
|
+
= f.text_field :principal, label: t(:'school.principal')
|
16
|
+
.col-md-6
|
17
|
+
= f.text_field :vice_principal, label: t(:'school.vice_principal')
|
18
|
+
|
19
|
+
.row
|
20
|
+
.col-md-12
|
21
|
+
= f.text_field :slogan, label: t(:'school.slogan')
|
22
|
+
|
23
|
+
.row
|
24
|
+
.col-md-12
|
25
|
+
= f.text_area :description, size: "2x3", label: t(:'school.description')
|
@@ -0,0 +1,35 @@
|
|
1
|
+
tr
|
2
|
+
th.active rowspan="2" width="15%" = t(:'school.name')
|
3
|
+
th rowspan=2
|
4
|
+
h2
|
5
|
+
= school.name
|
6
|
+
|
7
|
+
th.active width="10%" = t(:'school.code')
|
8
|
+
= school.grades
|
9
|
+
td width="15%"
|
10
|
+
th.active rowspan="6" width="222px"
|
11
|
+
= render 'gaku/admin/shared/picture', resource: school
|
12
|
+
|
13
|
+
tr
|
14
|
+
th.active = t(:'school.campuses')
|
15
|
+
td = school.campuses.count
|
16
|
+
tr
|
17
|
+
th.active = t(:'school.slogan')
|
18
|
+
td colspan="3" = school.slogan
|
19
|
+
tr
|
20
|
+
th.active = t(:'school.founded')
|
21
|
+
td colspan="3" = school.founded
|
22
|
+
tr
|
23
|
+
th.active = t(:'school.principal')
|
24
|
+
td colspan="3" = school.principal
|
25
|
+
tr
|
26
|
+
th.active = t(:'school.vice_principal')
|
27
|
+
td colspan="3" = school.vice_principal
|
28
|
+
tr
|
29
|
+
th.active = t(:'school.grades')
|
30
|
+
td colspan="4" = school.grades
|
31
|
+
-if school.primary?
|
32
|
+
tr
|
33
|
+
th.active = t(:'school_level.plural')
|
34
|
+
td colspan="4" = comma_separated_list(school.levels)
|
35
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-12
|
3
|
+
ul.nav.nav-tabs.nav-justified
|
4
|
+
li.active
|
5
|
+
a#admin-school-campuses-tab-link data-toggle="tab" href="#campuses"
|
6
|
+
= print_count @school.campuses.count, t(:'campus.plural')
|
7
|
+
li
|
8
|
+
a#admin-school-programs-tab-link data-toggle="tab" href="#programs"
|
9
|
+
= print_count @school.programs.count, t(:'program.plural')
|
10
|
+
|
11
|
+
.tab-content
|
12
|
+
#campuses.tab-pane.active
|
13
|
+
= render 'gaku/admin/schools/campuses/campuses'
|
14
|
+
#programs.tab-pane
|
15
|
+
= render 'gaku/admin/schools/programs/programs'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#admin-school-campuses
|
2
|
+
= index_header do
|
3
|
+
#new-admin-school-campus.d-none
|
4
|
+
|
5
|
+
.pull-left
|
6
|
+
= count_div 'admin-school-campuses-count' do
|
7
|
+
= print_count @school.campuses.count, t(:'campus.list')
|
8
|
+
.pull-right
|
9
|
+
= ajax_link_to_new t(:'campus.add'), [:new, :admin, @school, :campus], id: 'new-admin-school-campus-link' if can_edit?
|
10
|
+
= hr
|
11
|
+
|
12
|
+
= index_body do
|
13
|
+
= table_for 'admin-school-campuses-index' do
|
14
|
+
thead
|
15
|
+
tr
|
16
|
+
= th_icon 'home'
|
17
|
+
= th t(:'campus.name')
|
18
|
+
- if can_edit?
|
19
|
+
= th_actions 2
|
20
|
+
- else
|
21
|
+
= th_actions 1
|
22
|
+
tbody
|
23
|
+
= render partial: 'gaku/admin/schools/campuses/campus', collection: @school.campuses, as: 'campus'
|
@@ -0,0 +1 @@
|
|
1
|
+
= f.text_field :name, label: t(:'campus.name')
|
@@ -0,0 +1,8 @@
|
|
1
|
+
= image_tag campus.picture.url(:thumb), id: "avatar-picture", class: "img-thumbnail"
|
2
|
+
|
3
|
+
- if can_edit?
|
4
|
+
.row.mt-m
|
5
|
+
.col-md-12
|
6
|
+
= link_to_upload_image 'JavaScript:void(0);', method: :get, id: "upload-picture-link"
|
7
|
+
#upload-picture.d-none
|
8
|
+
= render 'upload_picture', campus: campus
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tr
|
2
|
+
th.active rowspan="2" width="15%" = t(:'campus.singular')
|
3
|
+
th rowspan=2
|
4
|
+
h2 = @campus.name
|
5
|
+
th.active width="15%" = t(:'school.singular')
|
6
|
+
td width="15%"
|
7
|
+
h2 = @school.name
|
8
|
+
th.active rowspan="6" width="222px"
|
9
|
+
= render 'picture', campus: @campus
|
10
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-12
|
3
|
+
ul.nav.nav-tabs.nav-justified
|
4
|
+
li.active
|
5
|
+
a#admin-school-campus-addresses-tab-link data-toggle="tab" href="#addresses"
|
6
|
+
= print_count campus.addresses_count, t(:'address.plural')
|
7
|
+
li
|
8
|
+
a#admin-school-campus-contacts-tab-link data-toggle="tab" href="#contacts"
|
9
|
+
= print_count campus.contacts_count, t(:'contact.plural')
|
10
|
+
|
11
|
+
.tab-content
|
12
|
+
#addresses.tab-pane.active
|
13
|
+
= render 'gaku/admin/schools/campuses/addresses/addresses', campus: campus
|
14
|
+
#contacts.tab-pane
|
15
|
+
= render 'gaku/admin/schools/campuses/contacts/contacts', campus: campus
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- unless address.nil?
|
2
|
+
tr id="address-#{address.id}"
|
3
|
+
= render 'gaku/admin/schools/campuses/addresses/fields', address: address
|
4
|
+
- if can_edit?
|
5
|
+
td
|
6
|
+
= ajax_link_to_edit [:edit, :admin, @school, @campus, address]
|
7
|
+
= ajax_link_to_delete [:admin, @school, @campus, address]
|
@@ -0,0 +1,24 @@
|
|
1
|
+
#admin-school-campus-addresses
|
2
|
+
= index_header do
|
3
|
+
#new-admin-school-campus-address.d-none
|
4
|
+
.pull-left
|
5
|
+
= count_div '' do
|
6
|
+
= t(:'address.singular')
|
7
|
+
.pull-right
|
8
|
+
= ajax_link_to_new t(:'address.add'), [:new, :admin, @school, @campus, :address], id: 'new-admin-school-campus-address-link', class: @campus.address.nil? ? "btn btn-primary" : 'btn btn-primary d-none' if can_edit?
|
9
|
+
= hr
|
10
|
+
|
11
|
+
= index_body do
|
12
|
+
= table_for 'admin-school-campus-addresses-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'address.title')
|
16
|
+
= th t(:'address.country')
|
17
|
+
= th t(:'address.zipcode')
|
18
|
+
= th t(:'address.state')
|
19
|
+
= th t(:'address.city')
|
20
|
+
= th t(:'address.address1')
|
21
|
+
= th t(:'address.address2')
|
22
|
+
= th_actions 2 if can_edit?
|
23
|
+
tbody
|
24
|
+
= render partial: 'gaku/admin/schools/campuses/addresses/address', locals: {address: @campus.address}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-12
|
3
|
+
= f.text_field :title, label: t(:'address.title')
|
4
|
+
|
5
|
+
.row
|
6
|
+
.col-md-3
|
7
|
+
= f.select :country_id, options_from_collection_for_select(@countries, :id, :name) , { prompt: t(:'address.choose_country'), selected: f.object.country_id || Gaku::Preset.address('country') }, id: "country_dropdown", label: t(:'address.country')
|
8
|
+
.col-md-3
|
9
|
+
#state-dropdown
|
10
|
+
= f.collection_select :state_id, state_load(f.object), :id, :name, { prompt: t(:'address.state.choose')} , disabled: disabled?(f.object), label: t(:'address.state')
|
11
|
+
|
12
|
+
.col-md-3
|
13
|
+
= f.text_field :zipcode, label: t(:'address.zipcode')
|
14
|
+
.col-md-3
|
15
|
+
button.col-md-12.btn.btn-primary = t(:'address.search')
|
16
|
+
|
17
|
+
.row
|
18
|
+
.col-md-3
|
19
|
+
= f.text_field :city, value: f.object.city || Gaku::Preset.address('city'), label: t(:'address.city')
|
20
|
+
.col-md-3
|
21
|
+
= f.text_field :address1, label: t(:'address.address1')
|
22
|
+
.col-md-3
|
23
|
+
= f.text_field :address2, label: t(:'address.address2')
|
24
|
+
|
25
|
+
javascript:
|
26
|
+
var state_preset = "#{Gaku::Preset.address('state')}"
|
@@ -0,0 +1,5 @@
|
|
1
|
+
= modal_for 'edit-address-modal' do
|
2
|
+
= modal_form_for [:admin, @school, @campus, @address], resource: 'admin-school-campus-address' do |f|
|
3
|
+
= hidden_field_tag :campus_id, @campus.id
|
4
|
+
= render 'form_fields', f: f
|
5
|
+
= buttons_for @address, resource: 'admin-school-campus-address'
|
@@ -0,0 +1,4 @@
|
|
1
|
+
//edit from index
|
2
|
+
$('tr#address-<%= @address.id %>').html('<%= j render("gaku/admin/schools/campuses/addresses/address_row_fields", {address: @address, target: [@student, @guardian, @address]}) %>');
|
3
|
+
$("#edit-address-modal").modal("hide");
|
4
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
#admin-school-campus-contacts
|
3
|
+
= index_header do
|
4
|
+
#new-admin-school-campus-contact.d-none
|
5
|
+
.pull-left
|
6
|
+
= count_div "admin-school-campus-contacts-count" do
|
7
|
+
= print_count campus.contacts_count, t(:'contact.list')
|
8
|
+
.pull-right
|
9
|
+
= ajax_link_to_new t(:'contact.add'), [:new, :admin, @school, campus, :contact], id: 'new-admin-school-campus-contact-link' if can_edit?
|
10
|
+
|
11
|
+
= index_body do
|
12
|
+
= table_for "admin-school-campus-contacts-index" do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th_icon 'home'
|
16
|
+
= th t(:'contact.contact_type')
|
17
|
+
= th t(:'contact.data')
|
18
|
+
= th t(:'contact.details')
|
19
|
+
= th t(:'contact.emergency')
|
20
|
+
= th_actions 2 if can_edit?
|
21
|
+
tbody
|
22
|
+
= render partial: 'gaku/admin/schools/campuses/contacts/contact', collection: campus.contacts, as: :contact
|
@@ -0,0 +1 @@
|
|
1
|
+
= ajax_link_to_delete [:admin, @school, @campus, contact]
|
@@ -0,0 +1,12 @@
|
|
1
|
+
= render 'gaku/admin/schools/campuses/contacts/primary_field', contact: contact
|
2
|
+
|
3
|
+
td = contact.name
|
4
|
+
td = contact.data
|
5
|
+
td = contact.details
|
6
|
+
td
|
7
|
+
= t(:'contact.emergency') if contact.emergency?
|
8
|
+
|
9
|
+
- if can_edit?
|
10
|
+
td
|
11
|
+
= ajax_link_to_edit [:edit, :admin, @school, @campus, contact]
|
12
|
+
= render 'gaku/admin/schools/campuses/contacts/delete_link', contact: contact
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= f.select :contact_type_id, options_from_collection_for_select(@contact_types, :id, :name), {prompt: t(:'contact_type.choose')}, label: t(:'contact_type.plural')
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :data, label: t(:'contact.data')
|
6
|
+
|
7
|
+
.row
|
8
|
+
.col-md-12
|
9
|
+
= f.text_field :details, label: t(:'contact.details')
|
10
|
+
.row
|
11
|
+
.col-md-6
|
12
|
+
= f.check_box :primary, label: t(:'contact.primary')
|
13
|
+
.col-md-6
|
14
|
+
= f.check_box :emergency, label: t(:'contact.emergency')
|
@@ -0,0 +1,5 @@
|
|
1
|
+
= modal_for 'edit-contact-modal' do
|
2
|
+
= modal_form_for [:admin, @school, @campus, @contact], resource: 'admin-school-campus-contact' do |f|
|
3
|
+
= hidden_field_tag :campus_id, @campus.id
|
4
|
+
= render 'form_fields', f: f
|
5
|
+
= buttons_for @contact, resource: 'admin-school-campus-contact'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
td class="primary-contact" width="28px"
|
2
|
+
- if can_edit?
|
3
|
+
- if contact.primary?
|
4
|
+
= ajax_link_to_make_primary [:make_primary, :admin, @school, @campus, contact], method: :patch, id: 'set-primary-link', class: 'btn btn-xs btn-primary make-primary'
|
5
|
+
- else
|
6
|
+
= ajax_link_to_make_primary [:make_primary, :admin, @school, @campus, contact], method: :patch, id: 'set-primary-link', class: 'btn btn-xs btn-default'
|
7
|
+
|
8
|
+
- else
|
9
|
+
- if contact.primary?
|
10
|
+
span.btn.btn-xs.btn-primary
|
11
|
+
= primary_checkbox
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
|
3
|
+
$('#admin-school-campus-contacts-index tbody').append('<%= j render("contact", {contact: @contact}) %>');
|
4
|
+
$("#new-admin-school-campus-contact-link").show();
|
5
|
+
$('#new-admin-school-campus-contact').slide();
|
6
|
+
|
7
|
+
$('.admin-school-campus-contacts-count').html("<%= print_count(@count, t(:'contact.list')) %>");
|
8
|
+
$('#admin-school-campus-contacts-tab-link').html("<%= print_count(@count, t(:'contact.plural')) %>");
|
9
|
+
|
10
|
+
<% if @contact.primary? %>
|
11
|
+
$('#admin-school-campus-contacts-index tbody tr').each(function(){
|
12
|
+
$(this).children('td.primary-contact').find('a').removeClass('btn-primary')
|
13
|
+
});
|
14
|
+
$("#contact-<%= @contact.id %>").children('td.primary-contact')
|
15
|
+
.find('a')
|
16
|
+
.addClass('btn-primary')
|
17
|
+
|
18
|
+
|
19
|
+
$('#primary-contact').html("<%= @contact.contact_type.name + ':' + @contact.data + '(' + @contact.details + ')' %>");
|
20
|
+
<% end %>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
|
3
|
+
<%-if @campus.contacts.reload.any? && @contact.primary? %>
|
4
|
+
$('#admin-school-campus-contacts-index').find('#contact-<%= @campus.contacts.first.id %> #set-primary-link').addClass('btn-primary');
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
$('.admin-school-campus-contacts-count').html("<%= print_count(@count, t(:'contact.list')) %>");
|
8
|
+
$('#admin-school-campus-contacts-tab-link').html("<%= print_count(@count, t(:'contact.plural')) %>");
|
@@ -0,0 +1,8 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
|
3
|
+
$('#admin-school-campus-contacts-tab-link').html("<%= print_count(@count, t(:'contact.plural')) %>");
|
4
|
+
$(".admin-school-campus-contacts-count").html("<%= print_count(@count, t(:'contact.list')) %>");
|
5
|
+
|
6
|
+
<%- if @campus.contacts.reload.any? & @primary_contact %>
|
7
|
+
$('#contact-<%= @campus.contacts.first.id %> td a').addClass('btn-primary');
|
8
|
+
<% end %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
|
3
|
+
$('#contact-<%= @contact.id %>').html('<%= j render("fields", {contact: @contact}) %>');
|
4
|
+
$(".modal#edit-contact-modal").modal("hide");
|
5
|
+
|
6
|
+
<% if @contact.primary? %>
|
7
|
+
$('#admin-school-campus-contacts-index tbody tr').each(function(){
|
8
|
+
$(this).children('td.primary-contact').find('a').removeClass('btn-primary')
|
9
|
+
});
|
10
|
+
$("#contact-<%= @contact.id %>").children('td.primary-contact')
|
11
|
+
.find('a')
|
12
|
+
.addClass('btn-primary')
|
13
|
+
|
14
|
+
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|
2
|
+
|
3
|
+
$('#admin-school-campuses-index tbody').append('<%= j render("campus", {campus: @campus}) %>');
|
4
|
+
|
5
|
+
$('#new-admin-school-campus').slide();
|
6
|
+
$('#new-admin-school-campus-link').show();
|
7
|
+
|
8
|
+
$('.admin-school-campuses-count').html("<%= print_count(@count, t(:'campus.list')) %>");
|
9
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-9
|
3
|
+
= normal_form_for [:admin, @school, @campus], label: 'nil' do |f|
|
4
|
+
= render 'form_fields', f: f, school: @school
|
5
|
+
= buttons_for @campus, resource: 'admin-school-campus'
|
6
|
+
|
7
|
+
.col-md-3
|
8
|
+
= render 'picture', campus: @campus
|
9
|
+
|
10
|
+
hr
|
11
|
+
|
12
|
+
= render 'tabs', campus: @campus, school: @school
|
13
|
+
|
14
|
+
= footer do
|
15
|
+
.col-md-9
|
16
|
+
= link_to_index [:edit, :admin, @school, @campus]
|
17
|
+
.col-md-3
|
18
|
+
= link_to_modal_delete
|
19
|
+
/= render 'gaku/shared/delete_modal', target: school
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= panel_for 'campus-panel' do
|
2
|
+
= panel_header 'Campus information', @campus
|
3
|
+
|
4
|
+
table.table.table-bordered.th-center
|
5
|
+
tbody
|
6
|
+
= render 'show_table'
|
7
|
+
|
8
|
+
= render 'tabs', campus: @campus, school: @school
|
9
|
+
|
10
|
+
= footer do
|
11
|
+
.col-md-12
|
12
|
+
= link_to_index admin_school_path(@school)
|
13
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-schools-index tbody').append('<%= j render("school", {school: @school}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-school').slide();
|
4
|
+
$('#new-admin-school-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-schools-count').html("<%= print_count(@count, t(:'school.list')) %>");
|
@@ -0,0 +1 @@
|
|
1
|
+
showNotice("<%= render_flash %>");
|