gaku_core 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1001) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/{pictures/thumb/missing.png → missing_original.png} +0 -0
  3. data/app/assets/images/missing_thumb.png +0 -0
  4. data/app/controllers/gaku/{gaku_controller.rb → core_controller.rb} +5 -34
  5. data/app/decorators/gaku/course_decorator.rb +15 -0
  6. data/app/decorators/gaku/person_decorator.rb +1 -1
  7. data/app/decorators/gaku/student_decorator.rb +24 -7
  8. data/app/models/concerns/pagination.rb +8 -0
  9. data/app/models/concerns/person.rb +11 -0
  10. data/app/models/concerns/picture.rb +1 -1
  11. data/app/models/gaku/address.rb +4 -22
  12. data/app/models/gaku/attachment.rb +0 -2
  13. data/app/models/gaku/badge.rb +10 -0
  14. data/app/models/gaku/badge_type.rb +15 -0
  15. data/app/models/gaku/class_group.rb +1 -1
  16. data/app/models/gaku/class_group_enrollment.rb +2 -2
  17. data/app/models/gaku/contact.rb +8 -23
  18. data/app/models/gaku/contact_type.rb +1 -1
  19. data/app/models/gaku/country.rb +1 -0
  20. data/app/models/gaku/course_enrollment.rb +6 -0
  21. data/app/models/gaku/course_group.rb +0 -2
  22. data/app/models/gaku/department.rb +4 -0
  23. data/app/models/gaku/enrollment_status.rb +1 -1
  24. data/app/models/gaku/exam.rb +3 -1
  25. data/app/models/gaku/exam_portion.rb +1 -1
  26. data/app/models/gaku/external_school_record.rb +22 -7
  27. data/app/models/gaku/extracurricular_activity.rb +1 -1
  28. data/app/models/gaku/grading_method.rb +2 -1
  29. data/app/models/gaku/guardian.rb +1 -1
  30. data/app/models/gaku/level.rb +1 -0
  31. data/app/models/gaku/preset.rb +35 -62
  32. data/app/models/gaku/program.rb +1 -0
  33. data/app/models/gaku/school.rb +6 -1
  34. data/app/models/gaku/semester.rb +3 -0
  35. data/app/models/gaku/simple_grade.rb +7 -3
  36. data/app/models/gaku/simple_grade_type.rb +14 -0
  37. data/app/models/gaku/specialty.rb +3 -1
  38. data/app/models/gaku/student.rb +56 -15
  39. data/app/models/gaku/student_specialty.rb +0 -1
  40. data/app/models/gaku/syllabus.rb +2 -0
  41. data/app/models/gaku/teacher.rb +1 -1
  42. data/app/models/gaku/template.rb +5 -7
  43. data/app/models/gaku/user.rb +10 -2
  44. data/app/views/gaku/admin/grading_methods/_arguments_form_fields.html.slim +19 -0
  45. data/app/views/gaku/admin/grading_methods/_arguments_template.html.slim +11 -0
  46. data/app/views/gaku/shared/menu/_global.html.erb +2 -26
  47. data/config/initializers/devise.rb +3 -0
  48. data/config/initializers/{kaminari_config.rb → kaminari.rb} +0 -0
  49. data/config/initializers/translation_missing.rb +1 -1
  50. data/config/locales/bg.yml +287 -167
  51. data/config/locales/en.yml +148 -37
  52. data/config/locales/ja.yml +148 -30
  53. data/config/locales/pt-BR.yml +145 -27
  54. data/config/locales/zh-CN.yml +145 -27
  55. data/config/routes.rb +1 -290
  56. data/db/default/gaku/attendance_types.rb +2 -2
  57. data/db/default/gaku/commute_method_types.rb +1 -1
  58. data/db/default/gaku/departments.rb +1 -1
  59. data/db/default/gaku/presets.rb +33 -0
  60. data/db/default/gaku/scholarship_statuses.rb +2 -2
  61. data/db/migrate/20120202111850_presets.rb +30 -0
  62. data/db/migrate/{20120202111850_translated_tables.rb → 20131014065028_translations.rb} +17 -2
  63. data/db/migrate/20131025073352_gaku_core.rb +628 -0
  64. data/db/migrate/20140130182100_change_fields_external_school_record.rb +7 -0
  65. data/db/migrate/20140131113337_create_student_configs.rb +21 -0
  66. data/db/migrate/20140207093618_drop_student_configs.rb +5 -0
  67. data/lib/gaku/core/engine.rb +8 -24
  68. data/lib/gaku/core.rb +3 -21
  69. data/lib/gaku/migrations.rb +30 -0
  70. data/lib/gaku/streamer/sse.rb +22 -0
  71. data/lib/gaku/testing/auth_helpers.rb +2 -2
  72. data/lib/gaku/testing/coverage.rb +20 -0
  73. data/lib/gaku/testing/deferred_garbage_collection.rb +20 -0
  74. data/lib/gaku/testing/factories/attachment_factory.rb +3 -2
  75. data/lib/gaku/testing/factories/badge_factory.rb +12 -0
  76. data/lib/gaku/testing/factories/{achievement_factory.rb → badge_type_factory.rb} +2 -2
  77. data/lib/gaku/testing/factories/campus_factory.rb +5 -1
  78. data/lib/gaku/testing/factories/class_group_course_enrollment_factory.rb +8 -0
  79. data/lib/gaku/testing/factories/class_group_factory.rb +2 -7
  80. data/lib/gaku/testing/factories/contact_type_factory.rb +1 -1
  81. data/lib/gaku/testing/factories/country_factory.rb +2 -2
  82. data/lib/gaku/testing/factories/course_enrollment_factory.rb +4 -0
  83. data/lib/gaku/testing/factories/course_factory.rb +4 -0
  84. data/lib/gaku/testing/factories/course_group_factory.rb +4 -0
  85. data/lib/gaku/testing/factories/exam_factory.rb +10 -2
  86. data/lib/gaku/testing/factories/exam_portion_factory.rb +5 -1
  87. data/lib/gaku/testing/factories/external_school_record_factory.rb +14 -0
  88. data/lib/gaku/testing/factories/extracurricular_activity_factory.rb +4 -0
  89. data/lib/gaku/testing/factories/guardian_factory.rb +4 -1
  90. data/lib/gaku/testing/factories/level_factory.rb +1 -1
  91. data/lib/gaku/testing/factories/preset_factory.rb +17 -0
  92. data/lib/gaku/testing/factories/program_factory.rb +1 -1
  93. data/lib/gaku/testing/factories/school_factory.rb +5 -1
  94. data/lib/gaku/testing/factories/school_year_factory.rb +5 -0
  95. data/lib/gaku/testing/factories/semester_factory.rb +5 -0
  96. data/lib/gaku/testing/factories/simple_grade_factory.rb +7 -3
  97. data/lib/gaku/testing/factories/simple_grade_type_factory.rb +13 -0
  98. data/lib/gaku/testing/factories/student_specialty_factory.rb +4 -0
  99. data/lib/gaku/testing/factories/template_factory.rb +7 -0
  100. data/lib/gaku/testing/factories/traits.rb +8 -0
  101. data/lib/generators/gaku/dummy/templates/rails/database.yml +2 -0
  102. data/lib/generators/gaku/install/install_generator.rb +31 -30
  103. data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/{all.js → admin/all.js} +1 -5
  104. data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/archive/all.js +10 -0
  105. data/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/frontend/all.js +10 -0
  106. data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/{all.css → admin/all.css} +2 -5
  107. data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/archive/all.css +9 -0
  108. data/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/frontend/all.css +9 -0
  109. metadata +260 -1560
  110. data/app/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
  111. data/app/assets/images/bootstrap/glyphicons-halflings.png +0 -0
  112. data/app/assets/images/dataTables/back_disabled.png +0 -0
  113. data/app/assets/images/dataTables/back_enabled.png +0 -0
  114. data/app/assets/images/dataTables/back_enabled_hover.png +0 -0
  115. data/app/assets/images/dataTables/forward_disabled.png +0 -0
  116. data/app/assets/images/dataTables/forward_enabled.png +0 -0
  117. data/app/assets/images/dataTables/forward_enabled_hover.png +0 -0
  118. data/app/assets/images/dataTables/sort_asc.png +0 -0
  119. data/app/assets/images/dataTables/sort_asc_disabled.png +0 -0
  120. data/app/assets/images/dataTables/sort_both.png +0 -0
  121. data/app/assets/images/dataTables/sort_desc.png +0 -0
  122. data/app/assets/images/dataTables/sort_desc_disabled.png +0 -0
  123. data/app/assets/images/tbs-img/glyphicons-halflings-white.png +0 -0
  124. data/app/assets/images/tbs-img/glyphicons-halflings.png +0 -0
  125. data/app/assets/javascripts/gaku/admin.coffee +0 -30
  126. data/app/assets/javascripts/gaku/backbone/collections/attendance_types.js.coffee +0 -2
  127. data/app/assets/javascripts/gaku/backbone/collections/courses.js.coffee +0 -2
  128. data/app/assets/javascripts/gaku/backbone/collections/exams.js.coffee +0 -2
  129. data/app/assets/javascripts/gaku/backbone/models/attendance.js.coffee +0 -1
  130. data/app/assets/javascripts/gaku/backbone/models/attendance_type.coffee +0 -1
  131. data/app/assets/javascripts/gaku/backbone/models/calculation.js.coffee +0 -43
  132. data/app/assets/javascripts/gaku/backbone/models/completed.js.coffee +0 -1
  133. data/app/assets/javascripts/gaku/backbone/models/course.js.coffee +0 -2
  134. data/app/assets/javascripts/gaku/backbone/models/exam.js.coffee +0 -1
  135. data/app/assets/javascripts/gaku/backbone/models/exam_attendance.js.coffee +0 -4
  136. data/app/assets/javascripts/gaku/backbone/models/exam_portion_score.js.coffee +0 -18
  137. data/app/assets/javascripts/gaku/backbone/routers/exams_router.js.coffee +0 -22
  138. data/app/assets/javascripts/gaku/backbone/templates/attendance_chooser.jst.eco +0 -19
  139. data/app/assets/javascripts/gaku/backbone/templates/tables/attendance_show.jst.eco +0 -3
  140. data/app/assets/javascripts/gaku/backbone/templates/tables/exam_calculations.jst.eco +0 -39
  141. data/app/assets/javascripts/gaku/backbone/templates/tables/exam_completion.jst.eco +0 -1
  142. data/app/assets/javascripts/gaku/backbone/templates/tables/exam_score.jst.eco +0 -53
  143. data/app/assets/javascripts/gaku/backbone/templates/tables/exam_table.jst.eco +0 -32
  144. data/app/assets/javascripts/gaku/backbone/templates/tables/exam_user.jst.eco +0 -18
  145. data/app/assets/javascripts/gaku/backbone/views/exam_attendance.js.coffee +0 -51
  146. data/app/assets/javascripts/gaku/backbone/views/exam_attendance_show.js.coffee +0 -6
  147. data/app/assets/javascripts/gaku/backbone/views/exam_calculations.js.coffee +0 -15
  148. data/app/assets/javascripts/gaku/backbone/views/exam_completion.js.coffee +0 -7
  149. data/app/assets/javascripts/gaku/backbone/views/exam_portion_score.js.coffee +0 -8
  150. data/app/assets/javascripts/gaku/backbone/views/exam_score_view.js.coffee +0 -7
  151. data/app/assets/javascripts/gaku/backbone/views/exam_table_view.js.coffee +0 -227
  152. data/app/assets/javascripts/gaku/backbone/views/exam_user_view.js.coffee +0 -8
  153. data/app/assets/javascripts/gaku/class_groups.js.coffee +0 -11
  154. data/app/assets/javascripts/gaku/courses.js.coffee +0 -12
  155. data/app/assets/javascripts/gaku/exams.js.coffee +0 -23
  156. data/app/assets/javascripts/gaku/extracurricular_activities.js.coffee +0 -12
  157. data/app/assets/javascripts/gaku/gaku.js.coffee +0 -174
  158. data/app/assets/javascripts/gaku/gaku_core.js +0 -35
  159. data/app/assets/javascripts/gaku/slide.js.erb +0 -14
  160. data/app/assets/javascripts/gaku/students.js.coffee +0 -36
  161. data/app/assets/javascripts/gaku/syllabuses.js.coffee +0 -26
  162. data/app/assets/javascripts/gaku/teachers.js.coffee +0 -12
  163. data/app/assets/stylesheets/gaku/admin/disposals.css.scss +0 -14
  164. data/app/assets/stylesheets/gaku/class_groups.css.scss +0 -19
  165. data/app/assets/stylesheets/gaku/course_groups.css.scss +0 -14
  166. data/app/assets/stylesheets/gaku/courses.css.scss +0 -19
  167. data/app/assets/stylesheets/gaku/exams.css.scss +0 -72
  168. data/app/assets/stylesheets/gaku/gaku.css.scss +0 -172
  169. data/app/assets/stylesheets/gaku/gaku_core.css +0 -10
  170. data/app/assets/stylesheets/gaku/gaku_import.scss +0 -2
  171. data/app/assets/stylesheets/gaku/students.css.scss +0 -22
  172. data/app/assets/templates/roster.xls +0 -0
  173. data/app/controllers/concerns/enrollments_controller.rb +0 -83
  174. data/app/controllers/concerns/polymorphic_resource_concern.rb +0 -47
  175. data/app/controllers/concerns/student_chooser_controller.rb +0 -52
  176. data/app/controllers/gaku/addresses_controller.rb +0 -105
  177. data/app/controllers/gaku/admin/achievements_controller.rb +0 -64
  178. data/app/controllers/gaku/admin/attendance_types_controller.rb +0 -60
  179. data/app/controllers/gaku/admin/base_controller.rb +0 -40
  180. data/app/controllers/gaku/admin/changes/student_address_changes_controller.rb +0 -14
  181. data/app/controllers/gaku/admin/changes/student_changes_controller.rb +0 -13
  182. data/app/controllers/gaku/admin/changes/student_contact_changes_controller.rb +0 -13
  183. data/app/controllers/gaku/admin/commute_method_types_controller.rb +0 -54
  184. data/app/controllers/gaku/admin/contact_types_controller.rb +0 -55
  185. data/app/controllers/gaku/admin/departments_controller.rb +0 -55
  186. data/app/controllers/gaku/admin/disposals_controller.rb +0 -55
  187. data/app/controllers/gaku/admin/enrollment_statuses_controller.rb +0 -58
  188. data/app/controllers/gaku/admin/grading_method_sets/grading_method_set_items_controller.rb +0 -70
  189. data/app/controllers/gaku/admin/grading_method_sets_controller.rb +0 -69
  190. data/app/controllers/gaku/admin/grading_methods_controller.rb +0 -58
  191. data/app/controllers/gaku/admin/presets_controller.rb +0 -40
  192. data/app/controllers/gaku/admin/roles_controller.rb +0 -54
  193. data/app/controllers/gaku/admin/school_years/semesters_controller.rb +0 -31
  194. data/app/controllers/gaku/admin/school_years_controller.rb +0 -30
  195. data/app/controllers/gaku/admin/schools/campuses/addresses_controller.rb +0 -53
  196. data/app/controllers/gaku/admin/schools/campuses_controller.rb +0 -46
  197. data/app/controllers/gaku/admin/schools/programs_controller.rb +0 -48
  198. data/app/controllers/gaku/admin/schools_controller.rb +0 -59
  199. data/app/controllers/gaku/admin/specialties_controller.rb +0 -58
  200. data/app/controllers/gaku/admin/states_controller.rb +0 -49
  201. data/app/controllers/gaku/admin/system_tools_controller.rb +0 -8
  202. data/app/controllers/gaku/admin/templates_controller.rb +0 -49
  203. data/app/controllers/gaku/admin/users_controller.rb +0 -82
  204. data/app/controllers/gaku/attachments_controller.rb +0 -88
  205. data/app/controllers/gaku/attendances_controller.rb +0 -29
  206. data/app/controllers/gaku/class_group_enrollments_controller.rb +0 -15
  207. data/app/controllers/gaku/class_groups/courses_controller.rb +0 -44
  208. data/app/controllers/gaku/class_groups/semester_class_groups_controller.rb +0 -38
  209. data/app/controllers/gaku/class_groups/students_controller.rb +0 -43
  210. data/app/controllers/gaku/class_groups_controller.rb +0 -59
  211. data/app/controllers/gaku/contacts_controller.rb +0 -103
  212. data/app/controllers/gaku/course_enrollments_controller.rb +0 -10
  213. data/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +0 -50
  214. data/app/controllers/gaku/course_groups_controller.rb +0 -81
  215. data/app/controllers/gaku/courses/enrollments_controller.rb +0 -55
  216. data/app/controllers/gaku/courses/semester_courses_controller.rb +0 -37
  217. data/app/controllers/gaku/courses_controller.rb +0 -73
  218. data/app/controllers/gaku/devise/passwords_controller.rb +0 -4
  219. data/app/controllers/gaku/devise/registrations_controller.rb +0 -60
  220. data/app/controllers/gaku/devise/sessions_controller.rb +0 -4
  221. data/app/controllers/gaku/exam_portion_scores_controller.rb +0 -18
  222. data/app/controllers/gaku/exams/exam_portions/attachments_controller.rb +0 -53
  223. data/app/controllers/gaku/exams/exam_portions_controller.rb +0 -55
  224. data/app/controllers/gaku/exams_controller.rb +0 -140
  225. data/app/controllers/gaku/extracurricular_activities/students_controller.rb +0 -55
  226. data/app/controllers/gaku/extracurricular_activities_controller.rb +0 -48
  227. data/app/controllers/gaku/extracurricular_activity_enrollments_controller.rb +0 -10
  228. data/app/controllers/gaku/home_controller.rb +0 -10
  229. data/app/controllers/gaku/notes_controller.rb +0 -81
  230. data/app/controllers/gaku/schedules_controller.rb +0 -11
  231. data/app/controllers/gaku/states_controller.rb +0 -17
  232. data/app/controllers/gaku/students/class_group_enrollments_controller.rb +0 -59
  233. data/app/controllers/gaku/students/course_enrollments_controller.rb +0 -43
  234. data/app/controllers/gaku/students/guardians_controller.rb +0 -85
  235. data/app/controllers/gaku/students/simple_grades_controller.rb +0 -59
  236. data/app/controllers/gaku/students/student_achievements_controller.rb +0 -49
  237. data/app/controllers/gaku/students/student_specialties_controller.rb +0 -60
  238. data/app/controllers/gaku/students_controller.rb +0 -189
  239. data/app/controllers/gaku/syllabuses/assignments_controller.rb +0 -20
  240. data/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +0 -38
  241. data/app/controllers/gaku/syllabuses/exams_controller.rb +0 -53
  242. data/app/controllers/gaku/syllabuses_controller.rb +0 -73
  243. data/app/controllers/gaku/teachers_controller.rb +0 -113
  244. data/app/helpers/gaku/autocomplete_helper.rb +0 -31
  245. data/app/helpers/gaku/count_helper.rb +0 -13
  246. data/app/helpers/gaku/flash_helper.rb +0 -16
  247. data/app/helpers/gaku/gaku_helper.rb +0 -145
  248. data/app/helpers/gaku/icon_helper.rb +0 -26
  249. data/app/helpers/gaku/person_helper.rb +0 -55
  250. data/app/helpers/gaku/presets_helper.rb +0 -41
  251. data/app/helpers/gaku/sort_helper.rb +0 -17
  252. data/app/helpers/gaku/student_chooser_helper.rb +0 -12
  253. data/app/helpers/gaku/students_helper.rb +0 -42
  254. data/app/helpers/gaku/translations_helper.rb +0 -185
  255. data/app/models/concerns/trashable.rb +0 -17
  256. data/app/models/gaku/achievement.rb +0 -17
  257. data/app/models/gaku/student_achievement.rb +0 -10
  258. data/app/models/gaku/versioning/address_version.rb +0 -9
  259. data/app/models/gaku/versioning/contact_version.rb +0 -7
  260. data/app/models/gaku/versioning/student_version.rb +0 -49
  261. data/app/views/gaku/addresses/_address.html.slim +0 -5
  262. data/app/views/gaku/addresses/_addresses.html.slim +0 -27
  263. data/app/views/gaku/addresses/_fields.html.slim +0 -14
  264. data/app/views/gaku/addresses/_form.html.slim +0 -3
  265. data/app/views/gaku/addresses/_form_fields.html.slim +0 -26
  266. data/app/views/gaku/addresses/_modal.html.slim +0 -6
  267. data/app/views/gaku/addresses/_primary_field.html.slim +0 -13
  268. data/app/views/gaku/addresses/create.js.erb +0 -12
  269. data/app/views/gaku/addresses/destroy.js.erb +0 -8
  270. data/app/views/gaku/addresses/edit.js.erb +0 -4
  271. data/app/views/gaku/addresses/make_primary.js.erb +0 -7
  272. data/app/views/gaku/addresses/new.js.erb +0 -4
  273. data/app/views/gaku/addresses/recovery.js.erb +0 -1
  274. data/app/views/gaku/addresses/soft_delete.js.erb +0 -8
  275. data/app/views/gaku/addresses/update.js.erb +0 -5
  276. data/app/views/gaku/admin/achievements/_achievement.html.slim +0 -2
  277. data/app/views/gaku/admin/achievements/_fields.html.slim +0 -7
  278. data/app/views/gaku/admin/achievements/_form.html.slim +0 -3
  279. data/app/views/gaku/admin/achievements/_form_fields.html.slim +0 -4
  280. data/app/views/gaku/admin/achievements/_modal.html.slim +0 -6
  281. data/app/views/gaku/admin/achievements/destroy.js.erb +0 -2
  282. data/app/views/gaku/admin/achievements/edit.js.erb +0 -3
  283. data/app/views/gaku/admin/achievements/index.html.slim +0 -22
  284. data/app/views/gaku/admin/achievements/new.js.erb +0 -3
  285. data/app/views/gaku/admin/attendance_types/_attendance_type.html.slim +0 -2
  286. data/app/views/gaku/admin/attendance_types/_fields.html.slim +0 -9
  287. data/app/views/gaku/admin/attendance_types/_form.html.slim +0 -3
  288. data/app/views/gaku/admin/attendance_types/_form_fields.html.slim +0 -6
  289. data/app/views/gaku/admin/attendance_types/_modal.html.slim +0 -6
  290. data/app/views/gaku/admin/attendance_types/create.js.erb +0 -7
  291. data/app/views/gaku/admin/attendance_types/destroy.js.erb +0 -2
  292. data/app/views/gaku/admin/attendance_types/edit.js.erb +0 -4
  293. data/app/views/gaku/admin/attendance_types/index.html.slim +0 -24
  294. data/app/views/gaku/admin/attendance_types/index.json.rb +0 -1
  295. data/app/views/gaku/admin/attendance_types/new.js.erb +0 -4
  296. data/app/views/gaku/admin/attendance_types/update.js.erb +0 -4
  297. data/app/views/gaku/admin/changes/student_address_changes/_change.html.slim +0 -10
  298. data/app/views/gaku/admin/changes/student_address_changes/_changes.html.slim +0 -19
  299. data/app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim +0 -9
  300. data/app/views/gaku/admin/changes/student_address_changes/index.html.slim +0 -11
  301. data/app/views/gaku/admin/changes/student_changes/_change.html.slim +0 -10
  302. data/app/views/gaku/admin/changes/student_changes/_changes.html.slim +0 -18
  303. data/app/views/gaku/admin/changes/student_changes/_deletion.html.slim +0 -9
  304. data/app/views/gaku/admin/changes/student_changes/index.html.slim +0 -13
  305. data/app/views/gaku/admin/changes/student_contact_changes/_change.html.slim +0 -10
  306. data/app/views/gaku/admin/changes/student_contact_changes/_changes.html.slim +0 -19
  307. data/app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim +0 -9
  308. data/app/views/gaku/admin/changes/student_contact_changes/index.html.slim +0 -11
  309. data/app/views/gaku/admin/commute_method_types/_commute_method_type.html.slim +0 -2
  310. data/app/views/gaku/admin/commute_method_types/_fields.html.slim +0 -4
  311. data/app/views/gaku/admin/commute_method_types/_form.html.slim +0 -3
  312. data/app/views/gaku/admin/commute_method_types/_modal.html.slim +0 -6
  313. data/app/views/gaku/admin/commute_method_types/create.js.erb +0 -7
  314. data/app/views/gaku/admin/commute_method_types/destroy.js.erb +0 -2
  315. data/app/views/gaku/admin/commute_method_types/edit.js.erb +0 -3
  316. data/app/views/gaku/admin/commute_method_types/index.html.slim +0 -18
  317. data/app/views/gaku/admin/commute_method_types/new.js.erb +0 -3
  318. data/app/views/gaku/admin/commute_method_types/update.js.erb +0 -3
  319. data/app/views/gaku/admin/contact_types/_contact_type.html.slim +0 -2
  320. data/app/views/gaku/admin/contact_types/_fields.html.slim +0 -4
  321. data/app/views/gaku/admin/contact_types/_form.html.slim +0 -3
  322. data/app/views/gaku/admin/contact_types/_modal.html.slim +0 -6
  323. data/app/views/gaku/admin/contact_types/create.js.erb +0 -7
  324. data/app/views/gaku/admin/contact_types/destroy.js.erb +0 -2
  325. data/app/views/gaku/admin/contact_types/edit.js.erb +0 -3
  326. data/app/views/gaku/admin/contact_types/index.html.slim +0 -18
  327. data/app/views/gaku/admin/contact_types/new.js.erb +0 -3
  328. data/app/views/gaku/admin/contact_types/update.js.erb +0 -3
  329. data/app/views/gaku/admin/departments/_department.html.slim +0 -2
  330. data/app/views/gaku/admin/departments/_form.html.slim +0 -3
  331. data/app/views/gaku/admin/departments/_form_fields.html.slim +0 -1
  332. data/app/views/gaku/admin/departments/_modal.html.slim +0 -6
  333. data/app/views/gaku/admin/departments/_table_fields.html.slim +0 -5
  334. data/app/views/gaku/admin/departments/create.js.erb +0 -7
  335. data/app/views/gaku/admin/departments/destroy.js.erb +0 -2
  336. data/app/views/gaku/admin/departments/edit.js.erb +0 -3
  337. data/app/views/gaku/admin/departments/index.html.slim +0 -20
  338. data/app/views/gaku/admin/departments/new.js.erb +0 -3
  339. data/app/views/gaku/admin/departments/update.js.erb +0 -4
  340. data/app/views/gaku/admin/disposals/_address.html.slim +0 -12
  341. data/app/views/gaku/admin/disposals/_addresses.html.slim +0 -17
  342. data/app/views/gaku/admin/disposals/_contact.html.slim +0 -9
  343. data/app/views/gaku/admin/disposals/_contacts.html.slim +0 -14
  344. data/app/views/gaku/admin/disposals/_course_group.html.slim +0 -3
  345. data/app/views/gaku/admin/disposals/_course_groups.html.slim +0 -12
  346. data/app/views/gaku/admin/disposals/_exam.html.slim +0 -10
  347. data/app/views/gaku/admin/disposals/_guardian.html.slim +0 -10
  348. data/app/views/gaku/admin/disposals/_student.html.slim +0 -10
  349. data/app/views/gaku/admin/disposals/_tabs.html.slim +0 -17
  350. data/app/views/gaku/admin/disposals/_teacher.html.slim +0 -10
  351. data/app/views/gaku/admin/disposals/addresses.html.slim +0 -2
  352. data/app/views/gaku/admin/disposals/attachments.html.slim +0 -30
  353. data/app/views/gaku/admin/disposals/contacts.html.slim +0 -2
  354. data/app/views/gaku/admin/disposals/course_groups.html.slim +0 -12
  355. data/app/views/gaku/admin/disposals/exams.html.slim +0 -16
  356. data/app/views/gaku/admin/disposals/guardians.html.slim +0 -16
  357. data/app/views/gaku/admin/disposals/index.html.slim +0 -1
  358. data/app/views/gaku/admin/disposals/students.html.slim +0 -16
  359. data/app/views/gaku/admin/disposals/tabs/_addresses_tabs.html.slim +0 -19
  360. data/app/views/gaku/admin/disposals/tabs/_contacts_tabs.html.slim +0 -19
  361. data/app/views/gaku/admin/disposals/teachers.html.slim +0 -16
  362. data/app/views/gaku/admin/enrollment_statuses/_enrollment_status.html.slim +0 -2
  363. data/app/views/gaku/admin/enrollment_statuses/_fields.html.slim +0 -6
  364. data/app/views/gaku/admin/enrollment_statuses/_form.html.slim +0 -3
  365. data/app/views/gaku/admin/enrollment_statuses/_form_fields.html.slim +0 -3
  366. data/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +0 -6
  367. data/app/views/gaku/admin/enrollment_statuses/create.js.erb +0 -7
  368. data/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +0 -2
  369. data/app/views/gaku/admin/enrollment_statuses/edit.js.erb +0 -3
  370. data/app/views/gaku/admin/enrollment_statuses/index.html.slim +0 -21
  371. data/app/views/gaku/admin/enrollment_statuses/new.js.erb +0 -3
  372. data/app/views/gaku/admin/enrollment_statuses/update.js.erb +0 -4
  373. data/app/views/gaku/admin/grading_method_sets/_fields.html.slim +0 -9
  374. data/app/views/gaku/admin/grading_method_sets/_form.html.slim +0 -3
  375. data/app/views/gaku/admin/grading_method_sets/_form_fields.html.slim +0 -4
  376. data/app/views/gaku/admin/grading_method_sets/_grading_method_set.html.slim +0 -4
  377. data/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +0 -4
  378. data/app/views/gaku/admin/grading_method_sets/_modal.html.slim +0 -6
  379. data/app/views/gaku/admin/grading_method_sets/create.js.erb +0 -7
  380. data/app/views/gaku/admin/grading_method_sets/destroy.js.erb +0 -7
  381. data/app/views/gaku/admin/grading_method_sets/edit.js.erb +0 -3
  382. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_fields.html.slim +0 -9
  383. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +0 -3
  384. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form_fields.html.slim +0 -1
  385. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_item.html.slim +0 -4
  386. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +0 -23
  387. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +0 -6
  388. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +0 -7
  389. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +0 -2
  390. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/edit.js.erb +0 -3
  391. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/new.js.erb +0 -3
  392. data/app/views/gaku/admin/grading_method_sets/grading_method_set_items/update.js.erb +0 -3
  393. data/app/views/gaku/admin/grading_method_sets/index.html.slim +0 -23
  394. data/app/views/gaku/admin/grading_method_sets/make_primary.js.erb +0 -6
  395. data/app/views/gaku/admin/grading_method_sets/new.js.erb +0 -3
  396. data/app/views/gaku/admin/grading_method_sets/show.html.slim +0 -13
  397. data/app/views/gaku/admin/grading_method_sets/update.js.erb +0 -3
  398. data/app/views/gaku/admin/grading_methods/_fields.html.slim +0 -6
  399. data/app/views/gaku/admin/grading_methods/_form.html.slim +0 -3
  400. data/app/views/gaku/admin/grading_methods/_form_fields.html.slim +0 -3
  401. data/app/views/gaku/admin/grading_methods/_grading_method.html.slim +0 -2
  402. data/app/views/gaku/admin/grading_methods/_modal.html.slim +0 -6
  403. data/app/views/gaku/admin/grading_methods/create.js.erb +0 -7
  404. data/app/views/gaku/admin/grading_methods/destroy.js.erb +0 -2
  405. data/app/views/gaku/admin/grading_methods/edit.js.erb +0 -3
  406. data/app/views/gaku/admin/grading_methods/index.html.slim +0 -20
  407. data/app/views/gaku/admin/grading_methods/new.js.erb +0 -3
  408. data/app/views/gaku/admin/grading_methods/update.js.erb +0 -3
  409. data/app/views/gaku/admin/presets/defaults.html.slim +0 -50
  410. data/app/views/gaku/admin/presets/grading.html.slim +0 -12
  411. data/app/views/gaku/admin/presets/locale.html.slim +0 -10
  412. data/app/views/gaku/admin/presets/names.html.slim +0 -20
  413. data/app/views/gaku/admin/presets/output_formats.html.slim +0 -19
  414. data/app/views/gaku/admin/presets/pagination.html.slim +0 -19
  415. data/app/views/gaku/admin/presets/students.html.slim +0 -21
  416. data/app/views/gaku/admin/roles/_fields.html.slim +0 -5
  417. data/app/views/gaku/admin/roles/_form.html.slim +0 -3
  418. data/app/views/gaku/admin/roles/_form_fields.html.slim +0 -1
  419. data/app/views/gaku/admin/roles/_modal.html.slim +0 -6
  420. data/app/views/gaku/admin/roles/_role.html.slim +0 -2
  421. data/app/views/gaku/admin/roles/create.js.erb +0 -7
  422. data/app/views/gaku/admin/roles/destroy.js.erb +0 -2
  423. data/app/views/gaku/admin/roles/edit.js.erb +0 -3
  424. data/app/views/gaku/admin/roles/index.html.slim +0 -20
  425. data/app/views/gaku/admin/roles/new.js.erb +0 -3
  426. data/app/views/gaku/admin/roles/update.js.erb +0 -3
  427. data/app/views/gaku/admin/school_years/_fields.html.slim +0 -7
  428. data/app/views/gaku/admin/school_years/_form.html.slim +0 -3
  429. data/app/views/gaku/admin/school_years/_form_fields.html.slim +0 -5
  430. data/app/views/gaku/admin/school_years/_modal.html.slim +0 -7
  431. data/app/views/gaku/admin/school_years/_school_year.html.slim +0 -3
  432. data/app/views/gaku/admin/school_years/_show_table.html.slim +0 -10
  433. data/app/views/gaku/admin/school_years/create.js.erb +0 -10
  434. data/app/views/gaku/admin/school_years/destroy.js.erb +0 -2
  435. data/app/views/gaku/admin/school_years/edit.js.erb +0 -5
  436. data/app/views/gaku/admin/school_years/index.html.slim +0 -21
  437. data/app/views/gaku/admin/school_years/new.js.erb +0 -5
  438. data/app/views/gaku/admin/school_years/semesters/_fields.html.slim +0 -7
  439. data/app/views/gaku/admin/school_years/semesters/_form.html.slim +0 -3
  440. data/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +0 -5
  441. data/app/views/gaku/admin/school_years/semesters/_modal.html.slim +0 -7
  442. data/app/views/gaku/admin/school_years/semesters/_semester.html.slim +0 -3
  443. data/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +0 -22
  444. data/app/views/gaku/admin/school_years/semesters/create.js.erb +0 -10
  445. data/app/views/gaku/admin/school_years/semesters/destroy.js.erb +0 -2
  446. data/app/views/gaku/admin/school_years/semesters/edit.js.erb +0 -6
  447. data/app/views/gaku/admin/school_years/semesters/new.js.erb +0 -5
  448. data/app/views/gaku/admin/school_years/semesters/update.js.erb +0 -8
  449. data/app/views/gaku/admin/school_years/show.html.slim +0 -15
  450. data/app/views/gaku/admin/school_years/update.js.erb +0 -8
  451. data/app/views/gaku/admin/schools/_fields.html.slim +0 -9
  452. data/app/views/gaku/admin/schools/_form.html.slim +0 -3
  453. data/app/views/gaku/admin/schools/_form_fields.html.slim +0 -25
  454. data/app/views/gaku/admin/schools/_modal.html.slim +0 -6
  455. data/app/views/gaku/admin/schools/_school.html.slim +0 -2
  456. data/app/views/gaku/admin/schools/_school_unit.html.slim +0 -6
  457. data/app/views/gaku/admin/schools/_show_table.html.slim +0 -35
  458. data/app/views/gaku/admin/schools/campuses/_campus.html.slim +0 -7
  459. data/app/views/gaku/admin/schools/campuses/_campus_unit.html.slim +0 -6
  460. data/app/views/gaku/admin/schools/campuses/_campuses.html.slim +0 -20
  461. data/app/views/gaku/admin/schools/campuses/_form.html.slim +0 -3
  462. data/app/views/gaku/admin/schools/campuses/_modal.html.slim +0 -6
  463. data/app/views/gaku/admin/schools/campuses/_picture.html.slim +0 -10
  464. data/app/views/gaku/admin/schools/campuses/_show_table.html.slim +0 -10
  465. data/app/views/gaku/admin/schools/campuses/_upload_picture.html.slim +0 -7
  466. data/app/views/gaku/admin/schools/campuses/addresses/_address.html.slim +0 -6
  467. data/app/views/gaku/admin/schools/campuses/addresses/_address_row_fields.html.slim +0 -4
  468. data/app/views/gaku/admin/schools/campuses/addresses/_addresses.html.slim +0 -24
  469. data/app/views/gaku/admin/schools/campuses/addresses/_form.html.slim +0 -3
  470. data/app/views/gaku/admin/schools/campuses/addresses/_modal.html.slim +0 -7
  471. data/app/views/gaku/admin/schools/campuses/addresses/create.js.erb +0 -6
  472. data/app/views/gaku/admin/schools/campuses/addresses/destroy.js.erb +0 -2
  473. data/app/views/gaku/admin/schools/campuses/addresses/edit.js.erb +0 -4
  474. data/app/views/gaku/admin/schools/campuses/addresses/new.js.erb +0 -4
  475. data/app/views/gaku/admin/schools/campuses/addresses/update.js.erb +0 -4
  476. data/app/views/gaku/admin/schools/campuses/create.js.erb +0 -7
  477. data/app/views/gaku/admin/schools/campuses/destroy.js.erb +0 -2
  478. data/app/views/gaku/admin/schools/campuses/edit.js.erb +0 -3
  479. data/app/views/gaku/admin/schools/campuses/new.js.erb +0 -3
  480. data/app/views/gaku/admin/schools/campuses/show.html.slim +0 -21
  481. data/app/views/gaku/admin/schools/campuses/update.js.erb +0 -3
  482. data/app/views/gaku/admin/schools/create.js.erb +0 -7
  483. data/app/views/gaku/admin/schools/destroy.js.erb +0 -2
  484. data/app/views/gaku/admin/schools/edit.js.erb +0 -3
  485. data/app/views/gaku/admin/schools/edit_master.html.slim +0 -17
  486. data/app/views/gaku/admin/schools/index.html.slim +0 -29
  487. data/app/views/gaku/admin/schools/new.js.erb +0 -3
  488. data/app/views/gaku/admin/schools/programs/_fields.html.slim +0 -9
  489. data/app/views/gaku/admin/schools/programs/_form.html.slim +0 -20
  490. data/app/views/gaku/admin/schools/programs/_form_fields.html.slim +0 -6
  491. data/app/views/gaku/admin/schools/programs/_modal.html.slim +0 -5
  492. data/app/views/gaku/admin/schools/programs/_program.html.slim +0 -2
  493. data/app/views/gaku/admin/schools/programs/_programs.html.slim +0 -25
  494. data/app/views/gaku/admin/schools/programs/create.js.erb +0 -7
  495. data/app/views/gaku/admin/schools/programs/destroy.js.erb +0 -2
  496. data/app/views/gaku/admin/schools/programs/edit.js.erb +0 -3
  497. data/app/views/gaku/admin/schools/programs/new.js.erb +0 -3
  498. data/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +0 -8
  499. data/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +0 -10
  500. data/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +0 -7
  501. data/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +0 -10
  502. data/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +0 -6
  503. data/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +0 -10
  504. data/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +0 -3
  505. data/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +0 -3
  506. data/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +0 -3
  507. data/app/views/gaku/admin/schools/programs/update.js.erb +0 -3
  508. data/app/views/gaku/admin/schools/show.html.slim +0 -26
  509. data/app/views/gaku/admin/schools/update.js.erb +0 -7
  510. data/app/views/gaku/admin/shared/_picture.html.slim +0 -10
  511. data/app/views/gaku/admin/shared/_upload_picture.html.slim +0 -7
  512. data/app/views/gaku/admin/specialties/_fields.html.slim +0 -6
  513. data/app/views/gaku/admin/specialties/_form.html.slim +0 -3
  514. data/app/views/gaku/admin/specialties/_form_fields.html.slim +0 -3
  515. data/app/views/gaku/admin/specialties/_modal.html.slim +0 -6
  516. data/app/views/gaku/admin/specialties/_specialty.html.slim +0 -2
  517. data/app/views/gaku/admin/specialties/create.js.erb +0 -7
  518. data/app/views/gaku/admin/specialties/destroy.js.erb +0 -2
  519. data/app/views/gaku/admin/specialties/edit.js.erb +0 -3
  520. data/app/views/gaku/admin/specialties/index.html.slim +0 -20
  521. data/app/views/gaku/admin/specialties/new.js.erb +0 -3
  522. data/app/views/gaku/admin/specialties/update.js.erb +0 -3
  523. data/app/views/gaku/admin/states/_country_select_form.html.slim +0 -4
  524. data/app/views/gaku/admin/states/_country_table.html.slim +0 -11
  525. data/app/views/gaku/admin/states/_fields.html.slim +0 -8
  526. data/app/views/gaku/admin/states/_form.html.slim +0 -4
  527. data/app/views/gaku/admin/states/_form_fields.html.slim +0 -14
  528. data/app/views/gaku/admin/states/_modal.html.slim +0 -6
  529. data/app/views/gaku/admin/states/_state.html.slim +0 -2
  530. data/app/views/gaku/admin/states/country_states.js.erb +0 -1
  531. data/app/views/gaku/admin/states/create.js.erb +0 -7
  532. data/app/views/gaku/admin/states/destroy.js.erb +0 -2
  533. data/app/views/gaku/admin/states/edit.js.erb +0 -3
  534. data/app/views/gaku/admin/states/index.html.slim +0 -15
  535. data/app/views/gaku/admin/states/new.js.erb +0 -3
  536. data/app/views/gaku/admin/states/update.js.erb +0 -3
  537. data/app/views/gaku/admin/system_tools/index.html.slim +0 -1
  538. data/app/views/gaku/admin/templates/_fields.html.slim +0 -8
  539. data/app/views/gaku/admin/templates/_form.html.slim +0 -3
  540. data/app/views/gaku/admin/templates/_form_fields.html.slim +0 -4
  541. data/app/views/gaku/admin/templates/_modal.html.slim +0 -6
  542. data/app/views/gaku/admin/templates/_template.html.slim +0 -2
  543. data/app/views/gaku/admin/templates/destroy.js.erb +0 -2
  544. data/app/views/gaku/admin/templates/edit.js.erb +0 -4
  545. data/app/views/gaku/admin/templates/index.html.slim +0 -20
  546. data/app/views/gaku/admin/templates/new.js.erb +0 -3
  547. data/app/views/gaku/admin/users/_fields.html.slim +0 -5
  548. data/app/views/gaku/admin/users/_form.html.slim +0 -3
  549. data/app/views/gaku/admin/users/_form_fields.html.slim +0 -14
  550. data/app/views/gaku/admin/users/_modal.html.slim +0 -6
  551. data/app/views/gaku/admin/users/_user.html.slim +0 -2
  552. data/app/views/gaku/admin/users/create.js.erb +0 -7
  553. data/app/views/gaku/admin/users/destroy.js.erb +0 -2
  554. data/app/views/gaku/admin/users/edit.js.erb +0 -3
  555. data/app/views/gaku/admin/users/index.html.slim +0 -21
  556. data/app/views/gaku/admin/users/new.js.erb +0 -3
  557. data/app/views/gaku/admin/users/update.js.erb +0 -4
  558. data/app/views/gaku/attachments/destroy.js.erb +0 -1
  559. data/app/views/gaku/attachments/edit.js.erb +0 -3
  560. data/app/views/gaku/attachments/new.js.erb +0 -1
  561. data/app/views/gaku/attachments/recover_attachment.js.erb +0 -1
  562. data/app/views/gaku/attachments/soft_delete.js.erb +0 -3
  563. data/app/views/gaku/class_groups/_class_group.html.slim +0 -7
  564. data/app/views/gaku/class_groups/_class_group_modal.html.slim +0 -7
  565. data/app/views/gaku/class_groups/_class_group_unit.html.slim +0 -5
  566. data/app/views/gaku/class_groups/_class_groups.html.slim +0 -25
  567. data/app/views/gaku/class_groups/_form.html.slim +0 -8
  568. data/app/views/gaku/class_groups/_form_fields.html.slim +0 -6
  569. data/app/views/gaku/class_groups/_tabs.html.slim +0 -32
  570. data/app/views/gaku/class_groups/courses/_course.html.slim +0 -4
  571. data/app/views/gaku/class_groups/courses/_courses.html.slim +0 -19
  572. data/app/views/gaku/class_groups/courses/_form.html.slim +0 -5
  573. data/app/views/gaku/class_groups/courses/create.js.erb +0 -8
  574. data/app/views/gaku/class_groups/courses/destroy.js.erb +0 -3
  575. data/app/views/gaku/class_groups/courses/new.js.erb +0 -3
  576. data/app/views/gaku/class_groups/create.js.erb +0 -6
  577. data/app/views/gaku/class_groups/destroy.js.erb +0 -6
  578. data/app/views/gaku/class_groups/edit.js.erb +0 -3
  579. data/app/views/gaku/class_groups/index.html.slim +0 -14
  580. data/app/views/gaku/class_groups/new.js.erb +0 -3
  581. data/app/views/gaku/class_groups/semester_class_groups/_fields.html.slim +0 -4
  582. data/app/views/gaku/class_groups/semester_class_groups/_form.html.slim +0 -4
  583. data/app/views/gaku/class_groups/semester_class_groups/_form_fields.html.slim +0 -3
  584. data/app/views/gaku/class_groups/semester_class_groups/_modal.html.slim +0 -5
  585. data/app/views/gaku/class_groups/semester_class_groups/_semester.html.slim +0 -3
  586. data/app/views/gaku/class_groups/semester_class_groups/_semester_modal.html.slim +0 -6
  587. data/app/views/gaku/class_groups/semester_class_groups/_semesters.html.slim +0 -19
  588. data/app/views/gaku/class_groups/semester_class_groups/create.js.erb +0 -6
  589. data/app/views/gaku/class_groups/semester_class_groups/destroy.js.erb +0 -3
  590. data/app/views/gaku/class_groups/semester_class_groups/edit.js.erb +0 -3
  591. data/app/views/gaku/class_groups/semester_class_groups/new.js.erb +0 -3
  592. data/app/views/gaku/class_groups/semester_class_groups/update.js.erb +0 -3
  593. data/app/views/gaku/class_groups/show.html.slim +0 -25
  594. data/app/views/gaku/class_groups/student_chooser.js.erb +0 -2
  595. data/app/views/gaku/class_groups/students/_student.html.slim +0 -5
  596. data/app/views/gaku/class_groups/students/_students.html.slim +0 -19
  597. data/app/views/gaku/class_groups/students/destroy.js.erb +0 -3
  598. data/app/views/gaku/class_groups/students/enroll_students.js.erb +0 -17
  599. data/app/views/gaku/class_groups/students/new.js.erb +0 -3
  600. data/app/views/gaku/class_groups/update.js.erb +0 -8
  601. data/app/views/gaku/contacts/_contact.html.slim +0 -5
  602. data/app/views/gaku/contacts/_contacts.html.slim +0 -24
  603. data/app/views/gaku/contacts/_fields.html.slim +0 -13
  604. data/app/views/gaku/contacts/_form.html.slim +0 -4
  605. data/app/views/gaku/contacts/_form_fields.html.slim +0 -14
  606. data/app/views/gaku/contacts/_modal.html.slim +0 -6
  607. data/app/views/gaku/contacts/_primary_field.html.slim +0 -13
  608. data/app/views/gaku/contacts/create.js.erb +0 -21
  609. data/app/views/gaku/contacts/destroy.js.erb +0 -9
  610. data/app/views/gaku/contacts/edit.js.erb +0 -4
  611. data/app/views/gaku/contacts/make_primary.js.erb +0 -6
  612. data/app/views/gaku/contacts/new.js.erb +0 -3
  613. data/app/views/gaku/contacts/recovery.js.erb +0 -1
  614. data/app/views/gaku/contacts/soft_delete.js.erb +0 -8
  615. data/app/views/gaku/contacts/update.js.erb +0 -14
  616. data/app/views/gaku/course_groups/_course_group.html.slim +0 -3
  617. data/app/views/gaku/course_groups/_course_group_unit.html.slim +0 -4
  618. data/app/views/gaku/course_groups/_course_groups.html.slim +0 -7
  619. data/app/views/gaku/course_groups/_delete_confirm.html.slim +0 -11
  620. data/app/views/gaku/course_groups/_fields.html.slim +0 -1
  621. data/app/views/gaku/course_groups/_form.html.slim +0 -3
  622. data/app/views/gaku/course_groups/_form_fields.html.slim +0 -1
  623. data/app/views/gaku/course_groups/_modal.html.slim +0 -6
  624. data/app/views/gaku/course_groups/course_group_enrollments/_course.html.slim +0 -4
  625. data/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +0 -23
  626. data/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +0 -4
  627. data/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +0 -7
  628. data/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +0 -2
  629. data/app/views/gaku/course_groups/course_group_enrollments/new.js.erb +0 -3
  630. data/app/views/gaku/course_groups/create.js.erb +0 -10
  631. data/app/views/gaku/course_groups/destroy.js.erb +0 -2
  632. data/app/views/gaku/course_groups/edit.js.erb +0 -3
  633. data/app/views/gaku/course_groups/index.html.slim +0 -15
  634. data/app/views/gaku/course_groups/index.js.erb +0 -1
  635. data/app/views/gaku/course_groups/new.js.erb +0 -3
  636. data/app/views/gaku/course_groups/recovery.js.erb +0 -2
  637. data/app/views/gaku/course_groups/show.html.slim +0 -30
  638. data/app/views/gaku/course_groups/update.js.erb +0 -7
  639. data/app/views/gaku/courses/_course.html.slim +0 -2
  640. data/app/views/gaku/courses/_course_unit.html.slim +0 -5
  641. data/app/views/gaku/courses/_courses.html.slim +0 -27
  642. data/app/views/gaku/courses/_form.html.slim +0 -7
  643. data/app/views/gaku/courses/_form_fields.html.slim +0 -4
  644. data/app/views/gaku/courses/_modal.html.slim +0 -6
  645. data/app/views/gaku/courses/_tabs.html.slim +0 -25
  646. data/app/views/gaku/courses/assignments/_assignments.html.slim +0 -2
  647. data/app/views/gaku/courses/create.js.erb +0 -7
  648. data/app/views/gaku/courses/destroy.js.erb +0 -7
  649. data/app/views/gaku/courses/edit.js.erb +0 -4
  650. data/app/views/gaku/courses/enrollments/_enrolled.html.slim +0 -7
  651. data/app/views/gaku/courses/enrollments/_enrollments.html.slim +0 -29
  652. data/app/views/gaku/courses/enrollments/_errors_modal.html.slim +0 -11
  653. data/app/views/gaku/courses/enrollments/class_groups/_form.html.slim +0 -3
  654. data/app/views/gaku/courses/enrollments/class_groups/enroll.js.erb +0 -16
  655. data/app/views/gaku/courses/enrollments/class_groups/new.js.erb +0 -4
  656. data/app/views/gaku/courses/enrollments/error.js.erb +0 -2
  657. data/app/views/gaku/courses/enrollments/students/enroll_students.js.erb +0 -11
  658. data/app/views/gaku/courses/exams/_exam.html.slim +0 -5
  659. data/app/views/gaku/courses/exams/_exams.html.slim +0 -14
  660. data/app/views/gaku/courses/index.html.slim +0 -14
  661. data/app/views/gaku/courses/new.js.erb +0 -3
  662. data/app/views/gaku/courses/semester_courses/_fields.html.slim +0 -4
  663. data/app/views/gaku/courses/semester_courses/_form.html.slim +0 -4
  664. data/app/views/gaku/courses/semester_courses/_form_fields.html.slim +0 -3
  665. data/app/views/gaku/courses/semester_courses/_modal.html.slim +0 -6
  666. data/app/views/gaku/courses/semester_courses/_semester_course.html.slim +0 -3
  667. data/app/views/gaku/courses/semester_courses/_semester_courses.html.slim +0 -18
  668. data/app/views/gaku/courses/semester_courses/create.js.erb +0 -6
  669. data/app/views/gaku/courses/semester_courses/destroy.js.erb +0 -3
  670. data/app/views/gaku/courses/semester_courses/edit.js.erb +0 -3
  671. data/app/views/gaku/courses/semester_courses/new.js.erb +0 -3
  672. data/app/views/gaku/courses/semester_courses/update.js.erb +0 -3
  673. data/app/views/gaku/courses/show.html.slim +0 -32
  674. data/app/views/gaku/courses/student_chooser.js.erb +0 -2
  675. data/app/views/gaku/courses/update.js.erb +0 -16
  676. data/app/views/gaku/devise/confirmations/new.html.slim +0 -9
  677. data/app/views/gaku/devise/mailer/confirmation_instructions.html.slim +0 -4
  678. data/app/views/gaku/devise/mailer/reset_password_instructions.html.slim +0 -6
  679. data/app/views/gaku/devise/mailer/unlock_instructions.html.slim +0 -5
  680. data/app/views/gaku/devise/passwords/edit.html.slim +0 -14
  681. data/app/views/gaku/devise/passwords/new.html.slim +0 -8
  682. data/app/views/gaku/devise/registrations/edit.html.slim +0 -31
  683. data/app/views/gaku/devise/registrations/new.html.slim +0 -29
  684. data/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +0 -27
  685. data/app/views/gaku/devise/sessions/new.html.slim +0 -27
  686. data/app/views/gaku/devise/shared/_links.html.erb +0 -25
  687. data/app/views/gaku/devise/unlocks/new.html.slim +0 -9
  688. data/app/views/gaku/exam_divisions/_form.html.erb +0 -29
  689. data/app/views/gaku/exam_divisions/edit.html.erb +0 -6
  690. data/app/views/gaku/exam_divisions/index.html.erb +0 -27
  691. data/app/views/gaku/exam_divisions/new.html.erb +0 -5
  692. data/app/views/gaku/exam_divisions/show.html.erb +0 -20
  693. data/app/views/gaku/exams/_exam.html.slim +0 -2
  694. data/app/views/gaku/exams/_fields.html.slim +0 -8
  695. data/app/views/gaku/exams/_form.html.slim +0 -19
  696. data/app/views/gaku/exams/_form_fields.html.slim +0 -13
  697. data/app/views/gaku/exams/_modal.html.slim +0 -6
  698. data/app/views/gaku/exams/_show_table.html.slim +0 -15
  699. data/app/views/gaku/exams/_weight_check_widget.html.slim +0 -20
  700. data/app/views/gaku/exams/create.js.erb +0 -6
  701. data/app/views/gaku/exams/destroy.js.erb +0 -2
  702. data/app/views/gaku/exams/edit.js +0 -3
  703. data/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +0 -4
  704. data/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +0 -3
  705. data/app/views/gaku/exams/exam_portions/_exam_portion_unit.html.slim +0 -3
  706. data/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +0 -3
  707. data/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +0 -14
  708. data/app/views/gaku/exams/exam_portions/_form.html.slim +0 -3
  709. data/app/views/gaku/exams/exam_portions/_modal.html.slim +0 -8
  710. data/app/views/gaku/exams/exam_portions/_show_table.html.slim +0 -12
  711. data/app/views/gaku/exams/exam_portions/attachments/_attachment.html.slim +0 -2
  712. data/app/views/gaku/exams/exam_portions/attachments/_attachments.html.slim +0 -23
  713. data/app/views/gaku/exams/exam_portions/attachments/_form.html.slim +0 -6
  714. data/app/views/gaku/exams/exam_portions/attachments/_form_fields.html.slim +0 -3
  715. data/app/views/gaku/exams/exam_portions/attachments/_modal.html.slim +0 -6
  716. data/app/views/gaku/exams/exam_portions/attachments/create.js.erb +0 -0
  717. data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD +0 -0
  718. data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD_0 +0 -0
  719. data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master +0 -0
  720. data/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master_0 +0 -0
  721. data/app/views/gaku/exams/exam_portions/attachments/new.js.erb +0 -3
  722. data/app/views/gaku/exams/exam_portions/create.js.erb +0 -48
  723. data/app/views/gaku/exams/exam_portions/destroy.js.erb +0 -8
  724. data/app/views/gaku/exams/exam_portions/edit.js.erb +0 -3
  725. data/app/views/gaku/exams/exam_portions/new.js.erb +0 -3
  726. data/app/views/gaku/exams/exam_portions/show.html.slim +0 -8
  727. data/app/views/gaku/exams/exam_portions/update.js.erb +0 -27
  728. data/app/views/gaku/exams/export.xls.rb +0 -67
  729. data/app/views/gaku/exams/grading.html.slim +0 -34
  730. data/app/views/gaku/exams/index.html.slim +0 -21
  731. data/app/views/gaku/exams/new.js.erb +0 -3
  732. data/app/views/gaku/exams/recovery.js.erb +0 -1
  733. data/app/views/gaku/exams/show.html.slim +0 -33
  734. data/app/views/gaku/exams/update.js.erb +0 -5
  735. data/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +0 -9
  736. data/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +0 -6
  737. data/app/views/gaku/extracurricular_activities/_fields.html.slim +0 -1
  738. data/app/views/gaku/extracurricular_activities/_form.html.slim +0 -3
  739. data/app/views/gaku/extracurricular_activities/_form_fields.html.slim +0 -3
  740. data/app/views/gaku/extracurricular_activities/_modal.html.slim +0 -7
  741. data/app/views/gaku/extracurricular_activities/_tabs.html.slim +0 -14
  742. data/app/views/gaku/extracurricular_activities/create.js.erb +0 -6
  743. data/app/views/gaku/extracurricular_activities/destroy.js.erb +0 -2
  744. data/app/views/gaku/extracurricular_activities/edit.js.erb +0 -3
  745. data/app/views/gaku/extracurricular_activities/index.html.slim +0 -14
  746. data/app/views/gaku/extracurricular_activities/index.js.erb +0 -2
  747. data/app/views/gaku/extracurricular_activities/new.js.erb +0 -3
  748. data/app/views/gaku/extracurricular_activities/show.html.slim +0 -20
  749. data/app/views/gaku/extracurricular_activities/student_chooser.js.erb +0 -2
  750. data/app/views/gaku/extracurricular_activities/students/_student.html.slim +0 -5
  751. data/app/views/gaku/extracurricular_activities/students/_students.html.slim +0 -19
  752. data/app/views/gaku/extracurricular_activities/students/destroy.js.erb +0 -3
  753. data/app/views/gaku/extracurricular_activities/students/enroll_students.js.erb +0 -11
  754. data/app/views/gaku/extracurricular_activities/update.js.erb +0 -6
  755. data/app/views/gaku/home/_user_info.html.slim +0 -7
  756. data/app/views/gaku/home/_user_menu.html.slim +0 -2
  757. data/app/views/gaku/home/index.html.slim +0 -13
  758. data/app/views/gaku/layouts/admin/index.html.slim +0 -15
  759. data/app/views/gaku/layouts/edit.html.slim +0 -9
  760. data/app/views/gaku/layouts/gaku.html.slim +0 -23
  761. data/app/views/gaku/layouts/index.html.slim +0 -14
  762. data/app/views/gaku/layouts/show.html.slim +0 -10
  763. data/app/views/gaku/notes/_buttons.html.slim +0 -5
  764. data/app/views/gaku/notes/_fields.html.slim +0 -2
  765. data/app/views/gaku/notes/_form.html.slim +0 -6
  766. data/app/views/gaku/notes/_form_fields.html.slim +0 -6
  767. data/app/views/gaku/notes/_modal.html.slim +0 -6
  768. data/app/views/gaku/notes/_note.html.slim +0 -4
  769. data/app/views/gaku/notes/_notes.html.slim +0 -19
  770. data/app/views/gaku/notes/_show_modal.html.slim +0 -4
  771. data/app/views/gaku/notes/create.js.erb +0 -11
  772. data/app/views/gaku/notes/destroy.js.erb +0 -4
  773. data/app/views/gaku/notes/edit.js.erb +0 -3
  774. data/app/views/gaku/notes/new.js.erb +0 -3
  775. data/app/views/gaku/notes/show.js.erb +0 -3
  776. data/app/views/gaku/notes/update.js.erb +0 -4
  777. data/app/views/gaku/shared/_delete_modal.html.slim +0 -7
  778. data/app/views/gaku/shared/_delete_modal_remote.html.slim +0 -7
  779. data/app/views/gaku/shared/_errors.html.slim +0 -6
  780. data/app/views/gaku/shared/_external_school_record.html.slim +0 -36
  781. data/app/views/gaku/shared/_flash.html.slim +0 -4
  782. data/app/views/gaku/shared/_language_bar.html.slim +0 -8
  783. data/app/views/gaku/shared/_login_widget.html.slim +0 -27
  784. data/app/views/gaku/shared/_manage_buttons.html.slim +0 -4
  785. data/app/views/gaku/shared/_menubar.html.slim +0 -8
  786. data/app/views/gaku/shared/_modal_config.html.slim +0 -37
  787. data/app/views/gaku/shared/_multi_errors.html.slim +0 -6
  788. data/app/views/gaku/shared/_picture.html.slim +0 -12
  789. data/app/views/gaku/shared/_upload_picture.html.slim +0 -7
  790. data/app/views/gaku/shared/error.js.erb +0 -2
  791. data/app/views/gaku/shared/fields/_address_fields.html.slim +0 -7
  792. data/app/views/gaku/shared/fields/_attachment_fields.html.slim +0 -10
  793. data/app/views/gaku/shared/fields/_class_group_fields.html.slim +0 -3
  794. data/app/views/gaku/shared/fields/_course_fields.html.slim +0 -4
  795. data/app/views/gaku/shared/fields/_course_show_fields.html.slim +0 -3
  796. data/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +0 -8
  797. data/app/views/gaku/shared/fields/_person_edit_table.html.slim +0 -7
  798. data/app/views/gaku/shared/fields/_person_fields.html.slim +0 -4
  799. data/app/views/gaku/shared/fields/_person_show_table.html.slim +0 -3
  800. data/app/views/gaku/shared/fields/_semester_fields.html.slim +0 -1
  801. data/app/views/gaku/shared/fields/_student_fields.html.slim +0 -22
  802. data/app/views/gaku/shared/fields/_syllabus_fields.html.slim +0 -5
  803. data/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +0 -15
  804. data/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +0 -16
  805. data/app/views/gaku/shared/menu/_admin.html.erb +0 -105
  806. data/app/views/gaku/shared/multi_error.js.erb +0 -2
  807. data/app/views/gaku/shared/notice.js.erb +0 -2
  808. data/app/views/gaku/shared/overrides/students/_import_link.html.slim +0 -0
  809. data/app/views/gaku/shared/overrides/syllabuses/_import_link.html.slim +0 -0
  810. data/app/views/gaku/shared/student/_academic.html.slim +0 -18
  811. data/app/views/gaku/shared/student/_edit.html.slim +0 -20
  812. data/app/views/gaku/shared/student/_personal.html.slim +0 -6
  813. data/app/views/gaku/shared/student/_show.html.slim +0 -14
  814. data/app/views/gaku/shared/student/_show_table.html.slim +0 -51
  815. data/app/views/gaku/shared/student/_tabs.html.slim +0 -36
  816. data/app/views/gaku/shared/student_chooser/_chooser.html.slim +0 -36
  817. data/app/views/gaku/shared/student_chooser/_class_group.html.slim +0 -5
  818. data/app/views/gaku/shared/student_chooser/_course.html.slim +0 -5
  819. data/app/views/gaku/shared/student_chooser/_extracurricular_activity.html.slim +0 -5
  820. data/app/views/gaku/shared/student_chooser/_modal.html.slim +0 -4
  821. data/app/views/gaku/shared/student_chooser/_student.html.slim +0 -18
  822. data/app/views/gaku/states/_no_states_select.html.slim +0 -1
  823. data/app/views/gaku/states/_states_select.html.slim +0 -1
  824. data/app/views/gaku/states/index.js.erb +0 -5
  825. data/app/views/gaku/students/_delete_modal.html.slim +0 -5
  826. data/app/views/gaku/students/_form.html.slim +0 -3
  827. data/app/views/gaku/students/_form_fields.html.slim +0 -19
  828. data/app/views/gaku/students/_modal.html.slim +0 -6
  829. data/app/views/gaku/students/_student.html.slim +0 -6
  830. data/app/views/gaku/students/_student_unit.html.slim +0 -5
  831. data/app/views/gaku/students/_students.html.slim +0 -17
  832. data/app/views/gaku/students/class_group_enrollments/_new_modal.html.slim +0 -28
  833. data/app/views/gaku/students/class_group_enrollments/create.js.erb +0 -11
  834. data/app/views/gaku/students/class_group_enrollments/new.js.erb +0 -2
  835. data/app/views/gaku/students/commute_methods/_commute_method.html.slim +0 -6
  836. data/app/views/gaku/students/commute_methods/_modal.html.slim +0 -6
  837. data/app/views/gaku/students/commute_methods/create.js.erb +0 -3
  838. data/app/views/gaku/students/commute_methods/edit.js.erb +0 -5
  839. data/app/views/gaku/students/commute_methods/new.js.erb +0 -4
  840. data/app/views/gaku/students/commute_methods/update.js.erb +0 -3
  841. data/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +0 -5
  842. data/app/views/gaku/students/course_enrollments/_course_enrollment_unit.html.slim +0 -3
  843. data/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +0 -21
  844. data/app/views/gaku/students/course_enrollments/_errors_modal.html.slim +0 -11
  845. data/app/views/gaku/students/course_enrollments/_form.html.slim +0 -5
  846. data/app/views/gaku/students/course_enrollments/create.js.erb +0 -10
  847. data/app/views/gaku/students/course_enrollments/destroy.js.erb +0 -3
  848. data/app/views/gaku/students/course_enrollments/error.js.erb +0 -2
  849. data/app/views/gaku/students/course_enrollments/new.js.erb +0 -3
  850. data/app/views/gaku/students/create.js.erb +0 -8
  851. data/app/views/gaku/students/destroy.js.erb +0 -2
  852. data/app/views/gaku/students/edit.html.slim +0 -9
  853. data/app/views/gaku/students/edit.js.erb +0 -3
  854. data/app/views/gaku/students/guardians/_edit_table.html.slim +0 -9
  855. data/app/views/gaku/students/guardians/_form.html.slim +0 -3
  856. data/app/views/gaku/students/guardians/_form_fields.html.slim +0 -4
  857. data/app/views/gaku/students/guardians/_guardian.html.slim +0 -2
  858. data/app/views/gaku/students/guardians/_guardian_unit.html.slim +0 -12
  859. data/app/views/gaku/students/guardians/_guardians.html.slim +0 -26
  860. data/app/views/gaku/students/guardians/_modal.html.slim +0 -7
  861. data/app/views/gaku/students/guardians/_picture.html.slim +0 -12
  862. data/app/views/gaku/students/guardians/_show_table.html.slim +0 -13
  863. data/app/views/gaku/students/guardians/_tabs.html.slim +0 -15
  864. data/app/views/gaku/students/guardians/_upload_picture.html.slim +0 -7
  865. data/app/views/gaku/students/guardians/create.js.erb +0 -7
  866. data/app/views/gaku/students/guardians/destroy.js.erb +0 -4
  867. data/app/views/gaku/students/guardians/edit.html.slim +0 -7
  868. data/app/views/gaku/students/guardians/edit.js.erb +0 -3
  869. data/app/views/gaku/students/guardians/new.js.erb +0 -3
  870. data/app/views/gaku/students/guardians/recovery.js.erb +0 -1
  871. data/app/views/gaku/students/guardians/show.html.slim +0 -14
  872. data/app/views/gaku/students/guardians/update.js.erb +0 -4
  873. data/app/views/gaku/students/index.html.slim +0 -16
  874. data/app/views/gaku/students/index.js.erb +0 -13
  875. data/app/views/gaku/students/index.pdf.thinreports +0 -17
  876. data/app/views/gaku/students/new.js.erb +0 -3
  877. data/app/views/gaku/students/recovery.js.erb +0 -1
  878. data/app/views/gaku/students/search/_address.html.slim +0 -36
  879. data/app/views/gaku/students/search/_extended.slim +0 -134
  880. data/app/views/gaku/students/search/_form.html.slim +0 -25
  881. data/app/views/gaku/students/search/_student.html.slim +0 -24
  882. data/app/views/gaku/students/show.html.slim +0 -1
  883. data/app/views/gaku/students/show.pdf.thinreports +0 -8
  884. data/app/views/gaku/students/simple_grades/_edit.html.slim +0 -8
  885. data/app/views/gaku/students/simple_grades/_fields.html.slim +0 -6
  886. data/app/views/gaku/students/simple_grades/_form.html.slim +0 -6
  887. data/app/views/gaku/students/simple_grades/_form_fields.html.slim +0 -3
  888. data/app/views/gaku/students/simple_grades/_index.html.slim +0 -19
  889. data/app/views/gaku/students/simple_grades/_index_modal.html.slim +0 -4
  890. data/app/views/gaku/students/simple_grades/_simple_grade.html.slim +0 -3
  891. data/app/views/gaku/students/simple_grades/_simple_grades.html.slim +0 -2
  892. data/app/views/gaku/students/simple_grades/create.js.erb +0 -10
  893. data/app/views/gaku/students/simple_grades/destroy.js.erb +0 -4
  894. data/app/views/gaku/students/simple_grades/edit.js.erb +0 -2
  895. data/app/views/gaku/students/simple_grades/index.js.erb +0 -5
  896. data/app/views/gaku/students/simple_grades/new.js.erb +0 -3
  897. data/app/views/gaku/students/simple_grades/update.js.erb +0 -4
  898. data/app/views/gaku/students/student_achievements/_achievements_tab.html.slim +0 -12
  899. data/app/views/gaku/students/student_achievements/_edit.html.slim +0 -8
  900. data/app/views/gaku/students/student_achievements/_fields.html.slim +0 -8
  901. data/app/views/gaku/students/student_achievements/_form.html.slim +0 -6
  902. data/app/views/gaku/students/student_achievements/_form_fields.html.slim +0 -1
  903. data/app/views/gaku/students/student_achievements/_index.html.slim +0 -20
  904. data/app/views/gaku/students/student_achievements/_index_modal.html.slim +0 -4
  905. data/app/views/gaku/students/student_achievements/_student_achievement.html.slim +0 -3
  906. data/app/views/gaku/students/student_achievements/_student_achievements.html.slim +0 -2
  907. data/app/views/gaku/students/student_achievements/create.js.erb +0 -10
  908. data/app/views/gaku/students/student_achievements/destroy.js.erb +0 -4
  909. data/app/views/gaku/students/student_achievements/edit.js.erb +0 -2
  910. data/app/views/gaku/students/student_achievements/index.js.erb +0 -3
  911. data/app/views/gaku/students/student_achievements/new.js.erb +0 -3
  912. data/app/views/gaku/students/student_achievements/update.js.erb +0 -5
  913. data/app/views/gaku/students/student_specialties/_edit.html.slim +0 -8
  914. data/app/views/gaku/students/student_specialties/_fields.html.slim +0 -5
  915. data/app/views/gaku/students/student_specialties/_form.html.slim +0 -6
  916. data/app/views/gaku/students/student_specialties/_form_fields.html.slim +0 -2
  917. data/app/views/gaku/students/student_specialties/_index.html.slim +0 -18
  918. data/app/views/gaku/students/student_specialties/_index_modal.html.slim +0 -4
  919. data/app/views/gaku/students/student_specialties/_specialties_list.html.slim +0 -0
  920. data/app/views/gaku/students/student_specialties/_student_specialties.html.slim +0 -2
  921. data/app/views/gaku/students/student_specialties/_student_specialty.html.slim +0 -3
  922. data/app/views/gaku/students/student_specialties/create.js.erb +0 -11
  923. data/app/views/gaku/students/student_specialties/destroy.js.erb +0 -5
  924. data/app/views/gaku/students/student_specialties/edit.js.erb +0 -2
  925. data/app/views/gaku/students/student_specialties/index.js.erb +0 -5
  926. data/app/views/gaku/students/student_specialties/new.js.erb +0 -3
  927. data/app/views/gaku/students/student_specialties/update.js.erb +0 -4
  928. data/app/views/gaku/students/update.js.erb +0 -3
  929. data/app/views/gaku/syllabuses/_form.html.slim +0 -3
  930. data/app/views/gaku/syllabuses/_form_fields.html.slim +0 -10
  931. data/app/views/gaku/syllabuses/_modal.html.slim +0 -7
  932. data/app/views/gaku/syllabuses/_syllabus.html.slim +0 -2
  933. data/app/views/gaku/syllabuses/_syllabus_fields.html.slim +0 -4
  934. data/app/views/gaku/syllabuses/_syllabuses.html.slim +0 -11
  935. data/app/views/gaku/syllabuses/assignments/_assignment.html.slim +0 -9
  936. data/app/views/gaku/syllabuses/assignments/_assignments.html.slim +0 -19
  937. data/app/views/gaku/syllabuses/assignments/_form.html.slim +0 -17
  938. data/app/views/gaku/syllabuses/assignments/create.js.erb +0 -7
  939. data/app/views/gaku/syllabuses/create.js.erb +0 -7
  940. data/app/views/gaku/syllabuses/destroy.js.erb +0 -2
  941. data/app/views/gaku/syllabuses/edit.html.slim +0 -59
  942. data/app/views/gaku/syllabuses/edit.js.erb +0 -3
  943. data/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +0 -11
  944. data/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +0 -6
  945. data/app/views/gaku/syllabuses/exams/_exam.html.slim +0 -4
  946. data/app/views/gaku/syllabuses/exams/_exams.html.slim +0 -16
  947. data/app/views/gaku/syllabuses/exams/_fields.html.slim +0 -9
  948. data/app/views/gaku/syllabuses/exams/_form.html.slim +0 -15
  949. data/app/views/gaku/syllabuses/exams/_form_fields.html.slim +0 -10
  950. data/app/views/gaku/syllabuses/exams/_modal.html.slim +0 -6
  951. data/app/views/gaku/syllabuses/exams/_select_form.html.slim +0 -6
  952. data/app/views/gaku/syllabuses/exams/create.js.erb +0 -10
  953. data/app/views/gaku/syllabuses/exams/destroy.js.erb +0 -2
  954. data/app/views/gaku/syllabuses/exams/edit.js.erb +0 -3
  955. data/app/views/gaku/syllabuses/exams/new.js.erb +0 -3
  956. data/app/views/gaku/syllabuses/exams/update.js.erb +0 -4
  957. data/app/views/gaku/syllabuses/index.html.slim +0 -14
  958. data/app/views/gaku/syllabuses/new.js.erb +0 -3
  959. data/app/views/gaku/syllabuses/update.js.erb +0 -4
  960. data/app/views/gaku/teachers/_delete_modal.html.slim +0 -5
  961. data/app/views/gaku/teachers/_edit_table.html.slim +0 -5
  962. data/app/views/gaku/teachers/_fields.html.slim +0 -1
  963. data/app/views/gaku/teachers/_form.html.slim +0 -3
  964. data/app/views/gaku/teachers/_form_fields.html.slim +0 -1
  965. data/app/views/gaku/teachers/_modal.html.slim +0 -6
  966. data/app/views/gaku/teachers/_show_table.html.slim +0 -7
  967. data/app/views/gaku/teachers/_tabs.html.slim +0 -21
  968. data/app/views/gaku/teachers/_teacher.html.slim +0 -6
  969. data/app/views/gaku/teachers/_teacher_unit.html.slim +0 -4
  970. data/app/views/gaku/teachers/_teachers.html.slim +0 -11
  971. data/app/views/gaku/teachers/create.js.erb +0 -8
  972. data/app/views/gaku/teachers/destroy.js.erb +0 -2
  973. data/app/views/gaku/teachers/edit.html.slim +0 -23
  974. data/app/views/gaku/teachers/edit.js.erb +0 -3
  975. data/app/views/gaku/teachers/index.html.slim +0 -16
  976. data/app/views/gaku/teachers/index.js.erb +0 -2
  977. data/app/views/gaku/teachers/new.js.erb +0 -3
  978. data/app/views/gaku/teachers/recovery.js.erb +0 -1
  979. data/app/views/gaku/teachers/show.html.slim +0 -14
  980. data/app/views/gaku/teachers/update.js.erb +0 -4
  981. data/app/views/kaminari/_first_page.html.erb +0 -11
  982. data/app/views/kaminari/_gap.html.erb +0 -8
  983. data/app/views/kaminari/_last_page.html.erb +0 -11
  984. data/app/views/kaminari/_next_page.html.erb +0 -11
  985. data/app/views/kaminari/_page.html.erb +0 -12
  986. data/app/views/kaminari/_paginator.html.erb +0 -25
  987. data/app/views/kaminari/_prev_page.html.erb +0 -11
  988. data/config/initializers/client_side_validations.rb +0 -9
  989. data/config/initializers/mime_types.rb +0 -1
  990. data/config/initializers/paper_trail.rb +0 -3
  991. data/config/initializers/ruby_template_handler.rb +0 -1
  992. data/config/initializers/wrap_parameters.rb +0 -14
  993. data/db/migrate/20131014065028_gaku_core.rb +0 -685
  994. data/lib/gaku/app_responder.rb +0 -6
  995. data/lib/gaku/core/version.rb +0 -5
  996. data/lib/gaku/testing/env.rb +0 -10
  997. data/lib/gaku/testing/factories/student_achievement_factory.rb +0 -8
  998. data/lib/gaku/testing/flash_helpers.rb +0 -35
  999. data/lib/gaku/testing/request_helpers.rb +0 -212
  1000. data/vendor/assets/javascripts/backbone.js +0 -1431
  1001. data/vendor/assets/javascripts/tablefix.js.coffee +0 -109
@@ -1,49 +0,0 @@
1
- [module Gaku
2
- class Students::StudentAchievementsController < GakuController
3
-
4
- #load_and_authorize_resource :student, class: Gaku::Student
5
- #load_and_authorize_resource :achievement, through: :student, class: Gaku::Achievement
6
- skip_authorization_check
7
-
8
- inherit_resources
9
- belongs_to :student
10
- respond_to :js, :html, :json
11
-
12
- before_filter :student
13
- before_filter :student_achievements, only: [:update]
14
- before_filter :count, only: [:index, :create, :destroy]
15
- before_filter :load_data
16
-
17
- def index
18
- @student_achievements = @student.student_achievements
19
- respond_with @student_achievements
20
- end
21
-
22
- protected
23
-
24
- def resource_params
25
- return [] if request.get?
26
- [params.require(:student_achievement).permit(:achievement_id)]
27
- end
28
-
29
- private
30
-
31
- def load_data
32
- @achievements = Achievement.all.map { |s| [s.name, s.id] }
33
- end
34
-
35
- def student
36
- @student = Student.find(params[:student_id])
37
- end
38
-
39
- def student_achievements
40
- @student_achievements = @student.student_achievements
41
- end
42
-
43
- def count
44
- @count = @student.student_achievements.count
45
- end
46
-
47
- end
48
- end
49
- ]
@@ -1,60 +0,0 @@
1
- module Gaku
2
- class Students::StudentSpecialtiesController < GakuController
3
-
4
- #load_and_authorize_resource :student, class: Gaku::Student
5
- #load_and_authorize_resource :specialty, through: :student, class: Gaku::Specialty
6
- skip_authorization_check
7
-
8
- inherit_resources
9
- belongs_to :student
10
- respond_to :js, :html
11
-
12
- before_filter :load_data
13
- before_filter :student
14
- before_filter :student_specialties, only: :update
15
- before_filter :count, only: [:index, :create, :destroy, :update]
16
-
17
-
18
- def index
19
- @student_specialties = @student.student_specialties
20
- respond_with @student_specialties
21
- end
22
-
23
- def destroy
24
- super do |format|
25
- format.js { render }
26
- end
27
- end
28
-
29
- def resource_params
30
- return [] if request.get?
31
- [params.require(:student_specialty).permit(student_specialty_attr)]
32
- end
33
-
34
- private
35
-
36
- def student_specialty_attr
37
- %i(specialty_id major)
38
- end
39
-
40
- private
41
-
42
- def load_data
43
- @specialties = Gaku::Specialty.all.map { |s| [s.name, s.id] }
44
- end
45
-
46
- def student
47
- @student = Student.find(params[:student_id])
48
- end
49
-
50
- def student_specialties
51
- student
52
- @student_specialties = @student.student_specialties
53
- end
54
-
55
- def count
56
- @count = StudentSpecialty.count
57
- end
58
-
59
- end
60
- end
@@ -1,189 +0,0 @@
1
- module Gaku
2
- class StudentsController < GakuController
3
-
4
- # load_and_authorize_resource class: Gaku::Student,
5
- # except: [:recovery, :destroy]
6
-
7
- decorates_assigned :student
8
-
9
- helper_method :sort_column, :sort_direction
10
-
11
- respond_to :js, only: %i( new create edit update index destroy recovery )
12
- respond_to :html, only: %i( index edit show show_deleted soft_delete )
13
- respond_to :pdf, only: %i( index show )
14
-
15
- before_action :load_data, only: %i( new edit )
16
- before_action :set_class_group, only: %i( index new edit )
17
- before_action :set_selected_students, only: %i( create index )
18
- before_action :set_student, only: %i( show edit update soft_delete )
19
- before_action :set_unscoped_student, only: %i( show_deleted destroy recovery )
20
-
21
- def new
22
- @student = Student.new
23
- respond_with @student
24
- end
25
-
26
- def create
27
- @student = Student.new(student_params)
28
- @student.save
29
- @student.make_enrolled if @student.valid?
30
- @count = Student.count
31
- respond_with @student
32
- end
33
-
34
- def index
35
- set_index_vars
36
- @enrolled_students = params[:enrolled_students]
37
-
38
- @count = Student.count
39
-
40
- @search = Student.active.search(params[:q])
41
- results = @search.result(distinct: true)
42
- @students = results.order('created_at ASC').page(params[:page])
43
-
44
- respond_with(@students) do |format|
45
- format.pdf do
46
- send_data render_to_string, filename: 'sido_yoroku.pdf',
47
- type: 'application/pdf',
48
- disposition: 'attachment'
49
- end
50
- end
51
- end
52
-
53
-
54
- def show
55
- respond_with @student do |format|
56
- format.pdf do
57
- send_data render_to_string, filename: "student-#{@student.id}.pdf",
58
- type: 'application/pdf',
59
- disposition: 'inline'
60
- end
61
- end
62
- end
63
-
64
- def show_deleted
65
- respond_with(@student) do |format|
66
- format.html { render :show }
67
- end
68
- end
69
-
70
- def destroy
71
- @student.destroy
72
- @count = Student.count
73
- respond_with @student
74
- end
75
-
76
- def recovery
77
- @student.recover
78
- flash.now[:notice] = t(:'notice.recovered', resource: t_resource)
79
- respond_with @student
80
- end
81
-
82
- def soft_delete
83
- @student.soft_delete
84
- @count = Student.count
85
- redirect_to students_path,
86
- notice: t(:'notice.destroyed', resource: t_resource)
87
- end
88
-
89
- def update
90
- @student.update(student_params)
91
- respond_with(@student) do |format|
92
- if params[:student][:picture]
93
- format.html do
94
- redirect_to [:edit, @student],
95
- notice: t(:'notice.uploaded', resource: t(:'picture'))
96
- end
97
- else
98
- format.html { redirect_to [:edit, @student] }
99
- format.js { render }
100
- format.json { head :no_content }
101
- end
102
- end
103
- end
104
-
105
- def load_autocomplete_data
106
- object = "Gaku::#{params[:class_name].capitalize}".constantize
107
- @result = object.order(params[:column].to_sym)
108
- .where(params[:column] + ' like ?', "%#{params[:term]}%")
109
- render json: @result.map(&params[:column].to_sym).uniq
110
- end
111
-
112
-
113
- private
114
-
115
- def student_params
116
- %i(name surname name_reading surname_reading birth_date gender class_group_ids scholarship_status_id enrollment_status_code commute_method_type_id admitted graduated picture)
117
- end
118
-
119
- def student_params
120
- params.require(:student).permit(attributes)
121
- end
122
-
123
- def attributes
124
- %i( name surname name_reading surname_reading birth_date gender class_group_ids scholarship_status_id enrollment_status_code commute_method_type_id admitted graduated picture )
125
- end
126
-
127
- def includes
128
- [[contacts: :contact_type, addresses: :country], :guardians]
129
- end
130
-
131
- def t_resource
132
- t(:'student.singular')
133
- end
134
-
135
- def set_class_group
136
- @class_group_id ||= params[:class_group_id]
137
- end
138
-
139
- def set_index_vars
140
- @enrollment_statuses = EnrollmentStatus.all.includes(:translations)
141
- @countries = Country.all
142
- @class_groups = ClassGroup.all
143
- @courses = Course.all
144
- end
145
-
146
- def load_data
147
- @class_groups = ClassGroup.all
148
- @enrollment_statuses = EnrollmentStatus.includes(:translations)
149
- @scholarship_statuses = ScholarshipStatus.includes(:translations)
150
- @commute_method_types = CommuteMethodType.includes(:translations)
151
- end
152
-
153
- def set_selected_students
154
- if params[:selected_students].nil?
155
- @selected_students = []
156
- else
157
- @selected_students = params[:selected_students]
158
- end
159
- end
160
-
161
- def set_notable
162
- @notable = @student
163
- @notable_resource = get_resource_name @notable
164
- end
165
-
166
- def set_student
167
- @student ||= Student.includes(includes).find(params[:id])
168
- set_notable
169
- end
170
-
171
- def set_unscoped_student
172
- @student ||= Student.includes(includes).unscoped.find(params[:id])
173
- set_notable
174
- end
175
-
176
- def sort_column
177
- Student.column_names.include?(params[:sort]) ? params[:sort] : 'surname'
178
- end
179
-
180
- def sort_direction
181
- if %w[asc desc].include?(params[:direction])
182
- params[:direction]
183
- else
184
- 'asc'
185
- end
186
- end
187
-
188
- end
189
- end
@@ -1,20 +0,0 @@
1
- module Gaku
2
- class Syllabuses::AssignmentsController < GakuController
3
-
4
- before_filter :count, only: :create
5
- def create
6
- if @syllabus.update_attributes(params[:syllabus])
7
- respond_to do |format|
8
- format.js { render 'create' }
9
- end
10
- end
11
- end
12
-
13
- private
14
-
15
- def count
16
- @count = Syllabus.assignments.count
17
- end
18
-
19
- end
20
- end
@@ -1,38 +0,0 @@
1
- module Gaku
2
- class Syllabuses::ExamSyllabusesController < GakuController
3
-
4
- #authorize_resource class: false
5
- #load_and_authorize_resource :syllabus, class: Gaku::Syllabus
6
- #load_and_authorize_resource :exam_syllabus, through: :syllabus, class: Gaku::ExamSyllabus
7
-
8
- inherit_resources
9
-
10
- defaults resource_class: ExamSyllabus,
11
- instance_name: 'exam_syllabus'
12
-
13
- actions :new, :create, :destroy
14
- belongs_to :syllabus, parent_class: Gaku::Syllabus
15
- respond_to :js, :html
16
-
17
- before_filter :syllabus
18
-
19
- def create
20
- #@exam_syllabus = @syllabus.exams.create(params[:exam_syllabus])
21
- create!(notice: t(:'notice.added', resource: t(:'exam.singular')))
22
- end
23
-
24
- protected
25
-
26
- def resource_params
27
- return [] if request.get?
28
- [params.require(:exam_syllabus).permit([:exam_id, :syllabus_id])]
29
- end
30
-
31
- private
32
-
33
- def syllabus
34
- @syllabus = Syllabus.find(params[:syllabus_id])
35
- end
36
-
37
- end
38
- end
@@ -1,53 +0,0 @@
1
- module Gaku
2
- class Syllabuses::ExamsController < GakuController
3
-
4
- load_and_authorize_resource :syllabus, class: Gaku::Syllabus
5
- load_and_authorize_resource :exam, through: :syllabus, class: Gaku::Exam
6
-
7
- inherit_resources
8
- belongs_to :syllabus, parent_class: Gaku::Syllabus
9
- respond_to :js, :html
10
-
11
- before_filter :syllabus
12
- before_filter :exam_syllabus, only: :update
13
- before_filter :load_data
14
-
15
- def create
16
- @exam = @syllabus.exams.create(params[:exam])
17
- create!
18
- end
19
-
20
- def new
21
- @exam = @syllabus.exams.new
22
- @exam.exam_portions.build
23
- new!
24
- end
25
-
26
- protected
27
-
28
- def resource_params
29
- return [] if request.get?
30
- [params.require(:exam).permit!]
31
- end
32
-
33
- private
34
-
35
- def exam_attr
36
- [:name, :description, :adjustments, { exam_portions_attributes: [] }]
37
- end
38
-
39
- def load_data
40
- @grading_methods = GradingMethod.pluck(:name, :id)
41
- end
42
-
43
- def syllabus
44
- @syllabus = Syllabus.find(params[:syllabus_id])
45
- end
46
-
47
- def exam_syllabus
48
- @exam_syllabus = ExamSyllabus.find_by(exam_id: params[:id], syllabus_id: params[:syllabus_id])
49
- end
50
-
51
-
52
- end
53
- end
@@ -1,73 +0,0 @@
1
- module Gaku
2
- class SyllabusesController < GakuController
3
-
4
- #load_and_authorize_resource class: Gaku::Syllabus
5
-
6
- respond_to :js, only: %i( new create edit update destroy )
7
- respond_to :html, only: %i( index edit show )
8
-
9
- before_action :set_syllabus, only: %i( edit update destroy )
10
-
11
- def new
12
- @syllabus = Syllabus.new
13
- respond_with @syllabus
14
- end
15
-
16
- def create
17
- @syllabus = Syllabus.new(syllabus_params)
18
- @syllabus.save
19
- set_count
20
- respond_with @syllabus
21
- end
22
-
23
- def index
24
- @syllabuses = Syllabus.all
25
- set_count
26
- respond_with @syllabuses
27
- end
28
-
29
- def edit
30
- set_grading_methods
31
- set_notable
32
- end
33
-
34
- def update
35
- @syllabus.update(syllabus_params)
36
- respond_with @syllabus
37
- end
38
-
39
- def destroy
40
- @syllabus.destroy
41
- set_count
42
- respond_with @syllabus
43
- end
44
-
45
- private
46
-
47
- def syllabus_params
48
- params.require(:syllabus).permit(syllabus_attr)
49
- end
50
-
51
- def syllabus_attr
52
- %i( name code credits description )
53
- end
54
-
55
- def set_syllabus
56
- @syllabus = Syllabus.find(params[:id])
57
- end
58
-
59
- def set_grading_methods
60
- @grading_methods = GradingMethod.all
61
- end
62
-
63
- def set_notable
64
- @notable = @syllabus
65
- @notable_resource = get_resource_name @notable
66
- end
67
-
68
- def set_count
69
- @count = Syllabus.count
70
- end
71
-
72
- end
73
- end
@@ -1,113 +0,0 @@
1
- module Gaku
2
- class TeachersController < GakuController
3
-
4
- #load_and_authorize_resource :teacher, class: Gaku::Teacher
5
-
6
- decorates_assigned :teacher
7
-
8
- respond_to :js, only: %i( new create edit update destroy recovery )
9
- respond_to :html, only: %i( index edit update show show_deleted soft_delete )
10
-
11
- before_action :set_unscoped_teacher, only: %i( show_deleted destroy recovery )
12
- before_action :set_teacher, only: %i( edit show update soft_delete )
13
-
14
- def recovery
15
- @teacher.recover
16
- flash.now[:notice] = t(:'notice.recovered', resource: t_resource)
17
- respond_with @teacher
18
- end
19
-
20
- def soft_delete
21
- @teacher.soft_delete
22
- redirect_to teachers_path,
23
- notice: t(:'notice.destroyed', resource: t_resource)
24
- end
25
-
26
- def destroy
27
- @teacher.destroy
28
- set_count
29
- respond_with @teacher
30
- end
31
-
32
- def show_deleted
33
- respond_with(@teacher) do |format|
34
- format.html { render :show }
35
- end
36
- end
37
-
38
- def new
39
- @teacher = Teacher.new
40
- respond_with @teacher
41
- end
42
-
43
- def create
44
- @teacher = Teacher.new(teacher_params)
45
- @teacher.save
46
- set_count
47
- respond_with @teacher
48
- end
49
-
50
- def edit
51
- end
52
-
53
- def show
54
- end
55
-
56
- def update
57
- @teacher.update(teacher_params)
58
- respond_with(@teacher) do |format|
59
- if params[:teacher][:picture]
60
- format.html do
61
- redirect_to @teacher,
62
- notice: t(:'notice.uploaded', resource: t(:'picture'))
63
- end
64
- else
65
- format.js { render }
66
- format.html { redirect_to [:edit, @teacher] }
67
- end
68
- end
69
- end
70
-
71
- def index
72
- @search = Teacher.search(params[:q])
73
- results = @search.result(distinct: true)
74
- @teachers = results.page(params[:page]).per(Preset.teachers_per_page)
75
- set_count
76
- respond_with @teachers
77
- end
78
-
79
- private
80
-
81
- def teacher_params
82
- params.require(:teacher).permit(attributes)
83
- end
84
-
85
- def attributes
86
- %i(name surname name_reading surname_reading birth_date gender picture)
87
- end
88
-
89
- def set_teacher
90
- @teacher = Teacher.find(params[:id])
91
- set_notable
92
- end
93
-
94
- def set_unscoped_teacher
95
- @teacher = Teacher.unscoped.find(params[:id])
96
- set_notable
97
- end
98
-
99
- def t_resource
100
- t(:'teacher.singular')
101
- end
102
-
103
- def set_notable
104
- @notable = @teacher
105
- @notable_resource = get_resource_name @notable
106
- end
107
-
108
- def set_count
109
- @count = Teacher.count
110
- end
111
-
112
- end
113
- end
@@ -1,31 +0,0 @@
1
- module Gaku::AutocompleteHelper
2
-
3
- def autocomplete_text_field(form, options = {})
4
- content_tag :div, class: 'span3' do
5
- concat form.label options[:object_name], options[:tag_name]
6
- concat form.text_field options[:object_name],
7
- class: 'js-autocomplete span12',
8
- data: { autocomplete_source: load_autocomplete_data_students_path(class_name: options[:class_name], column: options[:column]) }
9
- end
10
- end
11
-
12
- def autocomplete_date_field(form, options = {})
13
- content_tag :div, class: 'span3' do
14
- concat form.label options[:object_name], options[:tag_name]
15
- concat form.text_field options[:object_name], class: 'span12', placeholder: t(:'date.placeholder')
16
- end
17
- end
18
-
19
- def autocomplete_select(form, options = {})
20
- content_tag :div, class: 'span3' do
21
- concat form.label options[:object_name], options[:tag_name]
22
- concat form.select options[:object_name],
23
- options[:collection],
24
- { prompt: options[:prompt],
25
- selected: options[:selected]
26
- },
27
- options[:html_options]
28
- end
29
- end
30
-
31
- end
@@ -1,13 +0,0 @@
1
- module Gaku::CountHelper
2
-
3
- def count_div(html_class, &block)
4
- content_tag :h4, class: "mt-xs mb-0 #{html_class}" do
5
- block.call
6
- end
7
- end
8
-
9
- def print_count(count, text)
10
- count != 0 ? text + '(' + count.to_s + ')' : text
11
- end
12
-
13
- end
@@ -1,16 +0,0 @@
1
- module Gaku::FlashHelper
2
-
3
- def flash_color(type)
4
- case type
5
- when :notice then 'alert alert-info'
6
- when :success then 'alert alert-success'
7
- when :error then 'alert alert-error'
8
- when :alert then 'alert alert-error'
9
- end
10
- end
11
-
12
- def render_flash
13
- escape_javascript(render 'gaku/shared/flash', flash: flash)
14
- end
15
-
16
- end