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,19 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-9
|
3
|
+
= normal_form_for [:admin, @school], label: 'nil' do |f|
|
4
|
+
= render 'form_fields', f: f, school: @school
|
5
|
+
= buttons_for @school, resource: 'admin-school'
|
6
|
+
|
7
|
+
.col-md-3
|
8
|
+
= render 'gaku/admin/shared/picture', resource: @school
|
9
|
+
|
10
|
+
hr
|
11
|
+
|
12
|
+
= render 'tabs', school: @school
|
13
|
+
|
14
|
+
= footer do
|
15
|
+
.col-md-9
|
16
|
+
= link_to_index admin_schools_path
|
17
|
+
.col-md-3
|
18
|
+
= link_to_modal_delete
|
19
|
+
/= render 'gaku/shared/delete_modal', target: school
|
@@ -0,0 +1,22 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-9
|
3
|
+
= normal_nested_form_for [:admin, @school], url: {action: :update_master}, label: t(:'school.master') do |f|
|
4
|
+
= render 'form_fields', f: f
|
5
|
+
= f.fields_for :levels do |level|
|
6
|
+
= level.text_field :name, label: t(:'school_level.singular'), class: 'school-level-name'
|
7
|
+
= level.link_to_remove t(:'school_level.remove_school_level'), class: 'btn btn-danger remove-school-level'
|
8
|
+
hr
|
9
|
+
p = f.link_to_add t(:'school_level.add_school_level'), :levels, class: 'btn btn-success add-school-level'
|
10
|
+
|
11
|
+
= buttons_for @school, label: t(:'school.save'), resource: 'admin-school'
|
12
|
+
|
13
|
+
.col-md-3
|
14
|
+
= render 'gaku/admin/shared/picture', resource: @school
|
15
|
+
|
16
|
+
hr
|
17
|
+
|
18
|
+
= render 'tabs', school: @school
|
19
|
+
|
20
|
+
= footer do
|
21
|
+
.col-md-12
|
22
|
+
= link_to_back admin_school_details_path , id: 'back-admin-school-link'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-schools-count' do
|
4
|
+
= print_count @count, t(:'school.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'school.add'), [:new, :admin, :school], id: 'new-admin-school-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-school.d-none
|
10
|
+
|
11
|
+
= table_for 'admin-schools-index' do
|
12
|
+
thead
|
13
|
+
tr
|
14
|
+
= th t(:'school.code')
|
15
|
+
= th t(:'school.name')
|
16
|
+
= th t(:'school.campuses')
|
17
|
+
= th t(:'school.slogan')
|
18
|
+
= th t(:'school.description')
|
19
|
+
= th t(:'school.founded')
|
20
|
+
= th t(:'school.principal')
|
21
|
+
= th t(:'school.vice_principal')
|
22
|
+
= th t(:'school.grades')
|
23
|
+
= th_actions 2
|
24
|
+
tbody
|
25
|
+
= render partial: 'gaku/admin/schools/school', collection: @schools, as: 'school'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
td = program.name
|
2
|
+
td = program.description
|
3
|
+
td = link_to t(:'program_level.list'), [:show_program_levels,:admin, @school, program], remote: true, class: 'program-levels-list'
|
4
|
+
td = link_to t(:'program_syllabus.list'), [:show_program_syllabuses,:admin, @school, program], remote: true, class: 'program-syllabuses-list'
|
5
|
+
td = link_to t(:'program_specialty.list'), [:show_program_specialties,:admin, @school, program], remote: true, class: 'program-specialties-list'
|
6
|
+
|
7
|
+
- if can_edit?
|
8
|
+
td
|
9
|
+
= ajax_link_to_edit [:edit, :admin, @school, program]
|
10
|
+
= ajax_link_to_delete [:admin, @school, program]
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= remote_nested_form_for [:admin, @school, @program], resource: 'admin-school-program' do |f|
|
2
|
+
= render 'form_fields', f: f
|
3
|
+
= render 'gaku/admin/schools/programs/program_levels/form_fields', f: f
|
4
|
+
hr
|
5
|
+
= render 'gaku/admin/schools/programs/program_syllabuses/form_fields', f: f
|
6
|
+
hr
|
7
|
+
= render 'gaku/admin/schools/programs/program_specialties/form_fields', f: f
|
8
|
+
br
|
9
|
+
|
10
|
+
.row
|
11
|
+
.col-md-12
|
12
|
+
= buttons_for @program, resource: 'admin-school-program'
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#admin-school-programs
|
2
|
+
= index_header do
|
3
|
+
#new-admin-school-program.d-none
|
4
|
+
|
5
|
+
.pull-left
|
6
|
+
= count_div 'admin-school-programs-count' do
|
7
|
+
= print_count @school.programs.count, t(:'program.list')
|
8
|
+
.pull-right
|
9
|
+
= ajax_link_to_new t(:'program.add'), [:new, :admin, @school, :program], id: 'new-admin-school-program-link' if can_edit?
|
10
|
+
= hr
|
11
|
+
|
12
|
+
= index_body do
|
13
|
+
= table_for 'admin-school-programs-index' do
|
14
|
+
thead
|
15
|
+
tr
|
16
|
+
= th t(:'program.name')
|
17
|
+
= th t(:'program.description')
|
18
|
+
= th t(:'program.levels')
|
19
|
+
= th t(:'syllabus.plural')
|
20
|
+
= th t(:'specialty.plural')
|
21
|
+
= th_actions 2 if can_edit?
|
22
|
+
tbody
|
23
|
+
= render partial: 'gaku/admin/schools/programs/program', collection: @school.programs, as: :program
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-school-programs-index tbody').append('<%= j render("gaku/admin/schools/programs/program", {program: @program}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-school-program').slide();
|
4
|
+
$('#new-admin-school-program-link').show();
|
5
|
+
|
6
|
+
$('.admin-school-programs-count').html("<%= print_count(@count, t(:'program.list')) %>");
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,6 @@
|
|
1
|
+
= nested_header t(:'program_level.plural')
|
2
|
+
= f.fields_for :program_levels, validate: true do |level|
|
3
|
+
= level.collection_select :level_id, @levels, :id, :name, {prompt: t(:'program_level.choose')}, {id: 'program-level-select'}
|
4
|
+
= level.link_to_remove t(:'program_level.remove'), class: 'btn btn-danger remove-program-level'
|
5
|
+
hr
|
6
|
+
p = f.link_to_add t(:'program_level.add'), :program_levels, class: 'btn btn-success add-program-level'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
= index_modal_for 'show-program-levels-modal' do
|
2
|
+
= modal_header t(:'program_level.list')
|
3
|
+
= modal_body do
|
4
|
+
= table_for 'program-levels-list' do
|
5
|
+
thead
|
6
|
+
tr
|
7
|
+
th = t(:'program_level.plural')
|
8
|
+
tbody
|
9
|
+
= content_tag_for(:tr, @program.program_levels) do |level|
|
10
|
+
td = level.level.name
|
11
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
= nested_header t(:'program_specialty.plural')
|
2
|
+
= f.fields_for :program_specialties, validate: true do |specialty|
|
3
|
+
|
4
|
+
= specialty.collection_select :specialty_id, @specialties,:id, :name, { prompt: t(:'program_specialty.choose')}, {id: 'program-specialty-select'}
|
5
|
+
= specialty.link_to_remove t(:'program_specialty.remove'), class: 'btn btn-danger remove-program-specialty'
|
6
|
+
hr
|
7
|
+
p = f.link_to_add t(:'program_specialty.add'), :program_specialties, class: 'btn btn-success add-program-specialty'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= index_modal_for 'show-program-specialties-modal' do
|
2
|
+
= modal_header t(:'program_specialty.list')
|
3
|
+
= modal_body do
|
4
|
+
= table_for 'program-specialties-list' do
|
5
|
+
thead
|
6
|
+
tr
|
7
|
+
th = t(:'program_specialty.plural')
|
8
|
+
tbody
|
9
|
+
= content_tag_for(:tr, @program.program_specialties) do |specialty|
|
10
|
+
td = specialty.specialty.name
|
@@ -0,0 +1,5 @@
|
|
1
|
+
= nested_header t(:'program_syllabus.plural')
|
2
|
+
= f.fields_for :program_syllabuses, validate: true do |syllabus|
|
3
|
+
= syllabus.collection_select :syllabus_id, @syllabuses, :id, :name, {prompt: t(:'program_syllabus.choose')}, {id: 'program-syllabus-select'}
|
4
|
+
= syllabus.link_to_remove t(:'program_syllabus.remove'), class: 'btn btn-danger remove-program-syllabus'
|
5
|
+
p = f.link_to_add t(:'program_syllabus.add'), :program_syllabuses, class: 'btn btn-success add-program-syllabus'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
= index_modal_for 'show-program-syllabuses-modal' do
|
2
|
+
= modal_header t(:'program_syllabus.list')
|
3
|
+
= modal_body do
|
4
|
+
= table_for 'program-syllabuses-list' do
|
5
|
+
thead
|
6
|
+
tr
|
7
|
+
th = t(:'program_syllabus.plural')
|
8
|
+
tbody
|
9
|
+
= content_tag_for(:tr, @program.program_syllabuses) do |syllabus|
|
10
|
+
td = syllabus.syllabus.name
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= panel_for 'school-panel' do
|
2
|
+
= panel_header 'School information', @school
|
3
|
+
|
4
|
+
table.table.table-bordered.th-center
|
5
|
+
tbody
|
6
|
+
= render 'show_table', school: @school
|
7
|
+
|
8
|
+
= render 'tabs', school: @school
|
9
|
+
|
10
|
+
= footer do
|
11
|
+
.col-md-12
|
12
|
+
= link_to_index admin_schools_path
|
13
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= panel_for 'school-panel' do
|
2
|
+
= panel_header 'School information', @school
|
3
|
+
|
4
|
+
table.table.table-bordered.th-center
|
5
|
+
tbody
|
6
|
+
= render 'show_table', school: @school
|
7
|
+
|
8
|
+
= render 'tabs'
|
9
|
+
|
10
|
+
= footer do
|
11
|
+
.col-md-3
|
12
|
+
= link_to t(:'school.edit_master'), admin_school_details_edit_path, class: 'btn btn-danger col-md-12', data: { confirm: t(:'confirm') }, id: 'edit-admin-primary-school'
|
13
|
+
.col-md-9
|
14
|
+
= link_to_back admin_schools_path
|
@@ -0,0 +1,6 @@
|
|
1
|
+
= image_tag resource.picture.url(:thumb), id: "avatar-picture", class: "img-thumbnail"
|
2
|
+
.row.mt-m
|
3
|
+
.col-md-12
|
4
|
+
= link_to_upload_image 'JavaScript:void(0);', method: :get, id: "upload-picture-link"
|
5
|
+
#upload-picture.d-none
|
6
|
+
= render 'gaku/admin/shared/upload_picture', resource: resource
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= f.text_field :name, label: t(:'specialty.name')
|
2
|
+
= f.text_field :description, label: t(:'specialty.description')
|
3
|
+
= f.check_box :major_only, label: t(:'specialty.major_only')
|
4
|
+
= f.select :department_id, options_from_collection_for_select(@departments, :id, :name), prompt: true, label: t(:'department.singular')
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-specialties-index tbody').append('<%= j render("specialty", {specialty: @specialty}) %>');
|
2
|
+
|
3
|
+
$('#new-admin-specialty').slide();
|
4
|
+
$('#new-admin-specialty-link').show();
|
5
|
+
|
6
|
+
showNotice("<%= render_flash %>");
|
7
|
+
$('.admin-specialties-count').html("<%= print_count(@count, t(:'specialty.list')) %>");
|
@@ -0,0 +1,21 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-specialties-count' do
|
4
|
+
= print_count @count, t(:'specialty.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'specialty.add'), [:new, :admin, :specialty], id: 'new-admin-specialty-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-specialty.d-none
|
10
|
+
|
11
|
+
#admin-specialties
|
12
|
+
= table_for 'admin-specialties-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'specialty.singular')
|
16
|
+
= th t(:'specialty.description')
|
17
|
+
= th t(:'department.singular')
|
18
|
+
= th t(:'specialty.major_only')
|
19
|
+
= th_actions 3
|
20
|
+
tbody
|
21
|
+
= render partial: 'specialty', collection: @specialties, as: 'specialty'
|
@@ -0,0 +1,4 @@
|
|
1
|
+
= form_tag country_states_admin_states_path, { remote: true, class: 'form-inline' } do
|
2
|
+
= label :state, t(:'address.country')
|
3
|
+
= collection_select :state, :country_iso, Gaku::Country.all, :iso, :name, { selected: @default_country.try(:iso), prompt: t(:'address.choose_country') } , { class: 'input-normal', id: 'select-country' }
|
4
|
+
= submit_tag 'Show States', class: 'btn btn-primary', id: 'admin-show-country-states-submit'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
= table_for "admin-#{country.iso.downcase}-states-index" do
|
2
|
+
thead
|
3
|
+
tr
|
4
|
+
= th t(:'address.state.singular')
|
5
|
+
= th t(:'address.state.abbr')
|
6
|
+
= th t(:'address.state.name_ascii')
|
7
|
+
= th t(:'address.state.code')
|
8
|
+
= th t(:'address.state.country_iso')
|
9
|
+
= th_actions 2
|
10
|
+
tbody
|
11
|
+
= render partial: 'state', collection: states, as: :state
|
@@ -0,0 +1,14 @@
|
|
1
|
+
.row
|
2
|
+
.col-md-6
|
3
|
+
= f.text_field :name, label: t(:'address.state.name')
|
4
|
+
.col-md-6
|
5
|
+
= f.text_field :abbr, label: t(:'address.state.abbr')
|
6
|
+
.row
|
7
|
+
.col-md-6
|
8
|
+
= f.text_field :name_ascii, label: t(:'address.state.name_ascii')
|
9
|
+
.col-md-6
|
10
|
+
= f.text_field :code, label: t(:'address.state.code')
|
11
|
+
.row
|
12
|
+
.col-md-6
|
13
|
+
= f.select :country_iso, @countries, { prompt: t(:'address.choose_country') }, label: t(:'address.country')
|
14
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
$('#admin-<%= @state.country_iso.downcase %>-states-index tbody').append('<%= j render("state", {state: @state}) %>');
|
2
|
+
$('#new-admin-state').slide();
|
3
|
+
$('#new-admin-state-link').show();
|
4
|
+
|
5
|
+
$('.admin-states-count').html("<%= print_count(@count, t(:'address.state.list')) %>");
|
6
|
+
|
7
|
+
showNotice("<%= render_flash %>");
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-states-count' do
|
4
|
+
= print_count @count, t(:'address.state.list')
|
5
|
+
.pull-right
|
6
|
+
= ajax_link_to_new t(:'address.state.add'), [:new, :admin, :state], id: 'new-admin-state-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-state.d-none
|
10
|
+
#show-admin-states-form
|
11
|
+
=render 'country_select_form'
|
12
|
+
=hr
|
13
|
+
#admin-country-states
|
14
|
+
= render 'country_table', states: @country.states, country: @country if @country
|
15
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
h4 Under Construction
|
@@ -0,0 +1,8 @@
|
|
1
|
+
td = template.name
|
2
|
+
td = template.context
|
3
|
+
td = boolean_image template.locked?
|
4
|
+
td
|
5
|
+
= link_to download_icon, [:download, :admin, template], class: 'btn btn-mini btn-success', style: 'margin-right:5px'
|
6
|
+
= link_to_edit [:edit, :admin, template]
|
7
|
+
= ajax_link_to_delete [:admin, template]
|
8
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,20 @@
|
|
1
|
+
= content_for :index_header do
|
2
|
+
.pull-left
|
3
|
+
= count_div 'admin-templates-count' do
|
4
|
+
= print_count @count, t(:'template.list')
|
5
|
+
.pull-right
|
6
|
+
= link_to_new t(:'template.add'), [:new, :admin, :template], id: 'new-admin-template-link'
|
7
|
+
|
8
|
+
= content_for :new_form do
|
9
|
+
#new-admin-template.d-none
|
10
|
+
|
11
|
+
#admin-templates
|
12
|
+
= table_for 'admin-templates-index' do
|
13
|
+
thead
|
14
|
+
tr
|
15
|
+
= th t(:'template.singular')
|
16
|
+
= th t(:'template.context')
|
17
|
+
= th t(:'template.lock')
|
18
|
+
= th_actions 3
|
19
|
+
tbody
|
20
|
+
= render partial: 'template', collection: @templates, as: :template
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
= f.text_field :username, label: t(:'user.username')
|
2
|
+
= f.text_field :email, label: t(:'user.email')
|
3
|
+
= f.password_field :password, label: t(:'user.password')
|
4
|
+
= f.password_field :password_confirmation, label: t(:'user.password_confirmation')
|
5
|
+
|
6
|
+
.roles
|
7
|
+
= hidden_field_tag "user[role_ids][]", nil
|
8
|
+
ul.unstyled
|
9
|
+
- @roles.each do |role|
|
10
|
+
li
|
11
|
+
label.checkbox
|
12
|
+
= check_box_tag "user[role_ids][]", role.id, @user.role_ids.include?(role.id)
|
13
|
+
= role.name
|
14
|
+
|