gaku 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 (2214) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.travis.yml +17 -7
  4. data/Gemfile +1 -1
  5. data/README.md +44 -3
  6. data/Rakefile +8 -12
  7. data/VERSION +1 -1
  8. data/admin/.rspec +2 -0
  9. data/admin/.ruby-gemset +1 -0
  10. data/admin/.ruby-version +1 -0
  11. data/admin/Gemfile +7 -0
  12. data/admin/Guardfile +40 -0
  13. data/admin/Rakefile +31 -0
  14. data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.eot +0 -0
  15. data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.svg +228 -0
  16. data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.ttf +0 -0
  17. data/admin/app/assets/fonts/gaku/admin/glyphicons-halflings-regular.woff +0 -0
  18. data/admin/app/assets/javascripts/gaku/admin.js.coffee +43 -0
  19. data/admin/app/assets/javascripts/gaku/admin/admin.coffee +51 -0
  20. data/admin/app/assets/javascripts/gaku/admin/base.js.coffee +118 -0
  21. data/admin/app/assets/javascripts/gaku/admin/slide.js.erb +14 -0
  22. data/admin/app/assets/stylesheets/gaku/admin.css +13 -0
  23. data/admin/app/assets/stylesheets/gaku/admin/bootstrap_and_theme.css.scss +571 -0
  24. data/{core → admin}/app/assets/stylesheets/gaku/admin/disposals.css.scss +0 -0
  25. data/admin/app/assets/stylesheets/gaku/admin/gaku.css.scss +216 -0
  26. data/{core → admin}/app/assets/templates/roster.xls +0 -0
  27. data/admin/app/controllers/gaku/admin/achievements/simple_grade_types_controller.rb +70 -0
  28. data/{core → admin}/app/controllers/gaku/admin/attendance_types_controller.rb +0 -0
  29. data/admin/app/controllers/gaku/admin/badge_types_controller.rb +69 -0
  30. data/admin/app/controllers/gaku/admin/base_controller.rb +43 -0
  31. data/{core → admin}/app/controllers/gaku/admin/commute_method_types_controller.rb +0 -0
  32. data/{core → admin}/app/controllers/gaku/admin/contact_types_controller.rb +0 -0
  33. data/admin/app/controllers/gaku/admin/departments_controller.rb +55 -0
  34. data/{core → admin}/app/controllers/gaku/admin/enrollment_statuses_controller.rb +0 -0
  35. data/{core → admin}/app/controllers/gaku/admin/grading_method_sets/grading_method_set_items_controller.rb +0 -0
  36. data/{core → admin}/app/controllers/gaku/admin/grading_method_sets_controller.rb +0 -0
  37. data/admin/app/controllers/gaku/admin/grading_methods_controller.rb +60 -0
  38. data/admin/app/controllers/gaku/admin/presets_controller.rb +75 -0
  39. data/{core → admin}/app/controllers/gaku/admin/roles_controller.rb +0 -0
  40. data/admin/app/controllers/gaku/admin/school_years/semesters_controller.rb +58 -0
  41. data/admin/app/controllers/gaku/admin/school_years_controller.rb +63 -0
  42. data/admin/app/controllers/gaku/admin/schools/campuses/addresses_controller.rb +64 -0
  43. data/admin/app/controllers/gaku/admin/schools/campuses/contacts_controller.rb +77 -0
  44. data/admin/app/controllers/gaku/admin/schools/campuses_controller.rb +72 -0
  45. data/admin/app/controllers/gaku/admin/schools/programs_controller.rb +79 -0
  46. data/admin/app/controllers/gaku/admin/schools_controller.rb +84 -0
  47. data/admin/app/controllers/gaku/admin/specialties_controller.rb +63 -0
  48. data/admin/app/controllers/gaku/admin/states_controller.rb +92 -0
  49. data/{core → admin}/app/controllers/gaku/admin/system_tools_controller.rb +0 -0
  50. data/admin/app/controllers/gaku/admin/templates_controller.rb +72 -0
  51. data/admin/app/controllers/gaku/admin/users_controller.rb +82 -0
  52. data/admin/app/controllers/gaku/states_controller.rb +17 -0
  53. data/admin/app/helpers/gaku/admin_helper.rb +12 -0
  54. data/admin/app/helpers/gaku/presets_helper.rb +10 -0
  55. data/admin/app/helpers/gaku/shared_helper.rb +25 -0
  56. data/admin/app/overrides/admin_menu.rb +6 -0
  57. data/admin/app/views/gaku/admin/achievements/simple_grade_types/_fields.html.slim +8 -0
  58. data/admin/app/views/gaku/admin/achievements/simple_grade_types/_form.html.slim +3 -0
  59. data/admin/app/views/gaku/admin/achievements/simple_grade_types/_form_fields.html.slim +7 -0
  60. data/admin/app/views/gaku/admin/achievements/simple_grade_types/_modal.html.slim +4 -0
  61. data/admin/app/views/gaku/admin/achievements/simple_grade_types/_simple_grade_type.html.slim +2 -0
  62. data/admin/app/views/gaku/admin/achievements/simple_grade_types/create.js.erb +7 -0
  63. data/admin/app/views/gaku/admin/achievements/simple_grade_types/destroy.js.erb +2 -0
  64. data/admin/app/views/gaku/admin/achievements/simple_grade_types/edit.js.erb +3 -0
  65. data/admin/app/views/gaku/admin/achievements/simple_grade_types/index.html.slim +23 -0
  66. data/admin/app/views/gaku/admin/achievements/simple_grade_types/new.js.erb +3 -0
  67. data/admin/app/views/gaku/admin/achievements/simple_grade_types/update.js.erb +4 -0
  68. data/{core → admin}/app/views/gaku/admin/attendance_types/_attendance_type.html.slim +0 -0
  69. data/{core → admin}/app/views/gaku/admin/attendance_types/_fields.html.slim +0 -0
  70. data/admin/app/views/gaku/admin/attendance_types/_form.html.slim +3 -0
  71. data/{core → admin}/app/views/gaku/admin/attendance_types/_form_fields.html.slim +0 -0
  72. data/admin/app/views/gaku/admin/attendance_types/_modal.html.slim +4 -0
  73. data/admin/app/views/gaku/admin/attendance_types/create.js.erb +7 -0
  74. data/admin/app/views/gaku/admin/attendance_types/destroy.js.erb +2 -0
  75. data/{core → admin}/app/views/gaku/admin/attendance_types/edit.js.erb +0 -0
  76. data/admin/app/views/gaku/admin/attendance_types/index.html.slim +24 -0
  77. data/{core → admin}/app/views/gaku/admin/attendance_types/index.json.rb +0 -0
  78. data/admin/app/views/gaku/admin/attendance_types/new.js.erb +4 -0
  79. data/{core → admin}/app/views/gaku/admin/attendance_types/update.js.erb +0 -0
  80. data/admin/app/views/gaku/admin/badge_types/_badge_type.html.slim +2 -0
  81. data/admin/app/views/gaku/admin/badge_types/_fields.html.slim +7 -0
  82. data/admin/app/views/gaku/admin/badge_types/_form.html.slim +3 -0
  83. data/admin/app/views/gaku/admin/badge_types/_form_fields.html.slim +7 -0
  84. data/admin/app/views/gaku/admin/badge_types/_modal.html.slim +4 -0
  85. data/admin/app/views/gaku/admin/badge_types/destroy.js.erb +2 -0
  86. data/admin/app/views/gaku/admin/badge_types/edit.js.erb +3 -0
  87. data/admin/app/views/gaku/admin/badge_types/index.html.slim +22 -0
  88. data/admin/app/views/gaku/admin/badge_types/new.js.erb +3 -0
  89. data/{core → admin}/app/views/gaku/admin/commute_method_types/_commute_method_type.html.slim +0 -0
  90. data/{core → admin}/app/views/gaku/admin/commute_method_types/_fields.html.slim +0 -0
  91. data/admin/app/views/gaku/admin/commute_method_types/_form.html.slim +3 -0
  92. data/admin/app/views/gaku/admin/commute_method_types/_modal.html.slim +4 -0
  93. data/admin/app/views/gaku/admin/commute_method_types/create.js.erb +7 -0
  94. data/admin/app/views/gaku/admin/commute_method_types/destroy.js.erb +2 -0
  95. data/{core → admin}/app/views/gaku/admin/commute_method_types/edit.js.erb +0 -0
  96. data/admin/app/views/gaku/admin/commute_method_types/index.html.slim +18 -0
  97. data/{core → admin}/app/views/gaku/admin/commute_method_types/new.js.erb +0 -0
  98. data/{core → admin}/app/views/gaku/admin/commute_method_types/update.js.erb +0 -0
  99. data/{core → admin}/app/views/gaku/admin/contact_types/_contact_type.html.slim +0 -0
  100. data/{core → admin}/app/views/gaku/admin/contact_types/_fields.html.slim +0 -0
  101. data/admin/app/views/gaku/admin/contact_types/_form.html.slim +3 -0
  102. data/admin/app/views/gaku/admin/contact_types/_modal.html.slim +4 -0
  103. data/admin/app/views/gaku/admin/contact_types/create.js.erb +7 -0
  104. data/admin/app/views/gaku/admin/contact_types/destroy.js.erb +2 -0
  105. data/{core → admin}/app/views/gaku/admin/contact_types/edit.js.erb +0 -0
  106. data/admin/app/views/gaku/admin/contact_types/index.html.slim +18 -0
  107. data/{core → admin}/app/views/gaku/admin/contact_types/new.js.erb +0 -0
  108. data/{core → admin}/app/views/gaku/admin/contact_types/update.js.erb +0 -0
  109. data/admin/app/views/gaku/admin/departments/_department.html.slim +2 -0
  110. data/admin/app/views/gaku/admin/departments/_form.html.slim +3 -0
  111. data/admin/app/views/gaku/admin/departments/_form_fields.html.slim +1 -0
  112. data/admin/app/views/gaku/admin/departments/_modal.html.slim +4 -0
  113. data/admin/app/views/gaku/admin/departments/_table_fields.html.slim +5 -0
  114. data/admin/app/views/gaku/admin/departments/create.js.erb +7 -0
  115. data/admin/app/views/gaku/admin/departments/destroy.js.erb +2 -0
  116. data/admin/app/views/gaku/admin/departments/edit.js.erb +3 -0
  117. data/admin/app/views/gaku/admin/departments/index.html.slim +20 -0
  118. data/admin/app/views/gaku/admin/departments/new.js.erb +3 -0
  119. data/admin/app/views/gaku/admin/departments/update.js.erb +4 -0
  120. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/_enrollment_status.html.slim +0 -0
  121. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/_fields.html.slim +0 -0
  122. data/admin/app/views/gaku/admin/enrollment_statuses/_form.html.slim +3 -0
  123. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/_form_fields.html.slim +0 -0
  124. data/admin/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +4 -0
  125. data/admin/app/views/gaku/admin/enrollment_statuses/create.js.erb +7 -0
  126. data/admin/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +2 -0
  127. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/edit.js.erb +0 -0
  128. data/admin/app/views/gaku/admin/enrollment_statuses/index.html.slim +21 -0
  129. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/new.js.erb +0 -0
  130. data/{core → admin}/app/views/gaku/admin/enrollment_statuses/update.js.erb +0 -0
  131. data/{core → admin}/app/views/gaku/admin/grading_method_sets/_fields.html.slim +0 -0
  132. data/admin/app/views/gaku/admin/grading_method_sets/_form.html.slim +3 -0
  133. data/{core → admin}/app/views/gaku/admin/grading_method_sets/_form_fields.html.slim +0 -0
  134. data/{core → admin}/app/views/gaku/admin/grading_method_sets/_grading_method_set.html.slim +0 -0
  135. data/admin/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +4 -0
  136. data/admin/app/views/gaku/admin/grading_method_sets/_modal.html.slim +4 -0
  137. data/admin/app/views/gaku/admin/grading_method_sets/create.js.erb +7 -0
  138. data/admin/app/views/gaku/admin/grading_method_sets/destroy.js.erb +7 -0
  139. data/admin/app/views/gaku/admin/grading_method_sets/edit.js.erb +3 -0
  140. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_fields.html.slim +0 -0
  141. data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +3 -0
  142. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form_fields.html.slim +0 -0
  143. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_item.html.slim +0 -0
  144. data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +23 -0
  145. data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +4 -0
  146. data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +7 -0
  147. data/admin/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +2 -0
  148. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/edit.js.erb +0 -0
  149. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/new.js.erb +0 -0
  150. data/{core → admin}/app/views/gaku/admin/grading_method_sets/grading_method_set_items/update.js.erb +0 -0
  151. data/admin/app/views/gaku/admin/grading_method_sets/index.html.slim +23 -0
  152. data/{core → admin}/app/views/gaku/admin/grading_method_sets/make_primary.js.erb +0 -0
  153. data/admin/app/views/gaku/admin/grading_method_sets/new.js.erb +3 -0
  154. data/admin/app/views/gaku/admin/grading_method_sets/show.html.slim +13 -0
  155. data/admin/app/views/gaku/admin/grading_method_sets/update.js.erb +3 -0
  156. data/{core → admin}/app/views/gaku/admin/grading_methods/_fields.html.slim +0 -0
  157. data/admin/app/views/gaku/admin/grading_methods/_form.html.slim +3 -0
  158. data/admin/app/views/gaku/admin/grading_methods/_form_fields.html.slim +4 -0
  159. data/{core → admin}/app/views/gaku/admin/grading_methods/_grading_method.html.slim +0 -0
  160. data/admin/app/views/gaku/admin/grading_methods/_modal.html.slim +4 -0
  161. data/admin/app/views/gaku/admin/grading_methods/create.js.erb +7 -0
  162. data/admin/app/views/gaku/admin/grading_methods/destroy.js.erb +2 -0
  163. data/{core → admin}/app/views/gaku/admin/grading_methods/edit.js.erb +0 -0
  164. data/admin/app/views/gaku/admin/grading_methods/index.html.slim +20 -0
  165. data/{core → admin}/app/views/gaku/admin/grading_methods/new.js.erb +0 -0
  166. data/{core → admin}/app/views/gaku/admin/grading_methods/update.js.erb +0 -0
  167. data/admin/app/views/gaku/admin/presets/_address.html.slim +19 -0
  168. data/admin/app/views/gaku/admin/presets/_chooser_fields.html.slim +91 -0
  169. data/admin/app/views/gaku/admin/presets/_export_formats.html.slim +19 -0
  170. data/admin/app/views/gaku/admin/presets/_fields.html.slim +5 -0
  171. data/admin/app/views/gaku/admin/presets/_grading.html.slim +14 -0
  172. data/admin/app/views/gaku/admin/presets/_locale.html.slim +3 -0
  173. data/admin/app/views/gaku/admin/presets/_names_order.html.slim +15 -0
  174. data/admin/app/views/gaku/admin/presets/_pagination.html.slim +25 -0
  175. data/admin/app/views/gaku/admin/presets/_person.html.slim +8 -0
  176. data/admin/app/views/gaku/admin/presets/_preset.html.slim +2 -0
  177. data/admin/app/views/gaku/admin/presets/_student.html.slim +19 -0
  178. data/admin/app/views/gaku/admin/presets/_tabs.html.slim +51 -0
  179. data/{core/app/views/gaku/admin/disposals/index.html.slim → admin/app/views/gaku/admin/presets/edit.html.slim} +0 -0
  180. data/admin/app/views/gaku/admin/presets/index.html.slim +16 -0
  181. data/{core → admin}/app/views/gaku/admin/roles/_fields.html.slim +0 -0
  182. data/admin/app/views/gaku/admin/roles/_form.html.slim +3 -0
  183. data/{core → admin}/app/views/gaku/admin/roles/_form_fields.html.slim +0 -0
  184. data/admin/app/views/gaku/admin/roles/_modal.html.slim +4 -0
  185. data/{core → admin}/app/views/gaku/admin/roles/_role.html.slim +0 -0
  186. data/admin/app/views/gaku/admin/roles/create.js.erb +7 -0
  187. data/admin/app/views/gaku/admin/roles/destroy.js.erb +2 -0
  188. data/admin/app/views/gaku/admin/roles/edit.js.erb +3 -0
  189. data/admin/app/views/gaku/admin/roles/index.html.slim +20 -0
  190. data/{core → admin}/app/views/gaku/admin/roles/new.js.erb +0 -0
  191. data/{core → admin}/app/views/gaku/admin/roles/update.js.erb +0 -0
  192. data/{core → admin}/app/views/gaku/admin/school_years/_fields.html.slim +0 -0
  193. data/admin/app/views/gaku/admin/school_years/_form.html.slim +3 -0
  194. data/admin/app/views/gaku/admin/school_years/_form_fields.html.slim +5 -0
  195. data/admin/app/views/gaku/admin/school_years/_modal.html.slim +5 -0
  196. data/{core → admin}/app/views/gaku/admin/school_years/_school_year.html.slim +0 -0
  197. data/{core → admin}/app/views/gaku/admin/school_years/_show_table.html.slim +0 -0
  198. data/admin/app/views/gaku/admin/school_years/create.js.erb +10 -0
  199. data/admin/app/views/gaku/admin/school_years/destroy.js.erb +2 -0
  200. data/admin/app/views/gaku/admin/school_years/edit.js.erb +5 -0
  201. data/admin/app/views/gaku/admin/school_years/index.html.slim +21 -0
  202. data/admin/app/views/gaku/admin/school_years/new.js.erb +5 -0
  203. data/{core → admin}/app/views/gaku/admin/school_years/semesters/_fields.html.slim +0 -0
  204. data/admin/app/views/gaku/admin/school_years/semesters/_form.html.slim +3 -0
  205. data/admin/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +5 -0
  206. data/admin/app/views/gaku/admin/school_years/semesters/_modal.html.slim +5 -0
  207. data/{core → admin}/app/views/gaku/admin/school_years/semesters/_semester.html.slim +0 -0
  208. data/admin/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +22 -0
  209. data/admin/app/views/gaku/admin/school_years/semesters/create.js.erb +10 -0
  210. data/admin/app/views/gaku/admin/school_years/semesters/destroy.js.erb +2 -0
  211. data/admin/app/views/gaku/admin/school_years/semesters/edit.js.erb +6 -0
  212. data/admin/app/views/gaku/admin/school_years/semesters/new.js.erb +4 -0
  213. data/admin/app/views/gaku/admin/school_years/semesters/update.js.erb +8 -0
  214. data/admin/app/views/gaku/admin/school_years/show.html.slim +15 -0
  215. data/admin/app/views/gaku/admin/school_years/update.js.erb +8 -0
  216. data/{core → admin}/app/views/gaku/admin/schools/_fields.html.slim +0 -0
  217. data/admin/app/views/gaku/admin/schools/_form.html.slim +3 -0
  218. data/admin/app/views/gaku/admin/schools/_form_fields.html.slim +25 -0
  219. data/admin/app/views/gaku/admin/schools/_school.html.slim +6 -0
  220. data/admin/app/views/gaku/admin/schools/_show_table.html.slim +35 -0
  221. data/admin/app/views/gaku/admin/schools/_tabs.html.slim +15 -0
  222. data/admin/app/views/gaku/admin/schools/campuses/_campus.html.slim +6 -0
  223. data/admin/app/views/gaku/admin/schools/campuses/_campuses.html.slim +23 -0
  224. data/admin/app/views/gaku/admin/schools/campuses/_form.html.slim +3 -0
  225. data/admin/app/views/gaku/admin/schools/campuses/_form_fields.html.slim +1 -0
  226. data/admin/app/views/gaku/admin/schools/campuses/_picture.html.slim +8 -0
  227. data/admin/app/views/gaku/admin/schools/campuses/_show_table.html.slim +10 -0
  228. data/admin/app/views/gaku/admin/schools/campuses/_tabs.html.slim +15 -0
  229. data/admin/app/views/gaku/admin/schools/campuses/_upload_picture.html.slim +7 -0
  230. data/admin/app/views/gaku/admin/schools/campuses/addresses/_address.html.slim +7 -0
  231. data/admin/app/views/gaku/admin/schools/campuses/addresses/_address_row_fields.html.slim +4 -0
  232. data/admin/app/views/gaku/admin/schools/campuses/addresses/_addresses.html.slim +24 -0
  233. data/{core/app/views/gaku/shared/fields/_address_fields.html.slim → admin/app/views/gaku/admin/schools/campuses/addresses/_fields.html.slim} +0 -0
  234. data/admin/app/views/gaku/admin/schools/campuses/addresses/_form.html.slim +3 -0
  235. data/admin/app/views/gaku/admin/schools/campuses/addresses/_form_fields.html.slim +26 -0
  236. data/admin/app/views/gaku/admin/schools/campuses/addresses/_modal.html.slim +5 -0
  237. data/admin/app/views/gaku/admin/schools/campuses/addresses/create.js.erb +6 -0
  238. data/{core → admin}/app/views/gaku/admin/schools/campuses/addresses/destroy.js.erb +0 -0
  239. data/admin/app/views/gaku/admin/schools/campuses/addresses/edit.js.erb +4 -0
  240. data/admin/app/views/gaku/admin/schools/campuses/addresses/new.js.erb +4 -0
  241. data/admin/app/views/gaku/admin/schools/campuses/addresses/update.js.erb +4 -0
  242. data/admin/app/views/gaku/admin/schools/campuses/contacts/_contact.html.slim +3 -0
  243. data/admin/app/views/gaku/admin/schools/campuses/contacts/_contacts.html.slim +22 -0
  244. data/admin/app/views/gaku/admin/schools/campuses/contacts/_delete_link.html.slim +1 -0
  245. data/admin/app/views/gaku/admin/schools/campuses/contacts/_fields.html.slim +12 -0
  246. data/admin/app/views/gaku/admin/schools/campuses/contacts/_form.html.slim +3 -0
  247. data/admin/app/views/gaku/admin/schools/campuses/contacts/_form_fields.html.slim +14 -0
  248. data/admin/app/views/gaku/admin/schools/campuses/contacts/_modal.html.slim +5 -0
  249. data/admin/app/views/gaku/admin/schools/campuses/contacts/_primary_field.html.slim +13 -0
  250. data/admin/app/views/gaku/admin/schools/campuses/contacts/create.js.erb +20 -0
  251. data/admin/app/views/gaku/admin/schools/campuses/contacts/destroy.js.erb +8 -0
  252. data/{core/app/views/gaku → admin/app/views/gaku/admin/schools/campuses}/contacts/edit.js.erb +0 -0
  253. data/admin/app/views/gaku/admin/schools/campuses/contacts/make_primary.js.erb +6 -0
  254. data/admin/app/views/gaku/admin/schools/campuses/contacts/new.js.erb +3 -0
  255. data/admin/app/views/gaku/admin/schools/campuses/contacts/soft_delete.js.erb +8 -0
  256. data/admin/app/views/gaku/admin/schools/campuses/contacts/update.js.erb +14 -0
  257. data/admin/app/views/gaku/admin/schools/campuses/create.js.erb +9 -0
  258. data/admin/app/views/gaku/admin/schools/campuses/destroy.js.erb +2 -0
  259. data/admin/app/views/gaku/admin/schools/campuses/edit.html.slim +19 -0
  260. data/admin/app/views/gaku/admin/schools/campuses/new.js.erb +3 -0
  261. data/admin/app/views/gaku/admin/schools/campuses/show.html.slim +13 -0
  262. data/admin/app/views/gaku/admin/schools/create.js.erb +7 -0
  263. data/{core/app/views/gaku/attachments/recover_attachment.js.erb → admin/app/views/gaku/admin/schools/destroy.js.erb} +0 -0
  264. data/admin/app/views/gaku/admin/schools/edit.html.slim +19 -0
  265. data/admin/app/views/gaku/admin/schools/edit_master.html.slim +22 -0
  266. data/admin/app/views/gaku/admin/schools/index.html.slim +25 -0
  267. data/admin/app/views/gaku/admin/schools/new.js.erb +3 -0
  268. data/admin/app/views/gaku/admin/schools/programs/_fields.html.slim +10 -0
  269. data/admin/app/views/gaku/admin/schools/programs/_form.html.slim +14 -0
  270. data/admin/app/views/gaku/admin/schools/programs/_form_fields.html.slim +6 -0
  271. data/admin/app/views/gaku/admin/schools/programs/_modal.html.slim +3 -0
  272. data/{core → admin}/app/views/gaku/admin/schools/programs/_program.html.slim +0 -0
  273. data/admin/app/views/gaku/admin/schools/programs/_programs.html.slim +23 -0
  274. data/admin/app/views/gaku/admin/schools/programs/create.js.erb +7 -0
  275. data/admin/app/views/gaku/admin/schools/programs/destroy.js.erb +2 -0
  276. data/admin/app/views/gaku/admin/schools/programs/edit.js.erb +3 -0
  277. data/admin/app/views/gaku/admin/schools/programs/new.js.erb +3 -0
  278. data/admin/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +6 -0
  279. data/admin/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +11 -0
  280. data/admin/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +7 -0
  281. data/admin/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +10 -0
  282. data/admin/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +5 -0
  283. data/admin/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +10 -0
  284. data/admin/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +3 -0
  285. data/admin/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +3 -0
  286. data/admin/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +3 -0
  287. data/admin/app/views/gaku/admin/schools/programs/update.js.erb +3 -0
  288. data/admin/app/views/gaku/admin/schools/show.html.slim +13 -0
  289. data/admin/app/views/gaku/admin/schools/show_master.html.slim +14 -0
  290. data/admin/app/views/gaku/admin/shared/_picture.html.slim +6 -0
  291. data/admin/app/views/gaku/admin/shared/_upload_picture.html.slim +7 -0
  292. data/admin/app/views/gaku/admin/specialties/_fields.html.slim +7 -0
  293. data/admin/app/views/gaku/admin/specialties/_form.html.slim +3 -0
  294. data/admin/app/views/gaku/admin/specialties/_form_fields.html.slim +4 -0
  295. data/admin/app/views/gaku/admin/specialties/_modal.html.slim +4 -0
  296. data/{core → admin}/app/views/gaku/admin/specialties/_specialty.html.slim +0 -0
  297. data/admin/app/views/gaku/admin/specialties/create.js.erb +7 -0
  298. data/admin/app/views/gaku/admin/specialties/destroy.js.erb +2 -0
  299. data/{core → admin}/app/views/gaku/admin/specialties/edit.js.erb +0 -0
  300. data/admin/app/views/gaku/admin/specialties/index.html.slim +21 -0
  301. data/{core → admin}/app/views/gaku/admin/specialties/new.js.erb +0 -0
  302. data/{core → admin}/app/views/gaku/admin/specialties/update.js.erb +0 -0
  303. data/{core → admin}/app/views/gaku/admin/states/_country_select_form.html.slim +0 -0
  304. data/{core → admin}/app/views/gaku/admin/states/_country_table.html.slim +0 -0
  305. data/{core → admin}/app/views/gaku/admin/states/_fields.html.slim +0 -0
  306. data/admin/app/views/gaku/admin/states/_form.html.slim +4 -0
  307. data/admin/app/views/gaku/admin/states/_form_fields.html.slim +14 -0
  308. data/admin/app/views/gaku/admin/states/_modal.html.slim +4 -0
  309. data/{core → admin}/app/views/gaku/admin/states/_state.html.slim +0 -0
  310. data/admin/app/views/gaku/admin/states/country_states.js.erb +2 -0
  311. data/admin/app/views/gaku/admin/states/create.js.erb +7 -0
  312. data/admin/app/views/gaku/admin/states/destroy.js.erb +2 -0
  313. data/admin/app/views/gaku/admin/states/edit.js.erb +3 -0
  314. data/admin/app/views/gaku/admin/states/index.html.slim +15 -0
  315. data/admin/app/views/gaku/admin/states/new.js.erb +3 -0
  316. data/admin/app/views/gaku/admin/states/update.js.erb +3 -0
  317. data/{core → admin}/app/views/gaku/admin/system_tools/index.html.slim +0 -0
  318. data/admin/app/views/gaku/admin/templates/_error_msg.html.slim +8 -0
  319. data/admin/app/views/gaku/admin/templates/_fields.html.slim +8 -0
  320. data/admin/app/views/gaku/admin/templates/_form.html.slim +3 -0
  321. data/{core → admin}/app/views/gaku/admin/templates/_form_fields.html.slim +0 -0
  322. data/admin/app/views/gaku/admin/templates/_modal.html.slim +4 -0
  323. data/{core → admin}/app/views/gaku/admin/templates/_template.html.slim +0 -0
  324. data/admin/app/views/gaku/admin/templates/destroy.js.erb +2 -0
  325. data/admin/app/views/gaku/admin/templates/edit.html.slim +1 -0
  326. data/admin/app/views/gaku/admin/templates/index.html.slim +20 -0
  327. data/admin/app/views/gaku/admin/templates/new.html.slim +1 -0
  328. data/{core → admin}/app/views/gaku/admin/users/_fields.html.slim +0 -0
  329. data/admin/app/views/gaku/admin/users/_form.html.slim +3 -0
  330. data/{core → admin}/app/views/gaku/admin/users/_form_fields.html.slim +0 -0
  331. data/admin/app/views/gaku/admin/users/_modal.html.slim +4 -0
  332. data/{core → admin}/app/views/gaku/admin/users/_user.html.slim +0 -0
  333. data/admin/app/views/gaku/admin/users/create.js.erb +7 -0
  334. data/admin/app/views/gaku/admin/users/destroy.js.erb +2 -0
  335. data/{core → admin}/app/views/gaku/admin/users/edit.js.erb +0 -0
  336. data/admin/app/views/gaku/admin/users/index.html.slim +21 -0
  337. data/{core → admin}/app/views/gaku/admin/users/new.js.erb +0 -0
  338. data/{core → admin}/app/views/gaku/admin/users/update.js.erb +0 -0
  339. data/admin/app/views/gaku/layouts/admin/edit.html.slim +10 -0
  340. data/admin/app/views/gaku/layouts/admin/gaku.html.slim +27 -0
  341. data/admin/app/views/gaku/layouts/admin/index.html.slim +12 -0
  342. data/admin/app/views/gaku/layouts/admin/show.html.slim +10 -0
  343. data/admin/app/views/gaku/shared/_delete_link.html.slim +1 -0
  344. data/admin/app/views/gaku/shared/_delete_modal.html.slim +11 -0
  345. data/admin/app/views/gaku/shared/_errors.html.slim +6 -0
  346. data/admin/app/views/gaku/shared/_flash.html.slim +4 -0
  347. data/{core → admin}/app/views/gaku/shared/_language_bar.html.slim +0 -0
  348. data/admin/app/views/gaku/shared/_login_widget.html.slim +15 -0
  349. data/{core → admin}/app/views/gaku/shared/_manage_buttons.html.slim +0 -0
  350. data/admin/app/views/gaku/shared/_modal_config.html.slim +37 -0
  351. data/admin/app/views/gaku/shared/_multi_errors.html.slim +6 -0
  352. data/admin/app/views/gaku/shared/_picture.html.slim +8 -0
  353. data/admin/app/views/gaku/shared/_upload_picture.html.slim +7 -0
  354. data/{core → admin}/app/views/gaku/shared/error.js.erb +0 -0
  355. data/admin/app/views/gaku/shared/menu/_admin.html.erb +71 -0
  356. data/{core → admin}/app/views/gaku/shared/multi_error.js.erb +0 -0
  357. data/{core → admin}/app/views/gaku/shared/notice.js.erb +0 -0
  358. data/{core → admin}/app/views/gaku/states/_no_states_select.html.slim +0 -0
  359. data/{core → admin}/app/views/gaku/states/_states_select.html.slim +0 -0
  360. data/{core → admin}/app/views/gaku/states/index.js.erb +0 -0
  361. data/{core → admin}/config/initializers/client_side_validations.rb +0 -0
  362. data/{core → admin}/config/initializers/wrap_parameters.rb +0 -0
  363. data/admin/config/routes.rb +67 -0
  364. data/admin/gaku_admin.gemspec +49 -0
  365. data/admin/lib/gaku/admin.rb +31 -0
  366. data/admin/lib/gaku/admin/engine.rb +30 -0
  367. data/{core → admin}/lib/gaku/app_responder.rb +0 -0
  368. data/admin/lib/gaku_admin.rb +1 -0
  369. data/admin/lib/tasks/admin_user.rake +104 -0
  370. data/admin/lib/tasks/core.rake +65 -0
  371. data/admin/lib/tasks/reset.rake +37 -0
  372. data/admin/spec/controllers/gaku/admin/achievements/simple_grade_types_controller_spec.rb +168 -0
  373. data/admin/spec/controllers/gaku/admin/badge_types_controller_spec.rb +139 -0
  374. data/admin/spec/controllers/gaku/admin/departments_controller_spec.rb +154 -0
  375. data/admin/spec/controllers/gaku/admin/grading/grading_method_set_items_controller_spec.rb +165 -0
  376. data/admin/spec/controllers/gaku/admin/grading/grading_method_sets_controller_spec.rb +183 -0
  377. data/admin/spec/controllers/gaku/admin/grading/grading_methods_controller_spec.rb +154 -0
  378. data/admin/spec/controllers/gaku/admin/presets_controller_spec.rb +68 -0
  379. data/admin/spec/controllers/gaku/admin/roles_controller_spec.rb +154 -0
  380. data/admin/spec/controllers/gaku/admin/school_years/school_years_controller_spec.rb +158 -0
  381. data/admin/spec/controllers/gaku/admin/school_years/semesters_controller_spec.rb +134 -0
  382. data/admin/spec/controllers/gaku/admin/schools/campuses/addresses_controller_spec.rb +121 -0
  383. data/admin/spec/controllers/gaku/admin/schools/campuses/campuses_controller_spec.rb +142 -0
  384. data/admin/spec/controllers/gaku/admin/schools/schools_controller_spec.rb +204 -0
  385. data/admin/spec/controllers/gaku/admin/specialties_controller_spec.rb +164 -0
  386. data/admin/spec/controllers/gaku/admin/templates_controller_spec.rb +156 -0
  387. data/admin/spec/controllers/gaku/admin/types_and_methods/attendance_types_controller_spec.rb +176 -0
  388. data/admin/spec/controllers/gaku/admin/types_and_methods/commute_method_types_controller_spec.rb +154 -0
  389. data/admin/spec/controllers/gaku/admin/types_and_methods/contact_types_controller_spec.rb +154 -0
  390. data/admin/spec/controllers/gaku/admin/types_and_methods/enrollment_statuses_controller_spec.rb +153 -0
  391. data/admin/spec/controllers/gaku/admin/users_controller_spec.rb +154 -0
  392. data/admin/spec/features/achievements/simple_grade_types_spec.rb +85 -0
  393. data/admin/spec/features/badge_types/badge_types_spec.rb +72 -0
  394. data/admin/spec/features/departments_spec.rb +76 -0
  395. data/admin/spec/features/grading/grading_method_set_items_spec.rb +86 -0
  396. data/admin/spec/features/grading/grading_method_sets_spec.rb +119 -0
  397. data/admin/spec/features/grading/grading_methods_spec.rb +101 -0
  398. data/admin/spec/features/presets/address_preset_spec.rb +36 -0
  399. data/admin/spec/features/presets/chooser_fields_preset_spec.rb +40 -0
  400. data/admin/spec/features/presets/export_formats_spec.rb +30 -0
  401. data/admin/spec/features/presets/grading_preset_spec.rb +31 -0
  402. data/admin/spec/features/presets/locale_preset_spec.rb +28 -0
  403. data/admin/spec/features/presets/names_order_preset_spec.rb +29 -0
  404. data/admin/spec/features/presets/pagination_preset_spec.rb +36 -0
  405. data/admin/spec/features/presets/person_preset_spec.rb +27 -0
  406. data/admin/spec/features/roles_spec.rb +83 -0
  407. data/admin/spec/features/school_years/school_years_spec.rb +117 -0
  408. data/admin/spec/features/school_years/semesters_spec.rb +142 -0
  409. data/admin/spec/features/schools/campuses/addresses_spec.rb +111 -0
  410. data/admin/spec/features/schools/campuses/campuses_spec.rb +65 -0
  411. data/admin/spec/features/schools/campuses/contacts_spec.rb +57 -0
  412. data/admin/spec/features/schools/campuses/picture_spec.rb +30 -0
  413. data/admin/spec/features/schools/picture_spec.rb +22 -0
  414. data/admin/spec/features/schools/programs_spec.rb +119 -0
  415. data/admin/spec/features/schools/school_details_spec.rb +26 -0
  416. data/admin/spec/features/schools/school_levels_spec.rb +80 -0
  417. data/admin/spec/features/schools/schools_spec.rb +78 -0
  418. data/admin/spec/features/specialties_spec.rb +83 -0
  419. data/{core/spec/requests/admin → admin/spec/features}/system_tools/backup_spec.rb +0 -0
  420. data/admin/spec/features/templates_spec.rb +113 -0
  421. data/admin/spec/features/types_and_methods/attendance_types_spec.rb +78 -0
  422. data/admin/spec/features/types_and_methods/commute_method_types_spec.rb +73 -0
  423. data/admin/spec/features/types_and_methods/contact_types_spec.rb +73 -0
  424. data/admin/spec/features/types_and_methods/enrollment_statuses_spec.rb +74 -0
  425. data/admin/spec/features/types_and_methods/states_spec.rb +109 -0
  426. data/admin/spec/features/users_spec.rb +88 -0
  427. data/admin/spec/routing/admin/school_years/school_years_routing_spec.rb +69 -0
  428. data/admin/spec/routing/admin/school_years/semesters_routing_spec.rb +58 -0
  429. data/admin/spec/routing/admin/schools/admin_school_routes_spec.rb +79 -0
  430. data/admin/spec/routing/admin/schools/campuses/admin_schools_campus_routes_spec.rb +65 -0
  431. data/admin/spec/routing/admin/schools/campuses/admin_schools_campuses_address_routes_spec.rb +61 -0
  432. data/admin/spec/routing/admin/schools/campuses/contacts_routing_spec.rb +61 -0
  433. data/admin/spec/routing/admin/simple_grade_types_routing_spec.rb +52 -0
  434. data/admin/spec/routing/admin/templates_routing_spec.rb +61 -0
  435. data/admin/spec/spec_helper.rb +5 -0
  436. data/admin/spec/spec_helper_controllers.rb +5 -0
  437. data/admin/spec/spec_helper_routing.rb +4 -0
  438. data/admin/spec/support/120x120.jpg +0 -0
  439. data/{core/spec/support → admin/spec/support/controllers/matchers}/have_attributes_matcher.rb +0 -0
  440. data/{core/spec/support → admin/spec/support/controllers}/shared_examples/allow.rb +0 -0
  441. data/{core/spec/support → admin/spec/support/controllers}/shared_examples/deny.rb +0 -0
  442. data/admin/spec/support/features/shared_examples/addresses_spec.rb +171 -0
  443. data/admin/spec/support/features/shared_examples/avatarable_spec.rb +21 -0
  444. data/admin/spec/support/features/shared_examples/contacts_spec.rb +123 -0
  445. data/admin/spec/support/sample_roster.ods +0 -0
  446. data/all_dependencies.rb +23 -0
  447. data/archive/.rspec +2 -0
  448. data/archive/.ruby-gemset +1 -0
  449. data/archive/.ruby-version +1 -0
  450. data/archive/Gemfile +8 -0
  451. data/archive/Rakefile +31 -0
  452. data/archive/app/assets/javascripts/gaku/archive.js.coffee +4 -0
  453. data/archive/app/assets/stylesheets/gaku/archive.css +5 -0
  454. data/archive/app/controllers/concerns/trashable_controller.rb +32 -0
  455. data/{core → archive}/app/controllers/gaku/admin/changes/student_address_changes_controller.rb +0 -0
  456. data/{core → archive}/app/controllers/gaku/admin/changes/student_changes_controller.rb +0 -0
  457. data/{core → archive}/app/controllers/gaku/admin/changes/student_contact_changes_controller.rb +0 -0
  458. data/{core → archive}/app/controllers/gaku/admin/disposals_controller.rb +0 -0
  459. data/archive/app/controllers/gaku/admin/students_controller.rb +22 -0
  460. data/archive/app/controllers/gaku/class_groups_controller_injector.rb +5 -0
  461. data/archive/app/controllers/gaku/contacts_controller_injector.rb +21 -0
  462. data/archive/app/controllers/gaku/course_groups_controller_injector.rb +5 -0
  463. data/archive/app/controllers/gaku/courses_controller_injector.rb +5 -0
  464. data/archive/app/controllers/gaku/exams_controller_injector.rb +5 -0
  465. data/archive/app/controllers/gaku/extracurricular_activities_controller_injector.rb +5 -0
  466. data/archive/app/controllers/gaku/students_controller_injector.rb +5 -0
  467. data/archive/app/controllers/gaku/syllabuses_controller_injector.rb +5 -0
  468. data/archive/app/controllers/gaku/teachers_controller_injector.rb +5 -0
  469. data/{core → archive}/app/models/concerns/trashable.rb +0 -0
  470. data/archive/app/models/gaku/address_injector.rb +31 -0
  471. data/archive/app/models/gaku/attachment_injector.rb +5 -0
  472. data/archive/app/models/gaku/class_group_injector.rb +5 -0
  473. data/archive/app/models/gaku/contact_injector.rb +34 -0
  474. data/archive/app/models/gaku/course_group_injector.rb +5 -0
  475. data/archive/app/models/gaku/course_injector.rb +5 -0
  476. data/archive/app/models/gaku/exam_injector.rb +5 -0
  477. data/archive/app/models/gaku/extracurricular_activity_injector.rb +5 -0
  478. data/archive/app/models/gaku/guardian_injector.rb +5 -0
  479. data/archive/app/models/gaku/student_injector.rb +16 -0
  480. data/archive/app/models/gaku/syllabus_injector.rb +5 -0
  481. data/archive/app/models/gaku/teacher_injector.rb +5 -0
  482. data/{core → archive}/app/models/gaku/versioning/address_version.rb +0 -0
  483. data/{core → archive}/app/models/gaku/versioning/contact_version.rb +0 -0
  484. data/archive/app/models/gaku/versioning/student_version.rb +47 -0
  485. data/archive/app/overrides/archive_menu.rb +6 -0
  486. data/archive/app/views/gaku/addresses/_delete_link.html.slim +1 -0
  487. data/archive/app/views/gaku/admin/changes/student_address_changes/_change.html.slim +10 -0
  488. data/{core → archive}/app/views/gaku/admin/changes/student_address_changes/_changes.html.slim +0 -0
  489. data/archive/app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim +9 -0
  490. data/{core → archive}/app/views/gaku/admin/changes/student_address_changes/index.html.slim +0 -0
  491. data/archive/app/views/gaku/admin/changes/student_changes/_change.html.slim +10 -0
  492. data/{core → archive}/app/views/gaku/admin/changes/student_changes/_changes.html.slim +0 -0
  493. data/archive/app/views/gaku/admin/changes/student_changes/_deletion.html.slim +9 -0
  494. data/{core → archive}/app/views/gaku/admin/changes/student_changes/index.html.slim +0 -0
  495. data/archive/app/views/gaku/admin/changes/student_contact_changes/_change.html.slim +10 -0
  496. data/{core → archive}/app/views/gaku/admin/changes/student_contact_changes/_changes.html.slim +0 -0
  497. data/archive/app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim +9 -0
  498. data/{core → archive}/app/views/gaku/admin/changes/student_contact_changes/index.html.slim +0 -0
  499. data/archive/app/views/gaku/admin/disposals/_address.html.slim +12 -0
  500. data/{core → archive}/app/views/gaku/admin/disposals/_addresses.html.slim +0 -0
  501. data/archive/app/views/gaku/admin/disposals/_contact.html.slim +9 -0
  502. data/{core → archive}/app/views/gaku/admin/disposals/_contacts.html.slim +0 -0
  503. data/{core → archive}/app/views/gaku/admin/disposals/_course_group.html.slim +0 -0
  504. data/archive/app/views/gaku/admin/disposals/_course_groups.html.slim +12 -0
  505. data/archive/app/views/gaku/admin/disposals/_exam.html.slim +10 -0
  506. data/{core → archive}/app/views/gaku/admin/disposals/_guardian.html.slim +0 -0
  507. data/archive/app/views/gaku/admin/disposals/_student.html.slim +10 -0
  508. data/{core → archive}/app/views/gaku/admin/disposals/_tabs.html.slim +0 -0
  509. data/archive/app/views/gaku/admin/disposals/_teacher.html.slim +10 -0
  510. data/{core → archive}/app/views/gaku/admin/disposals/addresses.html.slim +0 -0
  511. data/archive/app/views/gaku/admin/disposals/attachments.html.slim +30 -0
  512. data/{core → archive}/app/views/gaku/admin/disposals/contacts.html.slim +0 -0
  513. data/{core → archive}/app/views/gaku/admin/disposals/course_groups.html.slim +0 -0
  514. data/{core → archive}/app/views/gaku/admin/disposals/exams.html.slim +0 -0
  515. data/{core → archive}/app/views/gaku/admin/disposals/guardians.html.slim +0 -0
  516. data/archive/app/views/gaku/admin/disposals/index.html.slim +1 -0
  517. data/{core → archive}/app/views/gaku/admin/disposals/students.html.slim +0 -0
  518. data/{core → archive}/app/views/gaku/admin/disposals/tabs/_addresses_tabs.html.slim +0 -0
  519. data/{core → archive}/app/views/gaku/admin/disposals/tabs/_contacts_tabs.html.slim +0 -0
  520. data/{core → archive}/app/views/gaku/admin/disposals/teachers.html.slim +0 -0
  521. data/{core/app/views/gaku/exams → archive/app/views/gaku/class_groups}/recovery.js.erb +0 -0
  522. data/archive/app/views/gaku/contacts/_delete_link.html.slim +1 -0
  523. data/{core/app/views/gaku/addresses → archive/app/views/gaku/course_groups}/recovery.js.erb +0 -0
  524. data/{core/app/views/gaku/students/guardians → archive/app/views/gaku/courses}/recovery.js.erb +0 -0
  525. data/{core/app/views/gaku/students → archive/app/views/gaku/exams}/recovery.js.erb +0 -0
  526. data/{core/app/views/gaku/teachers → archive/app/views/gaku/extracurricular_activities}/recovery.js.erb +0 -0
  527. data/archive/app/views/gaku/shared/_delete_link.html.slim +1 -0
  528. data/archive/app/views/gaku/shared/_delete_modal.html.slim +11 -0
  529. data/archive/app/views/gaku/shared/menu/_archive.html.erb +1 -0
  530. data/archive/app/views/gaku/students/recovery.js.erb +1 -0
  531. data/{core/app/views/gaku/contacts → archive/app/views/gaku/syllabuses}/recovery.js.erb +0 -0
  532. data/archive/app/views/gaku/teachers/recovery.js.erb +1 -0
  533. data/{core → archive}/config/initializers/paper_trail.rb +0 -0
  534. data/archive/config/routes.rb +67 -0
  535. data/archive/db/migrate/20131203160531_create_versioning_tables.rb +47 -0
  536. data/archive/db/migrate/20131203160607_add_deleted_fields.rb +53 -0
  537. data/archive/gaku_archive.gemspec +28 -0
  538. data/archive/lib/gaku/archive.rb +13 -0
  539. data/archive/lib/gaku/archive/engine.rb +22 -0
  540. data/archive/lib/gaku_archive.rb +1 -0
  541. data/archive/spec/controllers/gaku/addresses_controller_spec.rb +144 -0
  542. data/archive/spec/controllers/gaku/admin/disposals_controller_spec.rb +177 -0
  543. data/archive/spec/controllers/gaku/class_groups_controller_spec.rb +86 -0
  544. data/archive/spec/controllers/gaku/contacts_controller_spec.rb +133 -0
  545. data/archive/spec/controllers/gaku/course_groups_controller_spec.rb +86 -0
  546. data/archive/spec/controllers/gaku/courses_controller_spec.rb +86 -0
  547. data/archive/spec/controllers/gaku/exams_controller_spec.rb +86 -0
  548. data/archive/spec/controllers/gaku/extracurricular_activities_controller_spec.rb +85 -0
  549. data/archive/spec/controllers/gaku/students_controller_spec.rb +72 -0
  550. data/archive/spec/controllers/gaku/syllabuses_controller_spec.rb +86 -0
  551. data/archive/spec/controllers/gaku/teachers_controller_spec.rb +86 -0
  552. data/{core/spec/requests → archive/spec/features}/admin/changes_and_deletions/student_addresses_spec.rb +0 -0
  553. data/{core/spec/requests → archive/spec/features}/admin/changes_and_deletions/student_contacts_spec.rb +0 -0
  554. data/archive/spec/features/admin/changes_and_deletions/students_spec.rb +45 -0
  555. data/archive/spec/features/admin/disposals/student_disposals_spec.rb +51 -0
  556. data/archive/spec/features/admin/disposals/teacher_disposals_spec.rb +51 -0
  557. data/archive/spec/features/students/addresses_spec.rb +29 -0
  558. data/archive/spec/features/students/contacts_spec.rb +36 -0
  559. data/archive/spec/features/students/guardians/addresses_spec.rb +32 -0
  560. data/archive/spec/features/students/guardians/contacts_spec.rb +31 -0
  561. data/archive/spec/features/students/guardians/guardians_spec.rb +33 -0
  562. data/archive/spec/features/students/students_spec.rb +36 -0
  563. data/{core → archive}/spec/integration/student_address_versioning_spec.rb +0 -0
  564. data/{core → archive}/spec/integration/student_contact_vesioning_spec.rb +0 -0
  565. data/archive/spec/integration/student_versioning_spec.rb +91 -0
  566. data/archive/spec/models/address_spec.rb +64 -0
  567. data/archive/spec/models/attachment_spec.rb +9 -0
  568. data/archive/spec/models/class_group_spec.rb +9 -0
  569. data/archive/spec/models/contact_spec.rb +9 -0
  570. data/archive/spec/models/course_group_spec.rb +9 -0
  571. data/archive/spec/models/course_spec.rb +9 -0
  572. data/archive/spec/models/exam_spec.rb +11 -0
  573. data/archive/spec/models/extracurricular_activity_spec.rb +9 -0
  574. data/archive/spec/models/guardian_spec.rb +9 -0
  575. data/archive/spec/models/student_spec.rb +13 -0
  576. data/archive/spec/models/syllabus_spec.rb +9 -0
  577. data/archive/spec/models/teacher_spec.rb +9 -0
  578. data/archive/spec/routing/student_routes_spec.rb +26 -0
  579. data/archive/spec/routing/students/guardians_routes_spec.rb +37 -0
  580. data/archive/spec/spec_helper.rb +5 -0
  581. data/archive/spec/spec_helper_base.rb +20 -0
  582. data/archive/spec/spec_helper_controllers.rb +4 -0
  583. data/archive/spec/spec_helper_models.rb +38 -0
  584. data/archive/spec/spec_helper_routing.rb +4 -0
  585. data/archive/spec/support/controllers.rb +3 -0
  586. data/archive/spec/support/controllers/matchers/have_attributes_matcher.rb +8 -0
  587. data/archive/spec/support/controllers/shared_examples/allow.rb +10 -0
  588. data/archive/spec/support/controllers/shared_examples/deny.rb +27 -0
  589. data/archive/spec/support/features.rb +5 -0
  590. data/archive/spec/support/features/shared_examples/addresses_spec.rb +22 -0
  591. data/archive/spec/support/features/shared_examples/contacts_spec.rb +26 -0
  592. data/{core/spec/support → archive/spec/support/models}/shared_examples/thrashable.rb +0 -0
  593. data/core/Gemfile +2 -1
  594. data/core/Guardfile +6 -0
  595. data/core/app/assets/images/{pictures/thumb/missing.png → missing_original.png} +0 -0
  596. data/core/app/assets/images/missing_thumb.png +0 -0
  597. data/core/app/controllers/gaku/core_controller.rb +64 -0
  598. data/core/app/decorators/gaku/course_decorator.rb +15 -0
  599. data/core/app/decorators/gaku/person_decorator.rb +1 -1
  600. data/core/app/decorators/gaku/student_decorator.rb +24 -7
  601. data/core/app/models/concerns/pagination.rb +8 -0
  602. data/core/app/models/concerns/person.rb +11 -0
  603. data/core/app/models/concerns/picture.rb +1 -1
  604. data/core/app/models/gaku/address.rb +4 -22
  605. data/core/app/models/gaku/attachment.rb +0 -2
  606. data/core/app/models/gaku/badge.rb +10 -0
  607. data/core/app/models/gaku/badge_type.rb +15 -0
  608. data/core/app/models/gaku/class_group.rb +1 -1
  609. data/core/app/models/gaku/class_group_enrollment.rb +2 -2
  610. data/core/app/models/gaku/contact.rb +8 -23
  611. data/core/app/models/gaku/contact_type.rb +1 -1
  612. data/core/app/models/gaku/country.rb +1 -0
  613. data/core/app/models/gaku/course_enrollment.rb +6 -0
  614. data/core/app/models/gaku/course_group.rb +0 -2
  615. data/core/app/models/gaku/department.rb +17 -0
  616. data/core/app/models/gaku/enrollment_status.rb +1 -1
  617. data/core/app/models/gaku/exam.rb +3 -1
  618. data/core/app/models/gaku/exam_portion.rb +1 -1
  619. data/core/app/models/gaku/external_school_record.rb +22 -7
  620. data/core/app/models/gaku/extracurricular_activity.rb +1 -1
  621. data/core/app/models/gaku/grading_method.rb +2 -1
  622. data/core/app/models/gaku/guardian.rb +1 -1
  623. data/core/app/models/gaku/level.rb +1 -0
  624. data/core/app/models/gaku/preset.rb +35 -62
  625. data/core/app/models/gaku/program.rb +1 -0
  626. data/core/app/models/gaku/school.rb +6 -1
  627. data/core/app/models/gaku/semester.rb +3 -0
  628. data/core/app/models/gaku/simple_grade.rb +7 -3
  629. data/core/app/models/gaku/simple_grade_type.rb +14 -0
  630. data/core/app/models/gaku/specialty.rb +3 -1
  631. data/core/app/models/gaku/student.rb +56 -15
  632. data/core/app/models/gaku/student_specialty.rb +0 -1
  633. data/core/app/models/gaku/syllabus.rb +2 -0
  634. data/core/app/models/gaku/teacher.rb +1 -1
  635. data/core/app/models/gaku/template.rb +5 -7
  636. data/core/app/models/gaku/user.rb +10 -2
  637. data/core/app/views/gaku/admin/grading_methods/_arguments_form_fields.html.slim +19 -0
  638. data/core/app/views/gaku/admin/grading_methods/_arguments_template.html.slim +11 -0
  639. data/core/app/views/gaku/shared/menu/_global.html.erb +2 -26
  640. data/core/config/initializers/devise.rb +3 -0
  641. data/core/config/initializers/{kaminari_config.rb → kaminari.rb} +0 -0
  642. data/core/config/initializers/translation_missing.rb +1 -1
  643. data/core/config/routes.rb +1 -289
  644. data/core/db/default/gaku/attendance_types.rb +2 -2
  645. data/core/db/default/gaku/commute_method_types.rb +1 -1
  646. data/core/db/default/gaku/departments.rb +14 -0
  647. data/core/db/default/gaku/presets.rb +33 -0
  648. data/core/db/default/gaku/scholarship_statuses.rb +2 -2
  649. data/core/db/migrate/20120202111850_presets.rb +30 -0
  650. data/core/db/migrate/20131014065028_translations.rb +77 -0
  651. data/core/db/migrate/20131025073352_gaku_core.rb +628 -0
  652. data/core/db/migrate/20140130182100_change_fields_external_school_record.rb +7 -0
  653. data/core/db/migrate/20140131113337_create_student_configs.rb +21 -0
  654. data/core/db/migrate/20140207093618_drop_student_configs.rb +5 -0
  655. data/core/gaku_core.gemspec +14 -49
  656. data/core/lib/gaku/core.rb +3 -21
  657. data/core/lib/gaku/core/engine.rb +8 -24
  658. data/core/lib/gaku/migrations.rb +30 -0
  659. data/core/lib/gaku/streamer/sse.rb +22 -0
  660. data/core/lib/gaku/testing/auth_helpers.rb +2 -2
  661. data/core/lib/gaku/testing/coverage.rb +20 -0
  662. data/core/{spec/support → lib/gaku/testing}/deferred_garbage_collection.rb +0 -0
  663. data/core/lib/gaku/testing/factories/attachment_factory.rb +3 -2
  664. data/core/lib/gaku/testing/factories/badge_factory.rb +12 -0
  665. data/core/lib/gaku/testing/factories/badge_type_factory.rb +12 -0
  666. data/core/lib/gaku/testing/factories/campus_factory.rb +5 -1
  667. data/core/lib/gaku/testing/factories/class_group_course_enrollment_factory.rb +8 -0
  668. data/core/lib/gaku/testing/factories/class_group_factory.rb +2 -7
  669. data/core/lib/gaku/testing/factories/contact_type_factory.rb +1 -1
  670. data/core/lib/gaku/testing/factories/country_factory.rb +2 -2
  671. data/core/lib/gaku/testing/factories/course_enrollment_factory.rb +4 -0
  672. data/core/lib/gaku/testing/factories/course_factory.rb +4 -0
  673. data/core/lib/gaku/testing/factories/course_group_factory.rb +4 -0
  674. data/core/lib/gaku/testing/factories/department_factory.rb +11 -0
  675. data/core/lib/gaku/testing/factories/exam_factory.rb +10 -2
  676. data/core/lib/gaku/testing/factories/exam_portion_factory.rb +5 -1
  677. data/core/lib/gaku/testing/factories/external_school_record_factory.rb +14 -0
  678. data/core/lib/gaku/testing/factories/extracurricular_activity_factory.rb +4 -0
  679. data/core/lib/gaku/testing/factories/guardian_factory.rb +4 -1
  680. data/core/lib/gaku/testing/factories/level_factory.rb +1 -1
  681. data/core/lib/gaku/testing/factories/preset_factory.rb +17 -0
  682. data/core/lib/gaku/testing/factories/program_factory.rb +1 -1
  683. data/core/lib/gaku/testing/factories/school_factory.rb +5 -1
  684. data/core/lib/gaku/testing/factories/school_year_factory.rb +5 -0
  685. data/core/lib/gaku/testing/factories/semester_factory.rb +5 -0
  686. data/core/lib/gaku/testing/factories/simple_grade_factory.rb +7 -3
  687. data/core/lib/gaku/testing/factories/simple_grade_type_factory.rb +13 -0
  688. data/core/lib/gaku/testing/factories/student_specialty_factory.rb +4 -0
  689. data/core/lib/gaku/testing/factories/template_factory.rb +7 -0
  690. data/core/lib/gaku/testing/factories/traits.rb +8 -0
  691. data/core/lib/generators/gaku/dummy/templates/rails/database.yml +2 -0
  692. data/core/lib/generators/gaku/install/install_generator.rb +31 -30
  693. data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/admin/all.js +10 -0
  694. data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/archive/all.js +10 -0
  695. data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/frontend/all.js +10 -0
  696. data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/admin/all.css +9 -0
  697. data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/archive/all.css +9 -0
  698. data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/frontend/all.css +9 -0
  699. data/core/spec/models/address_spec.rb +1 -37
  700. data/core/spec/models/assignment_score_spec.rb +1 -1
  701. data/core/spec/models/assignment_spec.rb +1 -1
  702. data/core/spec/models/attachment_spec.rb +1 -5
  703. data/core/spec/models/attendance_spec.rb +1 -1
  704. data/core/spec/models/attendance_type_spec.rb +1 -1
  705. data/core/spec/models/badge_spec.rb +15 -0
  706. data/core/spec/models/badge_type_spec.rb +20 -0
  707. data/core/spec/models/campus_spec.rb +7 -7
  708. data/core/spec/models/class_group_course_enrollment_spec.rb +1 -1
  709. data/core/spec/models/class_group_enrollment_spec.rb +4 -4
  710. data/core/spec/models/class_group_spec.rb +1 -1
  711. data/core/spec/models/commute_method_type_spec.rb +1 -1
  712. data/core/spec/models/contact_spec.rb +1 -6
  713. data/core/spec/models/contact_type_spec.rb +2 -1
  714. data/core/spec/models/country_spec.rb +2 -1
  715. data/core/spec/models/course_enrollment_spec.rb +1 -1
  716. data/core/spec/models/course_group_enrollment_spec.rb +1 -1
  717. data/core/spec/models/course_group_spec.rb +1 -5
  718. data/core/spec/models/course_spec.rb +1 -5
  719. data/core/spec/models/department_spec.rb +22 -0
  720. data/core/spec/models/enrollment_status_spec.rb +2 -1
  721. data/core/spec/models/exam_portion_score_spec.rb +1 -1
  722. data/core/spec/models/exam_portion_spec.rb +1 -1
  723. data/core/spec/models/exam_schedule_spec.rb +1 -1
  724. data/core/spec/models/exam_score_spec.rb +1 -1
  725. data/core/spec/models/exam_spec.rb +21 -2
  726. data/core/spec/models/exam_syllabus_spec.rb +1 -1
  727. data/core/spec/models/external_school_record_spec.rb +18 -3
  728. data/core/spec/models/extracurricular_activity_enrollment_spec.rb +1 -1
  729. data/core/spec/models/extracurricular_activity_spec.rb +2 -1
  730. data/core/spec/models/factories_spec.rb +1 -1
  731. data/core/spec/models/faculty_spec.rb +1 -1
  732. data/core/spec/models/grading_method_set_item_spec.rb +1 -1
  733. data/core/spec/models/grading_method_set_spec.rb +1 -1
  734. data/core/spec/models/grading_method_spec.rb +4 -1
  735. data/core/spec/models/guardian_spec.rb +1 -2
  736. data/core/spec/models/lesson_plan_spec.rb +1 -1
  737. data/core/spec/models/lesson_spec.rb +1 -1
  738. data/core/spec/models/level_spec.rb +2 -1
  739. data/core/spec/models/note_spec.rb +1 -1
  740. data/core/spec/models/preset_spec.rb +1 -1
  741. data/core/spec/models/program_level_spec.rb +1 -1
  742. data/core/spec/models/program_spec.rb +2 -1
  743. data/core/spec/models/program_specialty_spec.rb +1 -1
  744. data/core/spec/models/program_syllabus_spec.rb +1 -2
  745. data/core/spec/models/role_spec.rb +1 -1
  746. data/core/spec/models/scholarship_status_spec.rb +1 -1
  747. data/core/spec/models/school_role_spec.rb +1 -1
  748. data/core/spec/models/school_spec.rb +3 -2
  749. data/core/spec/models/school_year_spec.rb +1 -1
  750. data/core/spec/models/semester_class_group_spec.rb +1 -1
  751. data/core/spec/models/semester_course_spec.rb +1 -1
  752. data/core/spec/models/semester_spec.rb +1 -1
  753. data/core/spec/models/simple_grade_spec.rb +4 -3
  754. data/core/spec/models/simple_grade_type_spec.rb +19 -0
  755. data/core/spec/models/specialty_spec.rb +4 -1
  756. data/core/spec/models/state_spec.rb +1 -1
  757. data/core/spec/models/student_guardian_spec.rb +1 -1
  758. data/core/spec/models/student_spec.rb +105 -7
  759. data/core/spec/models/student_speciality_spec.rb +4 -3
  760. data/core/spec/models/syllabus_spec.rb +3 -1
  761. data/core/spec/models/teacher_spec.rb +1 -2
  762. data/core/spec/models/template_spec.rb +1 -1
  763. data/core/spec/models/user_role_spec.rb +1 -1
  764. data/core/spec/models/user_spec.rb +1 -1
  765. data/core/spec/spec_helper_base.rb +20 -0
  766. data/core/spec/spec_helper_models.rb +38 -0
  767. data/core/spec/support/{accept_nested_attributes_for_matcher.rb → models/matchers/accept_nested_attributes_for_matcher.rb} +0 -0
  768. data/core/spec/support/{shared_examples → models/shared_examples}/addressable.rb +0 -0
  769. data/core/spec/support/{shared_examples → models/shared_examples}/avatarable.rb +0 -0
  770. data/core/spec/support/{shared_examples → models/shared_examples}/contactable.rb +0 -0
  771. data/core/spec/support/{shared_examples → models/shared_examples}/notable.rb +0 -0
  772. data/core/spec/support/{shared_examples → models/shared_examples}/person.rb +0 -0
  773. data/core_dependencies.rb +12 -0
  774. data/{core → frontend}/.gitignore +0 -0
  775. data/frontend/.rspec +2 -0
  776. data/frontend/.ruby-gemset +1 -0
  777. data/frontend/.ruby-version +1 -0
  778. data/frontend/Gemfile +7 -0
  779. data/frontend/Guardfile +40 -0
  780. data/frontend/Rakefile +31 -0
  781. data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.eot +0 -0
  782. data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.svg +228 -0
  783. data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.ttf +0 -0
  784. data/frontend/app/assets/fonts/gaku/frontend/glyphicons-halflings-regular.woff +0 -0
  785. data/frontend/app/assets/javascripts/gaku/frontend.js.coffee +42 -0
  786. data/frontend/app/assets/javascripts/gaku/frontend/base.js.coffee +147 -0
  787. data/frontend/app/assets/javascripts/gaku/frontend/class_groups.js.coffee +19 -0
  788. data/frontend/app/assets/javascripts/gaku/frontend/courses.js.coffee +23 -0
  789. data/{core/app/assets/javascripts/gaku → frontend/app/assets/javascripts/gaku/frontend}/exams.js.coffee +0 -0
  790. data/frontend/app/assets/javascripts/gaku/frontend/extracurricular_activities.js.coffee +12 -0
  791. data/frontend/app/assets/javascripts/gaku/frontend/slide.js.erb +14 -0
  792. data/frontend/app/assets/javascripts/gaku/frontend/students.js.coffee +38 -0
  793. data/frontend/app/assets/javascripts/gaku/frontend/syllabuses.js.coffee +23 -0
  794. data/{core/app/assets/javascripts/gaku → frontend/app/assets/javascripts/gaku/frontend}/teachers.js.coffee +0 -0
  795. data/frontend/app/assets/stylesheets/gaku/bootstrap_and_theme.css.scss +573 -0
  796. data/frontend/app/assets/stylesheets/gaku/frontend.css +14 -0
  797. data/{core/app/assets/stylesheets/gaku → frontend/app/assets/stylesheets/gaku/frontend}/class_groups.css.scss +0 -0
  798. data/{core/app/assets/stylesheets/gaku → frontend/app/assets/stylesheets/gaku/frontend}/course_groups.css.scss +0 -0
  799. data/{core/app/assets/stylesheets/gaku → frontend/app/assets/stylesheets/gaku/frontend}/courses.css.scss +0 -0
  800. data/{core/app/assets/stylesheets/gaku → frontend/app/assets/stylesheets/gaku/frontend}/exams.css.scss +0 -0
  801. data/frontend/app/assets/stylesheets/gaku/frontend/gaku.css.scss +216 -0
  802. data/{core/app/assets/stylesheets/gaku → frontend/app/assets/stylesheets/gaku/frontend}/students.css.scss +0 -0
  803. data/frontend/app/assets/templates/roster.xls +0 -0
  804. data/{core → frontend}/app/controllers/concerns/enrollments_controller.rb +0 -0
  805. data/frontend/app/controllers/concerns/polymorphic_resource_concern.rb +48 -0
  806. data/frontend/app/controllers/concerns/student_chooser_controller.rb +41 -0
  807. data/frontend/app/controllers/gaku/addresses_controller.rb +94 -0
  808. data/frontend/app/controllers/gaku/attachments_controller.rb +90 -0
  809. data/frontend/app/controllers/gaku/attendances_controller.rb +28 -0
  810. data/{core → frontend}/app/controllers/gaku/class_group_enrollments_controller.rb +0 -0
  811. data/frontend/app/controllers/gaku/class_groups/courses_controller.rb +50 -0
  812. data/frontend/app/controllers/gaku/class_groups/semester_class_groups_controller.rb +63 -0
  813. data/frontend/app/controllers/gaku/class_groups/students_controller.rb +37 -0
  814. data/frontend/app/controllers/gaku/class_groups_controller.rb +120 -0
  815. data/frontend/app/controllers/gaku/contacts_controller.rb +79 -0
  816. data/{core → frontend}/app/controllers/gaku/course_enrollments_controller.rb +0 -0
  817. data/frontend/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +54 -0
  818. data/frontend/app/controllers/gaku/course_groups_controller.rb +91 -0
  819. data/{core → frontend}/app/controllers/gaku/courses/enrollments_controller.rb +0 -0
  820. data/frontend/app/controllers/gaku/courses/exams_controller.rb +28 -0
  821. data/frontend/app/controllers/gaku/courses/semester_courses_controller.rb +64 -0
  822. data/frontend/app/controllers/gaku/courses_controller.rb +95 -0
  823. data/frontend/app/controllers/gaku/devise/passwords_controller.rb +4 -0
  824. data/frontend/app/controllers/gaku/devise/registrations_controller.rb +60 -0
  825. data/frontend/app/controllers/gaku/devise/sessions_controller.rb +13 -0
  826. data/frontend/app/controllers/gaku/exam_portion_scores_controller.rb +26 -0
  827. data/frontend/app/controllers/gaku/exams/exam_portions/attachments_controller.rb +46 -0
  828. data/frontend/app/controllers/gaku/exams/exam_portions_controller.rb +76 -0
  829. data/frontend/app/controllers/gaku/exams_controller.rb +153 -0
  830. data/frontend/app/controllers/gaku/extracurricular_activities/students_controller.rb +21 -0
  831. data/frontend/app/controllers/gaku/extracurricular_activities_controller.rb +68 -0
  832. data/frontend/app/controllers/gaku/extracurricular_activity_enrollments_controller.rb +16 -0
  833. data/frontend/app/controllers/gaku/gaku_controller.rb +23 -0
  834. data/frontend/app/controllers/gaku/home_controller.rb +11 -0
  835. data/frontend/app/controllers/gaku/notes_controller.rb +81 -0
  836. data/frontend/app/controllers/gaku/realtime_controller.rb +29 -0
  837. data/frontend/app/controllers/gaku/search_controller.rb +16 -0
  838. data/{core → frontend}/app/controllers/gaku/states_controller.rb +0 -0
  839. data/frontend/app/controllers/gaku/students/badges_controller.rb +65 -0
  840. data/frontend/app/controllers/gaku/students/class_group_enrollments_controller.rb +45 -0
  841. data/frontend/app/controllers/gaku/students/course_enrollments_controller.rb +51 -0
  842. data/frontend/app/controllers/gaku/students/external_school_records_controller.rb +70 -0
  843. data/frontend/app/controllers/gaku/students/guardians_controller.rb +70 -0
  844. data/frontend/app/controllers/gaku/students/simple_grades_controller.rb +69 -0
  845. data/frontend/app/controllers/gaku/students/student_specialties_controller.rb +68 -0
  846. data/frontend/app/controllers/gaku/students_controller.rb +198 -0
  847. data/{core → frontend}/app/controllers/gaku/syllabuses/assignments_controller.rb +0 -0
  848. data/frontend/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +38 -0
  849. data/frontend/app/controllers/gaku/syllabuses/exams_controller.rb +68 -0
  850. data/frontend/app/controllers/gaku/syllabuses_controller.rb +77 -0
  851. data/frontend/app/controllers/gaku/teachers_controller.rb +76 -0
  852. data/frontend/app/helpers/gaku/autocomplete_helper.rb +31 -0
  853. data/frontend/app/helpers/gaku/exam_helper.rb +13 -0
  854. data/frontend/app/helpers/gaku/frontend_helper.rb +42 -0
  855. data/frontend/app/helpers/gaku/person_helper.rb +79 -0
  856. data/frontend/app/helpers/gaku/shared_helper.rb +29 -0
  857. data/frontend/app/helpers/gaku/student_chooser_helper.rb +11 -0
  858. data/frontend/app/helpers/gaku/students_helper.rb +31 -0
  859. data/frontend/app/overrides/frontend_menu.rb +6 -0
  860. data/frontend/app/views/gaku/addresses/_address.html.slim +5 -0
  861. data/frontend/app/views/gaku/addresses/_addresses.html.slim +25 -0
  862. data/frontend/app/views/gaku/addresses/_delete_link.html.slim +1 -0
  863. data/frontend/app/views/gaku/addresses/_fields.html.slim +14 -0
  864. data/frontend/app/views/gaku/addresses/_form.html.slim +3 -0
  865. data/frontend/app/views/gaku/addresses/_form_fields.html.slim +26 -0
  866. data/frontend/app/views/gaku/addresses/_modal.html.slim +4 -0
  867. data/frontend/app/views/gaku/addresses/_primary_field.html.slim +12 -0
  868. data/frontend/app/views/gaku/addresses/create.js.erb +12 -0
  869. data/frontend/app/views/gaku/addresses/destroy.js.erb +8 -0
  870. data/{core → frontend}/app/views/gaku/addresses/edit.js.erb +0 -0
  871. data/{core → frontend}/app/views/gaku/addresses/make_primary.js.erb +0 -0
  872. data/{core → frontend}/app/views/gaku/addresses/new.js.erb +0 -0
  873. data/{core/app/views/gaku/attachments/destroy.js.erb → frontend/app/views/gaku/addresses/recovery.js.erb} +0 -0
  874. data/frontend/app/views/gaku/addresses/soft_delete.js.erb +8 -0
  875. data/{core → frontend}/app/views/gaku/addresses/update.js.erb +0 -0
  876. data/frontend/app/views/gaku/attachments/destroy.js.erb +1 -0
  877. data/frontend/app/views/gaku/attachments/edit.js.erb +3 -0
  878. data/{core → frontend}/app/views/gaku/attachments/new.js.erb +0 -0
  879. data/frontend/app/views/gaku/attachments/recovery.js.erb +1 -0
  880. data/frontend/app/views/gaku/attachments/soft_delete.js.erb +3 -0
  881. data/frontend/app/views/gaku/class_groups/_class_group.html.slim +4 -0
  882. data/frontend/app/views/gaku/class_groups/_class_groups.html.slim +11 -0
  883. data/frontend/app/views/gaku/class_groups/_class_groups_with_semester.html.slim +12 -0
  884. data/{core/app/views/gaku/shared/fields/_class_group_fields.html.slim → frontend/app/views/gaku/class_groups/_fields.html.slim} +0 -0
  885. data/frontend/app/views/gaku/class_groups/_form.html.slim +3 -0
  886. data/frontend/app/views/gaku/class_groups/_form_fields.html.slim +7 -0
  887. data/frontend/app/views/gaku/class_groups/_student_chooser_form.html.slim +4 -0
  888. data/frontend/app/views/gaku/class_groups/_tabs.html.slim +41 -0
  889. data/frontend/app/views/gaku/class_groups/advanced_search.js.erb +30 -0
  890. data/{core → frontend}/app/views/gaku/class_groups/courses/_course.html.slim +0 -0
  891. data/frontend/app/views/gaku/class_groups/courses/_courses.html.slim +14 -0
  892. data/frontend/app/views/gaku/class_groups/courses/_form.html.slim +5 -0
  893. data/frontend/app/views/gaku/class_groups/courses/create.js.erb +7 -0
  894. data/frontend/app/views/gaku/class_groups/courses/destroy.js.erb +2 -0
  895. data/{core → frontend}/app/views/gaku/class_groups/courses/new.js.erb +0 -0
  896. data/frontend/app/views/gaku/class_groups/create.js.erb +6 -0
  897. data/frontend/app/views/gaku/class_groups/destroy.js.erb +1 -0
  898. data/frontend/app/views/gaku/class_groups/edit.html.slim +16 -0
  899. data/frontend/app/views/gaku/class_groups/index.html.slim +25 -0
  900. data/frontend/app/views/gaku/class_groups/new.js.erb +3 -0
  901. data/frontend/app/views/gaku/class_groups/search/_form.html.slim +18 -0
  902. data/frontend/app/views/gaku/class_groups/search/_semester_form.html.slim +23 -0
  903. data/frontend/app/views/gaku/class_groups/semester_advanced_search.js.erb +30 -0
  904. data/{core → frontend}/app/views/gaku/class_groups/semester_class_groups/_fields.html.slim +0 -0
  905. data/frontend/app/views/gaku/class_groups/semester_class_groups/_form.html.slim +4 -0
  906. data/frontend/app/views/gaku/class_groups/semester_class_groups/_form_fields.html.slim +3 -0
  907. data/{core → frontend}/app/views/gaku/class_groups/semester_class_groups/_modal.html.slim +0 -0
  908. data/{core → frontend}/app/views/gaku/class_groups/semester_class_groups/_semester.html.slim +0 -0
  909. data/frontend/app/views/gaku/class_groups/semester_class_groups/_semester_modal.html.slim +4 -0
  910. data/frontend/app/views/gaku/class_groups/semester_class_groups/_semesters.html.slim +13 -0
  911. data/frontend/app/views/gaku/class_groups/semester_class_groups/create.js.erb +8 -0
  912. data/frontend/app/views/gaku/class_groups/semester_class_groups/destroy.js.erb +2 -0
  913. data/frontend/app/views/gaku/class_groups/semester_class_groups/edit.js.erb +3 -0
  914. data/frontend/app/views/gaku/class_groups/semester_class_groups/new.js.erb +3 -0
  915. data/frontend/app/views/gaku/class_groups/semester_class_groups/update.js.erb +3 -0
  916. data/frontend/app/views/gaku/class_groups/student_chooser.js.erb +9 -0
  917. data/{core → frontend}/app/views/gaku/class_groups/students/_student.html.slim +0 -0
  918. data/frontend/app/views/gaku/class_groups/students/_students.html.slim +14 -0
  919. data/frontend/app/views/gaku/class_groups/students/destroy.js.erb +2 -0
  920. data/frontend/app/views/gaku/class_groups/students/enroll_students.js.erb +16 -0
  921. data/frontend/app/views/gaku/class_groups/students/new.js.erb +3 -0
  922. data/frontend/app/views/gaku/class_groups/students/without_semester.js.erb +2 -0
  923. data/frontend/app/views/gaku/class_groups/with_semester.html.slim +26 -0
  924. data/frontend/app/views/gaku/class_groups/with_semester.js.erb +2 -0
  925. data/frontend/app/views/gaku/class_groups/without_semester.html.slim +26 -0
  926. data/frontend/app/views/gaku/class_groups/without_semester.js.erb +2 -0
  927. data/{core → frontend}/app/views/gaku/contacts/_contact.html.slim +0 -0
  928. data/frontend/app/views/gaku/contacts/_contacts.html.slim +22 -0
  929. data/frontend/app/views/gaku/contacts/_delete_link.html.slim +1 -0
  930. data/frontend/app/views/gaku/contacts/_fields.html.slim +14 -0
  931. data/frontend/app/views/gaku/contacts/_form.html.slim +4 -0
  932. data/frontend/app/views/gaku/contacts/_form_fields.html.slim +14 -0
  933. data/frontend/app/views/gaku/contacts/_modal.html.slim +4 -0
  934. data/frontend/app/views/gaku/contacts/_primary_field.html.slim +13 -0
  935. data/frontend/app/views/gaku/contacts/create.js.erb +21 -0
  936. data/frontend/app/views/gaku/contacts/destroy.js.erb +9 -0
  937. data/frontend/app/views/gaku/contacts/edit.js.erb +4 -0
  938. data/{core → frontend}/app/views/gaku/contacts/make_primary.js.erb +0 -0
  939. data/{core → frontend}/app/views/gaku/contacts/new.js.erb +0 -0
  940. data/frontend/app/views/gaku/contacts/recovery.js.erb +1 -0
  941. data/frontend/app/views/gaku/contacts/soft_delete.js.erb +8 -0
  942. data/{core → frontend}/app/views/gaku/contacts/update.js.erb +0 -0
  943. data/frontend/app/views/gaku/course_groups/_course_group.html.slim +4 -0
  944. data/frontend/app/views/gaku/course_groups/_course_groups.html.slim +7 -0
  945. data/{core → frontend}/app/views/gaku/course_groups/_fields.html.slim +0 -0
  946. data/{core → frontend}/app/views/gaku/course_groups/_form.html.slim +0 -0
  947. data/{core → frontend}/app/views/gaku/course_groups/_form_fields.html.slim +0 -0
  948. data/{core → frontend}/app/views/gaku/course_groups/course_group_enrollments/_course.html.slim +0 -0
  949. data/frontend/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +21 -0
  950. data/frontend/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +4 -0
  951. data/frontend/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +7 -0
  952. data/frontend/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +2 -0
  953. data/{core → frontend}/app/views/gaku/course_groups/course_group_enrollments/new.js.erb +0 -0
  954. data/frontend/app/views/gaku/course_groups/create.js.erb +6 -0
  955. data/frontend/app/views/gaku/course_groups/destroy.js.erb +1 -0
  956. data/frontend/app/views/gaku/course_groups/edit.html.slim +21 -0
  957. data/frontend/app/views/gaku/course_groups/index.html.slim +14 -0
  958. data/frontend/app/views/gaku/course_groups/new.js.erb +3 -0
  959. data/frontend/app/views/gaku/courses/_course.html.slim +7 -0
  960. data/frontend/app/views/gaku/courses/_courses.html.slim +24 -0
  961. data/frontend/app/views/gaku/courses/_form.html.slim +3 -0
  962. data/frontend/app/views/gaku/courses/_form_fields.html.slim +5 -0
  963. data/frontend/app/views/gaku/courses/_student_chooser_form.html.slim +4 -0
  964. data/frontend/app/views/gaku/courses/_tabs.html.slim +26 -0
  965. data/frontend/app/views/gaku/courses/create.js.erb +6 -0
  966. data/frontend/app/views/gaku/courses/destroy.js.erb +1 -0
  967. data/frontend/app/views/gaku/courses/edit.html.slim +16 -0
  968. data/{core → frontend}/app/views/gaku/courses/enrollments/_enrolled.html.slim +0 -0
  969. data/frontend/app/views/gaku/courses/enrollments/_enrollments.html.slim +27 -0
  970. data/frontend/app/views/gaku/courses/enrollments/_errors_modal.html.slim +11 -0
  971. data/frontend/app/views/gaku/courses/enrollments/class_groups/_form.html.slim +3 -0
  972. data/frontend/app/views/gaku/courses/enrollments/class_groups/enroll.js.erb +16 -0
  973. data/{core → frontend}/app/views/gaku/courses/enrollments/class_groups/new.js.erb +0 -0
  974. data/frontend/app/views/gaku/courses/enrollments/error.js.erb +2 -0
  975. data/frontend/app/views/gaku/courses/enrollments/students/enroll_students.js.erb +11 -0
  976. data/{core → frontend}/app/views/gaku/courses/exams/_exam.html.slim +0 -0
  977. data/frontend/app/views/gaku/courses/exams/_exam_portion_head.html.slim +5 -0
  978. data/frontend/app/views/gaku/courses/exams/_exams.html.slim +14 -0
  979. data/frontend/app/views/gaku/courses/exams/_grading_table_head.html.slim +9 -0
  980. data/frontend/app/views/gaku/courses/exams/_grading_table_student_field.html.slim +11 -0
  981. data/frontend/app/views/gaku/courses/exams/grading.html.slim +7 -0
  982. data/frontend/app/views/gaku/courses/index.html.slim +14 -0
  983. data/frontend/app/views/gaku/courses/new.js.erb +3 -0
  984. data/{core → frontend}/app/views/gaku/courses/semester_courses/_fields.html.slim +0 -0
  985. data/frontend/app/views/gaku/courses/semester_courses/_form.html.slim +4 -0
  986. data/frontend/app/views/gaku/courses/semester_courses/_form_fields.html.slim +3 -0
  987. data/frontend/app/views/gaku/courses/semester_courses/_modal.html.slim +4 -0
  988. data/{core → frontend}/app/views/gaku/courses/semester_courses/_semester_course.html.slim +0 -0
  989. data/frontend/app/views/gaku/courses/semester_courses/_semester_courses.html.slim +16 -0
  990. data/frontend/app/views/gaku/courses/semester_courses/create.js.erb +6 -0
  991. data/frontend/app/views/gaku/courses/semester_courses/destroy.js.erb +3 -0
  992. data/frontend/app/views/gaku/courses/semester_courses/edit.js.erb +3 -0
  993. data/frontend/app/views/gaku/courses/semester_courses/new.js.erb +3 -0
  994. data/frontend/app/views/gaku/courses/semester_courses/update.js.erb +3 -0
  995. data/frontend/app/views/gaku/courses/student_chooser.js.erb +7 -0
  996. data/{core → frontend}/app/views/gaku/devise/confirmations/new.html.slim +0 -0
  997. data/{core → frontend}/app/views/gaku/devise/mailer/confirmation_instructions.html.slim +0 -0
  998. data/{core → frontend}/app/views/gaku/devise/mailer/reset_password_instructions.html.slim +0 -0
  999. data/{core → frontend}/app/views/gaku/devise/mailer/unlock_instructions.html.slim +0 -0
  1000. data/{core → frontend}/app/views/gaku/devise/passwords/edit.html.slim +0 -0
  1001. data/{core → frontend}/app/views/gaku/devise/passwords/new.html.slim +0 -0
  1002. data/{core → frontend}/app/views/gaku/devise/registrations/edit.html.slim +0 -0
  1003. data/frontend/app/views/gaku/devise/registrations/new.html.slim +27 -0
  1004. data/frontend/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +26 -0
  1005. data/frontend/app/views/gaku/devise/sessions/new.html.slim +24 -0
  1006. data/{core → frontend}/app/views/gaku/devise/shared/_links.html.erb +0 -0
  1007. data/{core → frontend}/app/views/gaku/devise/unlocks/new.html.slim +0 -0
  1008. data/{core → frontend}/app/views/gaku/exam_divisions/_form.html.erb +0 -0
  1009. data/{core → frontend}/app/views/gaku/exam_divisions/edit.html.erb +0 -0
  1010. data/{core → frontend}/app/views/gaku/exam_divisions/index.html.erb +0 -0
  1011. data/{core → frontend}/app/views/gaku/exam_divisions/new.html.erb +0 -0
  1012. data/{core → frontend}/app/views/gaku/exam_divisions/show.html.erb +0 -0
  1013. data/frontend/app/views/gaku/exams/_exam.html.slim +2 -0
  1014. data/frontend/app/views/gaku/exams/_form.html.slim +16 -0
  1015. data/frontend/app/views/gaku/exams/_form_fields.html.slim +17 -0
  1016. data/frontend/app/views/gaku/exams/_table_fields.html.slim +8 -0
  1017. data/frontend/app/views/gaku/exams/_tabs.html.slim +15 -0
  1018. data/frontend/app/views/gaku/exams/_weight_check_widget.html.slim +20 -0
  1019. data/frontend/app/views/gaku/exams/create.js.erb +6 -0
  1020. data/frontend/app/views/gaku/exams/destroy.js.erb +1 -0
  1021. data/frontend/app/views/gaku/exams/edit.html.slim +16 -0
  1022. data/frontend/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +4 -0
  1023. data/frontend/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +2 -0
  1024. data/frontend/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +3 -0
  1025. data/frontend/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +27 -0
  1026. data/frontend/app/views/gaku/exams/exam_portions/_form.html.slim +3 -0
  1027. data/frontend/app/views/gaku/exams/exam_portions/_table_fields.slim +8 -0
  1028. data/frontend/app/views/gaku/exams/exam_portions/_tabs.html.slim +11 -0
  1029. data/{core → frontend}/app/views/gaku/exams/exam_portions/attachments/_attachment.html.slim +0 -0
  1030. data/frontend/app/views/gaku/exams/exam_portions/attachments/_attachments.html.slim +20 -0
  1031. data/frontend/app/views/gaku/exams/exam_portions/attachments/_form.html.slim +3 -0
  1032. data/{core → frontend}/app/views/gaku/exams/exam_portions/attachments/_form_fields.html.slim +0 -0
  1033. data/frontend/app/views/gaku/exams/exam_portions/attachments/_modal.html.slim +4 -0
  1034. data/{core → frontend}/app/views/gaku/exams/exam_portions/attachments/create.js.erb +0 -0
  1035. data/frontend/app/views/gaku/exams/exam_portions/attachments/new.js.erb +3 -0
  1036. data/frontend/app/views/gaku/exams/exam_portions/create.js.erb +49 -0
  1037. data/frontend/app/views/gaku/exams/exam_portions/destroy.js.erb +8 -0
  1038. data/frontend/app/views/gaku/exams/exam_portions/edit.html.slim +16 -0
  1039. data/frontend/app/views/gaku/exams/exam_portions/new.js.erb +3 -0
  1040. data/frontend/app/views/gaku/exams/exam_portions/show.html.slim +30 -0
  1041. data/{core → frontend}/app/views/gaku/exams/export.xls.rb +0 -0
  1042. data/frontend/app/views/gaku/exams/index.html.slim +24 -0
  1043. data/frontend/app/views/gaku/exams/new.js.erb +3 -0
  1044. data/frontend/app/views/gaku/exams/show.html.slim +28 -0
  1045. data/frontend/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +7 -0
  1046. data/frontend/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +4 -0
  1047. data/{core → frontend}/app/views/gaku/extracurricular_activities/_fields.html.slim +0 -0
  1048. data/{core → frontend}/app/views/gaku/extracurricular_activities/_form.html.slim +0 -0
  1049. data/frontend/app/views/gaku/extracurricular_activities/_form_fields.html.slim +3 -0
  1050. data/frontend/app/views/gaku/extracurricular_activities/_student_chooser_form.html.slim +4 -0
  1051. data/frontend/app/views/gaku/extracurricular_activities/_tabs.html.slim +15 -0
  1052. data/frontend/app/views/gaku/extracurricular_activities/create.js.erb +6 -0
  1053. data/frontend/app/views/gaku/extracurricular_activities/destroy.js.erb +2 -0
  1054. data/frontend/app/views/gaku/extracurricular_activities/edit.html.slim +16 -0
  1055. data/frontend/app/views/gaku/extracurricular_activities/index.html.slim +15 -0
  1056. data/frontend/app/views/gaku/extracurricular_activities/new.js.erb +3 -0
  1057. data/frontend/app/views/gaku/extracurricular_activities/student_chooser.js.erb +9 -0
  1058. data/{core → frontend}/app/views/gaku/extracurricular_activities/students/_student.html.slim +0 -0
  1059. data/frontend/app/views/gaku/extracurricular_activities/students/_students.html.slim +16 -0
  1060. data/frontend/app/views/gaku/extracurricular_activities/students/destroy.js.erb +3 -0
  1061. data/frontend/app/views/gaku/extracurricular_activities/students/enroll_students.js.erb +11 -0
  1062. data/frontend/app/views/gaku/home/_user_info.html.slim +7 -0
  1063. data/frontend/app/views/gaku/home/_user_menu.html.slim +4 -0
  1064. data/frontend/app/views/gaku/home/index.html.slim +10 -0
  1065. data/frontend/app/views/gaku/layouts/edit.html.slim +10 -0
  1066. data/frontend/app/views/gaku/layouts/gaku.html.slim +22 -0
  1067. data/frontend/app/views/gaku/layouts/home.html.slim +1 -0
  1068. data/frontend/app/views/gaku/layouts/index.html.slim +12 -0
  1069. data/frontend/app/views/gaku/layouts/show.html.slim +10 -0
  1070. data/frontend/app/views/gaku/notes/_buttons.html.slim +8 -0
  1071. data/{core → frontend}/app/views/gaku/notes/_fields.html.slim +0 -0
  1072. data/frontend/app/views/gaku/notes/_form.html.slim +6 -0
  1073. data/frontend/app/views/gaku/notes/_form_fields.html.slim +6 -0
  1074. data/frontend/app/views/gaku/notes/_modal.html.slim +4 -0
  1075. data/{core → frontend}/app/views/gaku/notes/_note.html.slim +0 -0
  1076. data/frontend/app/views/gaku/notes/_notes.html.slim +21 -0
  1077. data/frontend/app/views/gaku/notes/_show_modal.html.slim +4 -0
  1078. data/{core → frontend}/app/views/gaku/notes/create.js.erb +0 -0
  1079. data/{core → frontend}/app/views/gaku/notes/destroy.js.erb +0 -0
  1080. data/{core → frontend}/app/views/gaku/notes/edit.js.erb +0 -0
  1081. data/{core → frontend}/app/views/gaku/notes/new.js.erb +0 -0
  1082. data/frontend/app/views/gaku/notes/show.js.erb +2 -0
  1083. data/{core → frontend}/app/views/gaku/notes/update.js.erb +0 -0
  1084. data/frontend/app/views/gaku/shared/_delete_link.html.slim +1 -0
  1085. data/frontend/app/views/gaku/shared/_delete_modal.html.slim +11 -0
  1086. data/frontend/app/views/gaku/shared/_errors.html.slim +6 -0
  1087. data/{core → frontend}/app/views/gaku/shared/_external_school_record.html.slim +0 -0
  1088. data/frontend/app/views/gaku/shared/_flash.html.slim +4 -0
  1089. data/frontend/app/views/gaku/shared/_language_bar.html.slim +8 -0
  1090. data/frontend/app/views/gaku/shared/_login_widget.html.slim +15 -0
  1091. data/frontend/app/views/gaku/shared/_manage_buttons.html.slim +4 -0
  1092. data/frontend/app/views/gaku/shared/_menubar.html.slim +7 -0
  1093. data/frontend/app/views/gaku/shared/_modal_config.html.slim +37 -0
  1094. data/frontend/app/views/gaku/shared/_multi_errors.html.slim +6 -0
  1095. data/frontend/app/views/gaku/shared/_picture.html.slim +8 -0
  1096. data/frontend/app/views/gaku/shared/_upload_picture.html.slim +7 -0
  1097. data/frontend/app/views/gaku/shared/error.js.erb +2 -0
  1098. data/frontend/app/views/gaku/shared/fields/_address_and_contact_show_table.html.slim +6 -0
  1099. data/frontend/app/views/gaku/shared/fields/_attachment_fields.html.slim +10 -0
  1100. data/{core → frontend}/app/views/gaku/shared/fields/_course_fields.html.slim +0 -0
  1101. data/{core → frontend}/app/views/gaku/shared/fields/_course_show_fields.html.slim +0 -0
  1102. data/frontend/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +7 -0
  1103. data/{core → frontend}/app/views/gaku/shared/fields/_person_edit_table.html.slim +0 -0
  1104. data/frontend/app/views/gaku/shared/fields/_person_show_table.html.slim +15 -0
  1105. data/{core → frontend}/app/views/gaku/shared/fields/_semester_fields.html.slim +0 -0
  1106. data/frontend/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +14 -0
  1107. data/frontend/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +17 -0
  1108. data/frontend/app/views/gaku/shared/menu/_frontend.html.erb +22 -0
  1109. data/frontend/app/views/gaku/shared/multi_error.js.erb +2 -0
  1110. data/frontend/app/views/gaku/shared/notice.js.erb +2 -0
  1111. data/{core → frontend}/app/views/gaku/shared/overrides/students/_import_link.html.slim +0 -0
  1112. data/{core → frontend}/app/views/gaku/shared/overrides/syllabuses/_import_link.html.slim +0 -0
  1113. data/frontend/app/views/gaku/shared/student/_show.html.slim +12 -0
  1114. data/frontend/app/views/gaku/shared/student_chooser/_chooser.html.slim +7 -0
  1115. data/frontend/app/views/gaku/shared/student_chooser/_chooser_widget.html.slim +10 -0
  1116. data/frontend/app/views/gaku/shared/student_chooser/_modal.html.slim +3 -0
  1117. data/frontend/app/views/gaku/states/_no_states_select.html.slim +1 -0
  1118. data/frontend/app/views/gaku/states/_states_select.html.slim +1 -0
  1119. data/frontend/app/views/gaku/states/index.js.erb +5 -0
  1120. data/frontend/app/views/gaku/students/_academic.html.slim +18 -0
  1121. data/frontend/app/views/gaku/students/_chooser_widget.html.slim +14 -0
  1122. data/frontend/app/views/gaku/students/_form.html.slim +3 -0
  1123. data/frontend/app/views/gaku/students/_form_fields.html.slim +25 -0
  1124. data/frontend/app/views/gaku/students/_personal.html.slim +3 -0
  1125. data/frontend/app/views/gaku/students/_student.html.slim +5 -0
  1126. data/frontend/app/views/gaku/students/_student_chooser_form.html.slim +16 -0
  1127. data/frontend/app/views/gaku/students/_student_unit.html.slim +5 -0
  1128. data/frontend/app/views/gaku/students/_students.html.slim +62 -0
  1129. data/frontend/app/views/gaku/students/_table_fields.html.slim +63 -0
  1130. data/frontend/app/views/gaku/students/_tabs.html.slim +48 -0
  1131. data/frontend/app/views/gaku/students/_tabs_academic.html.slim +40 -0
  1132. data/frontend/app/views/gaku/students/_tabs_personal.html.slim +27 -0
  1133. data/frontend/app/views/gaku/students/advanced_search.js.erb +66 -0
  1134. data/frontend/app/views/gaku/students/badges/_badge.html.slim +2 -0
  1135. data/frontend/app/views/gaku/students/badges/_badge_type.html.slim +5 -0
  1136. data/frontend/app/views/gaku/students/badges/_badges.html.slim +2 -0
  1137. data/frontend/app/views/gaku/students/badges/_badges_tab.html.slim +8 -0
  1138. data/frontend/app/views/gaku/students/badges/_edit.html.slim +8 -0
  1139. data/frontend/app/views/gaku/students/badges/_fields.html.slim +8 -0
  1140. data/frontend/app/views/gaku/students/badges/_form.html.slim +3 -0
  1141. data/frontend/app/views/gaku/students/badges/_form_fields.html.slim +1 -0
  1142. data/frontend/app/views/gaku/students/badges/_index.html.slim +20 -0
  1143. data/frontend/app/views/gaku/students/badges/_index_modal.html.slim +4 -0
  1144. data/frontend/app/views/gaku/students/badges/create.js.erb +14 -0
  1145. data/frontend/app/views/gaku/students/badges/destroy.js.erb +6 -0
  1146. data/frontend/app/views/gaku/students/badges/edit.js.erb +2 -0
  1147. data/frontend/app/views/gaku/students/badges/index.js.erb +3 -0
  1148. data/frontend/app/views/gaku/students/badges/new.js.erb +3 -0
  1149. data/frontend/app/views/gaku/students/badges/update.js.erb +5 -0
  1150. data/frontend/app/views/gaku/students/chosen.js.erb +12 -0
  1151. data/frontend/app/views/gaku/students/class_group_enrollments/_new_modal.html.slim +28 -0
  1152. data/frontend/app/views/gaku/students/class_group_enrollments/create.js.erb +11 -0
  1153. data/frontend/app/views/gaku/students/class_group_enrollments/new.js.erb +2 -0
  1154. data/frontend/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +4 -0
  1155. data/frontend/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +17 -0
  1156. data/frontend/app/views/gaku/students/course_enrollments/_errors_modal.html.slim +11 -0
  1157. data/frontend/app/views/gaku/students/course_enrollments/_form.html.slim +4 -0
  1158. data/frontend/app/views/gaku/students/course_enrollments/create.js.erb +9 -0
  1159. data/frontend/app/views/gaku/students/course_enrollments/destroy.js.erb +3 -0
  1160. data/frontend/app/views/gaku/students/course_enrollments/error.js.erb +2 -0
  1161. data/frontend/app/views/gaku/students/course_enrollments/new.js.erb +3 -0
  1162. data/frontend/app/views/gaku/students/create.js.erb +8 -0
  1163. data/frontend/app/views/gaku/students/destroy.js.erb +2 -0
  1164. data/frontend/app/views/gaku/students/edit.html.slim +37 -0
  1165. data/frontend/app/views/gaku/students/external_school_records/_external_school_record.html.slim +2 -0
  1166. data/frontend/app/views/gaku/students/external_school_records/_external_school_records.html.slim +24 -0
  1167. data/frontend/app/views/gaku/students/external_school_records/_fields.html.slim +11 -0
  1168. data/frontend/app/views/gaku/students/external_school_records/_form.html.slim +3 -0
  1169. data/frontend/app/views/gaku/students/external_school_records/_form_fields.html.slim +17 -0
  1170. data/frontend/app/views/gaku/students/external_school_records/_modal.html.slim +4 -0
  1171. data/frontend/app/views/gaku/students/external_school_records/create.js.erb +8 -0
  1172. data/frontend/app/views/gaku/students/external_school_records/destroy.js.erb +3 -0
  1173. data/frontend/app/views/gaku/students/external_school_records/edit.js.erb +4 -0
  1174. data/frontend/app/views/gaku/students/external_school_records/new.js.erb +4 -0
  1175. data/frontend/app/views/gaku/students/external_school_records/update.js.erb +3 -0
  1176. data/frontend/app/views/gaku/students/guardians/_delete_modal.html.slim +12 -0
  1177. data/frontend/app/views/gaku/students/guardians/_form.html.slim +3 -0
  1178. data/frontend/app/views/gaku/students/guardians/_form_fields.html.slim +4 -0
  1179. data/frontend/app/views/gaku/students/guardians/_guardian.html.slim +12 -0
  1180. data/frontend/app/views/gaku/students/guardians/_guardians.html.slim +24 -0
  1181. data/frontend/app/views/gaku/students/guardians/_picture.html.slim +8 -0
  1182. data/frontend/app/views/gaku/students/guardians/_tabs.html.slim +14 -0
  1183. data/frontend/app/views/gaku/students/guardians/_upload_picture.html.slim +7 -0
  1184. data/frontend/app/views/gaku/students/guardians/create.js.erb +7 -0
  1185. data/frontend/app/views/gaku/students/guardians/destroy.js.erb +1 -0
  1186. data/frontend/app/views/gaku/students/guardians/edit.html.slim +21 -0
  1187. data/frontend/app/views/gaku/students/guardians/new.js.erb +3 -0
  1188. data/frontend/app/views/gaku/students/guardians/recovery.js.erb +1 -0
  1189. data/frontend/app/views/gaku/students/guardians/show.html.slim +17 -0
  1190. data/frontend/app/views/gaku/students/importer/index.html.slim +26 -0
  1191. data/frontend/app/views/gaku/students/index.html.slim +22 -0
  1192. data/frontend/app/views/gaku/students/index.js.erb +2 -0
  1193. data/frontend/app/views/gaku/students/new.html.slim +3 -0
  1194. data/frontend/app/views/gaku/students/new.js.erb +3 -0
  1195. data/frontend/app/views/gaku/students/search/_academic.html.slim +22 -0
  1196. data/frontend/app/views/gaku/students/search/_address.html.slim +34 -0
  1197. data/frontend/app/views/gaku/students/search/_advanced_form.html.slim +36 -0
  1198. data/frontend/app/views/gaku/students/search/_extended.slim +108 -0
  1199. data/frontend/app/views/gaku/students/search/_form.html.slim +8 -0
  1200. data/frontend/app/views/gaku/students/search/_student.html.slim +36 -0
  1201. data/frontend/app/views/gaku/students/show.html.slim +24 -0
  1202. data/frontend/app/views/gaku/students/simple_grades/_edit.html.slim +8 -0
  1203. data/frontend/app/views/gaku/students/simple_grades/_fields.html.slim +8 -0
  1204. data/frontend/app/views/gaku/students/simple_grades/_form.html.slim +3 -0
  1205. data/frontend/app/views/gaku/students/simple_grades/_form_fields.html.slim +3 -0
  1206. data/frontend/app/views/gaku/students/simple_grades/_index.html.slim +21 -0
  1207. data/frontend/app/views/gaku/students/simple_grades/_index_modal.html.slim +4 -0
  1208. data/frontend/app/views/gaku/students/simple_grades/_simple_grade.html.slim +2 -0
  1209. data/frontend/app/views/gaku/students/simple_grades/_simple_grades.html.slim +2 -0
  1210. data/frontend/app/views/gaku/students/simple_grades/create.js.erb +10 -0
  1211. data/frontend/app/views/gaku/students/simple_grades/destroy.js.erb +4 -0
  1212. data/frontend/app/views/gaku/students/simple_grades/edit.js.erb +4 -0
  1213. data/frontend/app/views/gaku/students/simple_grades/index.js.erb +5 -0
  1214. data/frontend/app/views/gaku/students/simple_grades/new.js.erb +6 -0
  1215. data/frontend/app/views/gaku/students/simple_grades/update.js.erb +4 -0
  1216. data/frontend/app/views/gaku/students/student_specialties/_edit.html.slim +8 -0
  1217. data/frontend/app/views/gaku/students/student_specialties/_fields.html.slim +5 -0
  1218. data/frontend/app/views/gaku/students/student_specialties/_form.html.slim +3 -0
  1219. data/frontend/app/views/gaku/students/student_specialties/_form_fields.html.slim +2 -0
  1220. data/frontend/app/views/gaku/students/student_specialties/_index.html.slim +18 -0
  1221. data/frontend/app/views/gaku/students/student_specialties/_index_modal.html.slim +4 -0
  1222. data/frontend/app/views/gaku/students/student_specialties/_student_specialties.html.slim +2 -0
  1223. data/frontend/app/views/gaku/students/student_specialties/_student_specialty.html.slim +2 -0
  1224. data/frontend/app/views/gaku/students/student_specialties/create.js.erb +10 -0
  1225. data/frontend/app/views/gaku/students/student_specialties/destroy.js.erb +4 -0
  1226. data/frontend/app/views/gaku/students/student_specialties/edit.js.erb +2 -0
  1227. data/frontend/app/views/gaku/students/student_specialties/index.js.erb +5 -0
  1228. data/frontend/app/views/gaku/students/student_specialties/new.js.erb +3 -0
  1229. data/frontend/app/views/gaku/students/student_specialties/update.js.erb +4 -0
  1230. data/frontend/app/views/gaku/syllabuses/_all_exams.html.slim +14 -0
  1231. data/frontend/app/views/gaku/syllabuses/_fields.html.slim +7 -0
  1232. data/{core → frontend}/app/views/gaku/syllabuses/_form.html.slim +0 -0
  1233. data/frontend/app/views/gaku/syllabuses/_form_fields.html.slim +12 -0
  1234. data/frontend/app/views/gaku/syllabuses/_syllabus.html.slim +2 -0
  1235. data/frontend/app/views/gaku/syllabuses/_syllabuses.html.slim +12 -0
  1236. data/frontend/app/views/gaku/syllabuses/_tabs.html.slim +16 -0
  1237. data/frontend/app/views/gaku/syllabuses/create.js.erb +7 -0
  1238. data/frontend/app/views/gaku/syllabuses/destroy.js.erb +1 -0
  1239. data/frontend/app/views/gaku/syllabuses/edit.html.slim +16 -0
  1240. data/frontend/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +12 -0
  1241. data/frontend/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +5 -0
  1242. data/frontend/app/views/gaku/syllabuses/exams/_exam.html.slim +3 -0
  1243. data/frontend/app/views/gaku/syllabuses/exams/_exams.html.slim +13 -0
  1244. data/frontend/app/views/gaku/syllabuses/exams/_fields.html.slim +10 -0
  1245. data/frontend/app/views/gaku/syllabuses/exams/_form.html.slim +17 -0
  1246. data/frontend/app/views/gaku/syllabuses/exams/_form_fields.html.slim +10 -0
  1247. data/frontend/app/views/gaku/syllabuses/exams/_modal.html.slim +4 -0
  1248. data/frontend/app/views/gaku/syllabuses/exams/_select_form.html.slim +6 -0
  1249. data/frontend/app/views/gaku/syllabuses/exams/create.js.erb +9 -0
  1250. data/frontend/app/views/gaku/syllabuses/exams/destroy.js.erb +3 -0
  1251. data/frontend/app/views/gaku/syllabuses/exams/edit.js.erb +3 -0
  1252. data/frontend/app/views/gaku/syllabuses/exams/new.js.erb +3 -0
  1253. data/frontend/app/views/gaku/syllabuses/exams/update.js.erb +4 -0
  1254. data/frontend/app/views/gaku/syllabuses/importer/index.html.slim +14 -0
  1255. data/frontend/app/views/gaku/syllabuses/index.html.slim +14 -0
  1256. data/{core → frontend}/app/views/gaku/syllabuses/new.js.erb +0 -0
  1257. data/frontend/app/views/gaku/teachers/_fields.html.slim +5 -0
  1258. data/frontend/app/views/gaku/teachers/_form.html.slim +3 -0
  1259. data/{core → frontend}/app/views/gaku/teachers/_form_fields.html.slim +0 -0
  1260. data/frontend/app/views/gaku/teachers/_tabs.html.slim +20 -0
  1261. data/frontend/app/views/gaku/teachers/_teacher.html.slim +5 -0
  1262. data/frontend/app/views/gaku/teachers/_teachers.html.slim +11 -0
  1263. data/frontend/app/views/gaku/teachers/create.js.erb +8 -0
  1264. data/frontend/app/views/gaku/teachers/destroy.js.erb +1 -0
  1265. data/frontend/app/views/gaku/teachers/edit.html.slim +19 -0
  1266. data/frontend/app/views/gaku/teachers/index.html.slim +16 -0
  1267. data/frontend/app/views/gaku/teachers/new.js.erb +3 -0
  1268. data/frontend/app/views/gaku/teachers/show.html.slim +13 -0
  1269. data/{core → frontend}/app/views/kaminari/_first_page.html.erb +0 -0
  1270. data/{core → frontend}/app/views/kaminari/_gap.html.erb +0 -0
  1271. data/{core → frontend}/app/views/kaminari/_last_page.html.erb +0 -0
  1272. data/{core → frontend}/app/views/kaminari/_next_page.html.erb +0 -0
  1273. data/{core → frontend}/app/views/kaminari/_page.html.erb +0 -0
  1274. data/frontend/app/views/kaminari/_paginator.html.erb +27 -0
  1275. data/{core → frontend}/app/views/kaminari/_prev_page.html.erb +0 -0
  1276. data/frontend/config/initializers/client_side_validations.rb +9 -0
  1277. data/frontend/config/initializers/wrap_parameters.rb +14 -0
  1278. data/frontend/config/routes.rb +137 -0
  1279. data/frontend/coverage/.last_run.json +5 -0
  1280. data/frontend/coverage/.resultset.json +179 -0
  1281. data/frontend/gaku_frontend.gemspec +50 -0
  1282. data/frontend/lib/gaku/app_responder.rb +6 -0
  1283. data/frontend/lib/gaku/class_name_detector.rb +23 -0
  1284. data/frontend/lib/gaku/frontend.rb +33 -0
  1285. data/frontend/lib/gaku/frontend/engine.rb +30 -0
  1286. data/frontend/lib/gaku_frontend.rb +1 -0
  1287. data/frontend/lib/tasks/admin_user.rake +104 -0
  1288. data/frontend/lib/tasks/core.rake +65 -0
  1289. data/frontend/lib/tasks/reset.rake +37 -0
  1290. data/frontend/spec/controllers/gaku/addresses_controller_spec.rb +136 -0
  1291. data/frontend/spec/controllers/gaku/class_group_enrollments_controller_spec.rb +62 -0
  1292. data/frontend/spec/controllers/gaku/class_groups/class_groups_controller_spec.rb +151 -0
  1293. data/frontend/spec/controllers/gaku/class_groups/courses_controller_spec.rb +90 -0
  1294. data/frontend/spec/controllers/gaku/class_groups/semesters_controller_spec.rb +90 -0
  1295. data/frontend/spec/controllers/gaku/contacts_controller_spec.rb +135 -0
  1296. data/frontend/spec/controllers/gaku/course_groups/course_group_enrollments_controller.rb +90 -0
  1297. data/frontend/spec/controllers/gaku/course_groups/course_groups_controller_spec.rb +143 -0
  1298. data/frontend/spec/controllers/gaku/courses/courses_controller_spec.rb +143 -0
  1299. data/frontend/spec/controllers/gaku/exams/exam_portions_controller_spec.rb +137 -0
  1300. data/frontend/spec/controllers/gaku/exams/exams_controller_spec.rb +154 -0
  1301. data/frontend/spec/controllers/gaku/extracurricular_activities_controller_spec.rb +143 -0
  1302. data/frontend/spec/controllers/gaku/notes_controller_spec.rb +143 -0
  1303. data/frontend/spec/controllers/gaku/students/badges_controller_spec.rb +126 -0
  1304. data/frontend/spec/controllers/gaku/students/course_enrollments_controller_spec.rb +121 -0
  1305. data/frontend/spec/controllers/gaku/students/external_school_records_controller_spec.rb +138 -0
  1306. data/frontend/spec/controllers/gaku/students/guardians_controller_spec.rb +115 -0
  1307. data/frontend/spec/controllers/gaku/students/simple_grades_controller_spec.rb +147 -0
  1308. data/frontend/spec/controllers/gaku/students/student_specialties_controller_spec.rb +126 -0
  1309. data/frontend/spec/controllers/gaku/students/students_controller_spec.rb +338 -0
  1310. data/frontend/spec/controllers/gaku/syllabuses_controller_spec.rb +151 -0
  1311. data/frontend/spec/controllers/gaku/teachers_controller_spec.rb +152 -0
  1312. data/{core → frontend}/spec/coverage/.last_run.json +0 -0
  1313. data/{core → frontend}/spec/coverage/.resultset.json +0 -0
  1314. data/{core/spec/requests → frontend/spec/features}/change_language_spec.rb +0 -0
  1315. data/frontend/spec/features/class_groups/class_groups_spec.rb +96 -0
  1316. data/frontend/spec/features/class_groups/courses_spec.rb +39 -0
  1317. data/frontend/spec/features/class_groups/notes_spec.rb +32 -0
  1318. data/frontend/spec/features/class_groups/semester_class_groups_spec.rb +96 -0
  1319. data/frontend/spec/features/class_groups/students_spec.rb +90 -0
  1320. data/frontend/spec/features/course_groups/course_groups_spec.rb +76 -0
  1321. data/frontend/spec/features/course_groups/courses_spec.rb +37 -0
  1322. data/frontend/spec/features/courses/courses_spec.rb +108 -0
  1323. data/frontend/spec/features/courses/enrollments/class_groups_spec.rb +81 -0
  1324. data/frontend/spec/features/courses/enrollments/students_spec.rb +75 -0
  1325. data/frontend/spec/features/courses/exams_spec.rb +36 -0
  1326. data/frontend/spec/features/courses/notes_spec.rb +32 -0
  1327. data/frontend/spec/features/courses/semester_courses_spec.rb +108 -0
  1328. data/frontend/spec/features/exams/exam_portions/attachments_spec.rb +101 -0
  1329. data/frontend/spec/features/exams/exam_portions/exam_portions_spec.rb +81 -0
  1330. data/frontend/spec/features/exams/exams_spec.rb +101 -0
  1331. data/frontend/spec/features/exams/notes_spec.rb +32 -0
  1332. data/frontend/spec/features/extracurricular_activities/extracurricular_activities_spec.rb +67 -0
  1333. data/frontend/spec/features/extracurricular_activities/students_spec.rb +164 -0
  1334. data/frontend/spec/features/sign_in_spec.rb +78 -0
  1335. data/{core/spec/requests → frontend/spec/features}/sign_out_spec.rb +0 -0
  1336. data/frontend/spec/features/sign_up_spec.rb +71 -0
  1337. data/frontend/spec/features/students/addresses_spec.rb +60 -0
  1338. data/frontend/spec/features/students/badges_spec.rb +95 -0
  1339. data/frontend/spec/features/students/class_group_enrollments_spec.rb +47 -0
  1340. data/{core/spec/requests → frontend/spec/features}/students/commute_methods_spec.rb +0 -0
  1341. data/frontend/spec/features/students/contacts_spec.rb +60 -0
  1342. data/frontend/spec/features/students/course_enrollments_spec.rb +39 -0
  1343. data/{core/spec/requests → frontend/spec/features}/students/enrollment_status_spec.rb +0 -0
  1344. data/frontend/spec/features/students/external_school_records_spec.rb +71 -0
  1345. data/frontend/spec/features/students/guardians/addresses_spec.rb +65 -0
  1346. data/frontend/spec/features/students/guardians/contacts_spec.rb +58 -0
  1347. data/frontend/spec/features/students/guardians/guardians_spec.rb +76 -0
  1348. data/frontend/spec/features/students/guardians/picture_spec.rb +24 -0
  1349. data/frontend/spec/features/students/notes_spec.rb +35 -0
  1350. data/frontend/spec/features/students/picture_spec.rb +23 -0
  1351. data/frontend/spec/features/students/preset_spec.rb +477 -0
  1352. data/{core/spec/requests → frontend/spec/features}/students/scholarship_status_spec.rb +0 -0
  1353. data/frontend/spec/features/students/simple_grades_spec.rb +89 -0
  1354. data/frontend/spec/features/students/student_specialties_spec.rb +82 -0
  1355. data/frontend/spec/features/students/students_spec.rb +228 -0
  1356. data/frontend/spec/features/syllabuses/exams_spec.rb +161 -0
  1357. data/frontend/spec/features/syllabuses/notes_spec.rb +32 -0
  1358. data/frontend/spec/features/syllabuses/syllabuses_spec.rb +72 -0
  1359. data/frontend/spec/features/teachers/addresses_spec.rb +60 -0
  1360. data/{core/spec/requests → frontend/spec/features}/teachers/contacts_spec.rb +0 -0
  1361. data/{core/spec/requests → frontend/spec/features}/teachers/notes_spec.rb +0 -0
  1362. data/frontend/spec/features/teachers/picture_spec.rb +22 -0
  1363. data/frontend/spec/features/teachers/teachers_spec.rb +82 -0
  1364. data/frontend/spec/routing/class_groups/courses_routing_spec.rb +40 -0
  1365. data/frontend/spec/routing/class_groups/students_routing_spec.rb +40 -0
  1366. data/frontend/spec/routing/student_routes_spec.rb +50 -0
  1367. data/frontend/spec/routing/students/badges_routes_spec.rb +62 -0
  1368. data/frontend/spec/routing/students/course_enrollments_routes_spec.rb +36 -0
  1369. data/frontend/spec/routing/students/guardians_routes_spec.rb +55 -0
  1370. data/frontend/spec/routing/students/simple_grades_routes_spec.rb +63 -0
  1371. data/frontend/spec/routing/students/student_specialties_routes_spec.rb +63 -0
  1372. data/frontend/spec/spec_helper.rb +5 -0
  1373. data/frontend/spec/spec_helper_controllers.rb +4 -0
  1374. data/frontend/spec/spec_helper_routing.rb +4 -0
  1375. data/frontend/spec/support/120x120.jpg +0 -0
  1376. data/frontend/spec/support/controllers/matchers/have_attributes_matcher.rb +8 -0
  1377. data/frontend/spec/support/controllers/shared_examples/allow.rb +10 -0
  1378. data/frontend/spec/support/controllers/shared_examples/deny.rb +27 -0
  1379. data/frontend/spec/support/features/shared_examples/addresses_spec.rb +171 -0
  1380. data/frontend/spec/support/features/shared_examples/avatarable_spec.rb +21 -0
  1381. data/frontend/spec/support/features/shared_examples/contacts_spec.rb +123 -0
  1382. data/frontend/spec/support/features/shared_examples/course_enrollable_spec.rb +69 -0
  1383. data/frontend/spec/support/features/shared_examples/notes_spec.rb +82 -0
  1384. data/frontend/spec/support/models/matchers/accept_nested_attributes_for_matcher.rb +39 -0
  1385. data/frontend/spec/support/models/shared_examples/addressable.rb +3 -0
  1386. data/frontend/spec/support/models/shared_examples/avatarable.rb +3 -0
  1387. data/frontend/spec/support/models/shared_examples/contactable.rb +3 -0
  1388. data/frontend/spec/support/models/shared_examples/notable.rb +3 -0
  1389. data/frontend/spec/support/models/shared_examples/person.rb +4 -0
  1390. data/frontend/spec/support/models/shared_examples/thrashable.rb +6 -0
  1391. data/gaku.gemspec +5 -2
  1392. data/lib/gaku.rb +3 -0
  1393. data/sample/.rspec +2 -0
  1394. data/sample/.ruby-gemset +1 -0
  1395. data/sample/.ruby-version +1 -0
  1396. data/sample/db/sample/gaku/01-syllabuses.rb +130 -0
  1397. data/sample/db/sample/gaku/02-courses.rb +13 -0
  1398. data/sample/db/sample/gaku/badge_types.rb +12 -0
  1399. data/sample/db/sample/gaku/changes/student_changes.rb +2 -4
  1400. data/sample/db/sample/gaku/class_groups.rb +10 -0
  1401. data/sample/db/sample/gaku/disposals/address_and_contact_disposals.rb +20 -20
  1402. data/sample/db/sample/gaku/teachers.rb +3 -11
  1403. data/sample/gaku_sample.gemspec +2 -2
  1404. data/sample/lib/shared_sample_data.rb +29 -6
  1405. data/testing/Gemfile +6 -0
  1406. data/testing/gaku_testing.gemspec +22 -0
  1407. data/testing/lib/gaku/testing.rb +10 -0
  1408. data/testing/lib/gaku/testing/engine.rb +10 -0
  1409. data/testing/lib/gaku/testing/env.rb +19 -0
  1410. data/testing/lib/gaku/testing/feature_helpers.rb +159 -0
  1411. data/testing/lib/gaku/testing/flash_helpers.rb +35 -0
  1412. data/testing/lib/gaku/testing/spec_helpers/spec_helper.rb +47 -0
  1413. data/testing/lib/gaku/testing/spec_helpers/spec_helper_base.rb +17 -0
  1414. data/testing/lib/gaku/testing/spec_helpers/spec_helper_controllers.rb +45 -0
  1415. data/testing/lib/gaku/testing/spec_helpers/spec_helper_models.rb +38 -0
  1416. data/testing/lib/gaku/testing/spec_helpers/spec_helper_routing.rb +6 -0
  1417. data/testing/lib/gaku_testing.rb +1 -0
  1418. metadata +1322 -1044
  1419. data/core/app/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
  1420. data/core/app/assets/images/bootstrap/glyphicons-halflings.png +0 -0
  1421. data/core/app/assets/images/dataTables/back_disabled.png +0 -0
  1422. data/core/app/assets/images/dataTables/back_enabled.png +0 -0
  1423. data/core/app/assets/images/dataTables/back_enabled_hover.png +0 -0
  1424. data/core/app/assets/images/dataTables/forward_disabled.png +0 -0
  1425. data/core/app/assets/images/dataTables/forward_enabled.png +0 -0
  1426. data/core/app/assets/images/dataTables/forward_enabled_hover.png +0 -0
  1427. data/core/app/assets/images/dataTables/sort_asc.png +0 -0
  1428. data/core/app/assets/images/dataTables/sort_asc_disabled.png +0 -0
  1429. data/core/app/assets/images/dataTables/sort_both.png +0 -0
  1430. data/core/app/assets/images/dataTables/sort_desc.png +0 -0
  1431. data/core/app/assets/images/dataTables/sort_desc_disabled.png +0 -0
  1432. data/core/app/assets/images/tbs-img/glyphicons-halflings-white.png +0 -0
  1433. data/core/app/assets/images/tbs-img/glyphicons-halflings.png +0 -0
  1434. data/core/app/assets/javascripts/gaku/admin.coffee +0 -30
  1435. data/core/app/assets/javascripts/gaku/backbone/collections/attendance_types.js.coffee +0 -2
  1436. data/core/app/assets/javascripts/gaku/backbone/collections/courses.js.coffee +0 -2
  1437. data/core/app/assets/javascripts/gaku/backbone/collections/exams.js.coffee +0 -2
  1438. data/core/app/assets/javascripts/gaku/backbone/models/attendance.js.coffee +0 -1
  1439. data/core/app/assets/javascripts/gaku/backbone/models/attendance_type.coffee +0 -1
  1440. data/core/app/assets/javascripts/gaku/backbone/models/calculation.js.coffee +0 -43
  1441. data/core/app/assets/javascripts/gaku/backbone/models/completed.js.coffee +0 -1
  1442. data/core/app/assets/javascripts/gaku/backbone/models/course.js.coffee +0 -2
  1443. data/core/app/assets/javascripts/gaku/backbone/models/exam.js.coffee +0 -1
  1444. data/core/app/assets/javascripts/gaku/backbone/models/exam_attendance.js.coffee +0 -4
  1445. data/core/app/assets/javascripts/gaku/backbone/models/exam_portion_score.js.coffee +0 -18
  1446. data/core/app/assets/javascripts/gaku/backbone/routers/.gitkeep +0 -0
  1447. data/core/app/assets/javascripts/gaku/backbone/routers/exams_router.js.coffee +0 -22
  1448. data/core/app/assets/javascripts/gaku/backbone/templates/.gitkeep +0 -0
  1449. data/core/app/assets/javascripts/gaku/backbone/templates/attendance_chooser.jst.eco +0 -19
  1450. data/core/app/assets/javascripts/gaku/backbone/templates/tables/attendance_show.jst.eco +0 -3
  1451. data/core/app/assets/javascripts/gaku/backbone/templates/tables/exam_calculations.jst.eco +0 -39
  1452. data/core/app/assets/javascripts/gaku/backbone/templates/tables/exam_completion.jst.eco +0 -1
  1453. data/core/app/assets/javascripts/gaku/backbone/templates/tables/exam_score.jst.eco +0 -53
  1454. data/core/app/assets/javascripts/gaku/backbone/templates/tables/exam_table.jst.eco +0 -32
  1455. data/core/app/assets/javascripts/gaku/backbone/templates/tables/exam_user.jst.eco +0 -18
  1456. data/core/app/assets/javascripts/gaku/backbone/views/exam_attendance.js.coffee +0 -51
  1457. data/core/app/assets/javascripts/gaku/backbone/views/exam_attendance_show.js.coffee +0 -6
  1458. data/core/app/assets/javascripts/gaku/backbone/views/exam_calculations.js.coffee +0 -15
  1459. data/core/app/assets/javascripts/gaku/backbone/views/exam_completion.js.coffee +0 -7
  1460. data/core/app/assets/javascripts/gaku/backbone/views/exam_portion_score.js.coffee +0 -8
  1461. data/core/app/assets/javascripts/gaku/backbone/views/exam_score_view.js.coffee +0 -7
  1462. data/core/app/assets/javascripts/gaku/backbone/views/exam_table_view.js.coffee +0 -227
  1463. data/core/app/assets/javascripts/gaku/backbone/views/exam_user_view.js.coffee +0 -8
  1464. data/core/app/assets/javascripts/gaku/class_groups.js.coffee +0 -11
  1465. data/core/app/assets/javascripts/gaku/courses.js.coffee +0 -12
  1466. data/core/app/assets/javascripts/gaku/extracurricular_activities.js.coffee +0 -12
  1467. data/core/app/assets/javascripts/gaku/gaku.js.coffee +0 -174
  1468. data/core/app/assets/javascripts/gaku/gaku_core.js +0 -35
  1469. data/core/app/assets/javascripts/gaku/slide.js.erb +0 -14
  1470. data/core/app/assets/javascripts/gaku/students.js.coffee +0 -36
  1471. data/core/app/assets/javascripts/gaku/syllabuses.js.coffee +0 -26
  1472. data/core/app/assets/stylesheets/gaku/gaku.css.scss +0 -172
  1473. data/core/app/assets/stylesheets/gaku/gaku_core.css +0 -10
  1474. data/core/app/assets/stylesheets/gaku/gaku_import.scss +0 -2
  1475. data/core/app/controllers/concerns/polymorphic_resource_concern.rb +0 -47
  1476. data/core/app/controllers/concerns/student_chooser_controller.rb +0 -52
  1477. data/core/app/controllers/gaku/addresses_controller.rb +0 -105
  1478. data/core/app/controllers/gaku/admin/achievements_controller.rb +0 -64
  1479. data/core/app/controllers/gaku/admin/base_controller.rb +0 -40
  1480. data/core/app/controllers/gaku/admin/grading_methods_controller.rb +0 -58
  1481. data/core/app/controllers/gaku/admin/presets_controller.rb +0 -40
  1482. data/core/app/controllers/gaku/admin/school_years/semesters_controller.rb +0 -31
  1483. data/core/app/controllers/gaku/admin/school_years_controller.rb +0 -30
  1484. data/core/app/controllers/gaku/admin/schools/campuses/addresses_controller.rb +0 -53
  1485. data/core/app/controllers/gaku/admin/schools/campuses_controller.rb +0 -46
  1486. data/core/app/controllers/gaku/admin/schools/programs_controller.rb +0 -48
  1487. data/core/app/controllers/gaku/admin/schools_controller.rb +0 -59
  1488. data/core/app/controllers/gaku/admin/specialties_controller.rb +0 -58
  1489. data/core/app/controllers/gaku/admin/states_controller.rb +0 -49
  1490. data/core/app/controllers/gaku/admin/templates_controller.rb +0 -49
  1491. data/core/app/controllers/gaku/admin/users_controller.rb +0 -82
  1492. data/core/app/controllers/gaku/attachments_controller.rb +0 -88
  1493. data/core/app/controllers/gaku/attendances_controller.rb +0 -29
  1494. data/core/app/controllers/gaku/class_groups/courses_controller.rb +0 -44
  1495. data/core/app/controllers/gaku/class_groups/semester_class_groups_controller.rb +0 -38
  1496. data/core/app/controllers/gaku/class_groups/students_controller.rb +0 -43
  1497. data/core/app/controllers/gaku/class_groups_controller.rb +0 -59
  1498. data/core/app/controllers/gaku/contacts_controller.rb +0 -103
  1499. data/core/app/controllers/gaku/course_groups/course_group_enrollments_controller.rb +0 -50
  1500. data/core/app/controllers/gaku/course_groups_controller.rb +0 -81
  1501. data/core/app/controllers/gaku/courses/semester_courses_controller.rb +0 -37
  1502. data/core/app/controllers/gaku/courses_controller.rb +0 -73
  1503. data/core/app/controllers/gaku/devise/passwords_controller.rb +0 -4
  1504. data/core/app/controllers/gaku/devise/registrations_controller.rb +0 -60
  1505. data/core/app/controllers/gaku/devise/sessions_controller.rb +0 -4
  1506. data/core/app/controllers/gaku/exam_portion_scores_controller.rb +0 -18
  1507. data/core/app/controllers/gaku/exams/exam_portions/attachments_controller.rb +0 -53
  1508. data/core/app/controllers/gaku/exams/exam_portions_controller.rb +0 -55
  1509. data/core/app/controllers/gaku/exams_controller.rb +0 -140
  1510. data/core/app/controllers/gaku/extracurricular_activities/students_controller.rb +0 -55
  1511. data/core/app/controllers/gaku/extracurricular_activities_controller.rb +0 -48
  1512. data/core/app/controllers/gaku/extracurricular_activity_enrollments_controller.rb +0 -10
  1513. data/core/app/controllers/gaku/gaku_controller.rb +0 -93
  1514. data/core/app/controllers/gaku/home_controller.rb +0 -10
  1515. data/core/app/controllers/gaku/notes_controller.rb +0 -81
  1516. data/core/app/controllers/gaku/schedules_controller.rb +0 -11
  1517. data/core/app/controllers/gaku/students/class_group_enrollments_controller.rb +0 -59
  1518. data/core/app/controllers/gaku/students/course_enrollments_controller.rb +0 -43
  1519. data/core/app/controllers/gaku/students/guardians_controller.rb +0 -85
  1520. data/core/app/controllers/gaku/students/simple_grades_controller.rb +0 -59
  1521. data/core/app/controllers/gaku/students/student_achievements_controller.rb +0 -49
  1522. data/core/app/controllers/gaku/students/student_specialties_controller.rb +0 -60
  1523. data/core/app/controllers/gaku/students_controller.rb +0 -189
  1524. data/core/app/controllers/gaku/syllabuses/exam_syllabuses_controller.rb +0 -38
  1525. data/core/app/controllers/gaku/syllabuses/exams_controller.rb +0 -53
  1526. data/core/app/controllers/gaku/syllabuses_controller.rb +0 -73
  1527. data/core/app/controllers/gaku/teachers_controller.rb +0 -113
  1528. data/core/app/helpers/gaku/autocomplete_helper.rb +0 -31
  1529. data/core/app/helpers/gaku/count_helper.rb +0 -13
  1530. data/core/app/helpers/gaku/flash_helper.rb +0 -16
  1531. data/core/app/helpers/gaku/gaku_helper.rb +0 -138
  1532. data/core/app/helpers/gaku/icon_helper.rb +0 -26
  1533. data/core/app/helpers/gaku/person_helper.rb +0 -55
  1534. data/core/app/helpers/gaku/presets_helper.rb +0 -41
  1535. data/core/app/helpers/gaku/sort_helper.rb +0 -17
  1536. data/core/app/helpers/gaku/student_chooser_helper.rb +0 -12
  1537. data/core/app/helpers/gaku/students_helper.rb +0 -42
  1538. data/core/app/helpers/gaku/translations_helper.rb +0 -181
  1539. data/core/app/models/gaku/achievement.rb +0 -17
  1540. data/core/app/models/gaku/student_achievement.rb +0 -10
  1541. data/core/app/models/gaku/versioning/student_version.rb +0 -49
  1542. data/core/app/views/gaku/addresses/_address.html.slim +0 -5
  1543. data/core/app/views/gaku/addresses/_addresses.html.slim +0 -27
  1544. data/core/app/views/gaku/addresses/_fields.html.slim +0 -14
  1545. data/core/app/views/gaku/addresses/_form.html.slim +0 -3
  1546. data/core/app/views/gaku/addresses/_form_fields.html.slim +0 -26
  1547. data/core/app/views/gaku/addresses/_modal.html.slim +0 -6
  1548. data/core/app/views/gaku/addresses/_primary_field.html.slim +0 -13
  1549. data/core/app/views/gaku/addresses/create.js.erb +0 -12
  1550. data/core/app/views/gaku/addresses/destroy.js.erb +0 -8
  1551. data/core/app/views/gaku/addresses/soft_delete.js.erb +0 -8
  1552. data/core/app/views/gaku/admin/achievements/_achievement.html.slim +0 -2
  1553. data/core/app/views/gaku/admin/achievements/_fields.html.slim +0 -7
  1554. data/core/app/views/gaku/admin/achievements/_form.html.slim +0 -3
  1555. data/core/app/views/gaku/admin/achievements/_form_fields.html.slim +0 -4
  1556. data/core/app/views/gaku/admin/achievements/_modal.html.slim +0 -6
  1557. data/core/app/views/gaku/admin/achievements/destroy.js.erb +0 -2
  1558. data/core/app/views/gaku/admin/achievements/edit.js.erb +0 -3
  1559. data/core/app/views/gaku/admin/achievements/index.html.slim +0 -22
  1560. data/core/app/views/gaku/admin/achievements/new.js.erb +0 -3
  1561. data/core/app/views/gaku/admin/attendance_types/_form.html.slim +0 -3
  1562. data/core/app/views/gaku/admin/attendance_types/_modal.html.slim +0 -6
  1563. data/core/app/views/gaku/admin/attendance_types/create.js.erb +0 -7
  1564. data/core/app/views/gaku/admin/attendance_types/destroy.js.erb +0 -2
  1565. data/core/app/views/gaku/admin/attendance_types/index.html.slim +0 -24
  1566. data/core/app/views/gaku/admin/attendance_types/new.js.erb +0 -4
  1567. data/core/app/views/gaku/admin/changes/student_address_changes/_change.html.slim +0 -10
  1568. data/core/app/views/gaku/admin/changes/student_address_changes/_deletion.html.slim +0 -9
  1569. data/core/app/views/gaku/admin/changes/student_changes/_change.html.slim +0 -10
  1570. data/core/app/views/gaku/admin/changes/student_changes/_deletion.html.slim +0 -9
  1571. data/core/app/views/gaku/admin/changes/student_contact_changes/_change.html.slim +0 -10
  1572. data/core/app/views/gaku/admin/changes/student_contact_changes/_deletion.html.slim +0 -9
  1573. data/core/app/views/gaku/admin/commute_method_types/_form.html.slim +0 -3
  1574. data/core/app/views/gaku/admin/commute_method_types/_modal.html.slim +0 -6
  1575. data/core/app/views/gaku/admin/commute_method_types/create.js.erb +0 -7
  1576. data/core/app/views/gaku/admin/commute_method_types/destroy.js.erb +0 -2
  1577. data/core/app/views/gaku/admin/commute_method_types/index.html.slim +0 -18
  1578. data/core/app/views/gaku/admin/contact_types/_form.html.slim +0 -3
  1579. data/core/app/views/gaku/admin/contact_types/_modal.html.slim +0 -6
  1580. data/core/app/views/gaku/admin/contact_types/create.js.erb +0 -7
  1581. data/core/app/views/gaku/admin/contact_types/destroy.js.erb +0 -2
  1582. data/core/app/views/gaku/admin/contact_types/index.html.slim +0 -18
  1583. data/core/app/views/gaku/admin/disposals/_address.html.slim +0 -12
  1584. data/core/app/views/gaku/admin/disposals/_contact.html.slim +0 -9
  1585. data/core/app/views/gaku/admin/disposals/_course_groups.html.slim +0 -12
  1586. data/core/app/views/gaku/admin/disposals/_exam.html.slim +0 -10
  1587. data/core/app/views/gaku/admin/disposals/_student.html.slim +0 -10
  1588. data/core/app/views/gaku/admin/disposals/_teacher.html.slim +0 -10
  1589. data/core/app/views/gaku/admin/disposals/attachments.html.slim +0 -30
  1590. data/core/app/views/gaku/admin/enrollment_statuses/_form.html.slim +0 -3
  1591. data/core/app/views/gaku/admin/enrollment_statuses/_modal.html.slim +0 -6
  1592. data/core/app/views/gaku/admin/enrollment_statuses/create.js.erb +0 -7
  1593. data/core/app/views/gaku/admin/enrollment_statuses/destroy.js.erb +0 -2
  1594. data/core/app/views/gaku/admin/enrollment_statuses/index.html.slim +0 -21
  1595. data/core/app/views/gaku/admin/grading_method_sets/_form.html.slim +0 -3
  1596. data/core/app/views/gaku/admin/grading_method_sets/_make_primary_field.html.slim +0 -4
  1597. data/core/app/views/gaku/admin/grading_method_sets/_modal.html.slim +0 -6
  1598. data/core/app/views/gaku/admin/grading_method_sets/create.js.erb +0 -7
  1599. data/core/app/views/gaku/admin/grading_method_sets/destroy.js.erb +0 -7
  1600. data/core/app/views/gaku/admin/grading_method_sets/edit.js.erb +0 -3
  1601. data/core/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_form.html.slim +0 -3
  1602. data/core/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_items.html.slim +0 -23
  1603. data/core/app/views/gaku/admin/grading_method_sets/grading_method_set_items/_modal.html.slim +0 -6
  1604. data/core/app/views/gaku/admin/grading_method_sets/grading_method_set_items/create.js.erb +0 -7
  1605. data/core/app/views/gaku/admin/grading_method_sets/grading_method_set_items/destroy.js.erb +0 -2
  1606. data/core/app/views/gaku/admin/grading_method_sets/index.html.slim +0 -23
  1607. data/core/app/views/gaku/admin/grading_method_sets/new.js.erb +0 -3
  1608. data/core/app/views/gaku/admin/grading_method_sets/show.html.slim +0 -13
  1609. data/core/app/views/gaku/admin/grading_method_sets/update.js.erb +0 -3
  1610. data/core/app/views/gaku/admin/grading_methods/_form.html.slim +0 -3
  1611. data/core/app/views/gaku/admin/grading_methods/_form_fields.html.slim +0 -3
  1612. data/core/app/views/gaku/admin/grading_methods/_modal.html.slim +0 -6
  1613. data/core/app/views/gaku/admin/grading_methods/create.js.erb +0 -7
  1614. data/core/app/views/gaku/admin/grading_methods/destroy.js.erb +0 -2
  1615. data/core/app/views/gaku/admin/grading_methods/index.html.slim +0 -20
  1616. data/core/app/views/gaku/admin/presets/defaults.html.slim +0 -50
  1617. data/core/app/views/gaku/admin/presets/grading.html.slim +0 -12
  1618. data/core/app/views/gaku/admin/presets/locale.html.slim +0 -10
  1619. data/core/app/views/gaku/admin/presets/names.html.slim +0 -20
  1620. data/core/app/views/gaku/admin/presets/output_formats.html.slim +0 -19
  1621. data/core/app/views/gaku/admin/presets/pagination.html.slim +0 -19
  1622. data/core/app/views/gaku/admin/presets/students.html.slim +0 -21
  1623. data/core/app/views/gaku/admin/roles/_form.html.slim +0 -3
  1624. data/core/app/views/gaku/admin/roles/_modal.html.slim +0 -6
  1625. data/core/app/views/gaku/admin/roles/create.js.erb +0 -7
  1626. data/core/app/views/gaku/admin/roles/destroy.js.erb +0 -2
  1627. data/core/app/views/gaku/admin/roles/edit.js.erb +0 -3
  1628. data/core/app/views/gaku/admin/roles/index.html.slim +0 -20
  1629. data/core/app/views/gaku/admin/school_years/_form.html.slim +0 -3
  1630. data/core/app/views/gaku/admin/school_years/_form_fields.html.slim +0 -5
  1631. data/core/app/views/gaku/admin/school_years/_modal.html.slim +0 -7
  1632. data/core/app/views/gaku/admin/school_years/create.js.erb +0 -10
  1633. data/core/app/views/gaku/admin/school_years/destroy.js.erb +0 -2
  1634. data/core/app/views/gaku/admin/school_years/edit.js.erb +0 -5
  1635. data/core/app/views/gaku/admin/school_years/index.html.slim +0 -21
  1636. data/core/app/views/gaku/admin/school_years/new.js.erb +0 -5
  1637. data/core/app/views/gaku/admin/school_years/semesters/_form.html.slim +0 -3
  1638. data/core/app/views/gaku/admin/school_years/semesters/_form_fields.html.slim +0 -5
  1639. data/core/app/views/gaku/admin/school_years/semesters/_modal.html.slim +0 -7
  1640. data/core/app/views/gaku/admin/school_years/semesters/_semesters.html.slim +0 -22
  1641. data/core/app/views/gaku/admin/school_years/semesters/create.js.erb +0 -10
  1642. data/core/app/views/gaku/admin/school_years/semesters/destroy.js.erb +0 -2
  1643. data/core/app/views/gaku/admin/school_years/semesters/edit.js.erb +0 -6
  1644. data/core/app/views/gaku/admin/school_years/semesters/new.js.erb +0 -5
  1645. data/core/app/views/gaku/admin/school_years/semesters/update.js.erb +0 -8
  1646. data/core/app/views/gaku/admin/school_years/show.html.slim +0 -15
  1647. data/core/app/views/gaku/admin/school_years/update.js.erb +0 -8
  1648. data/core/app/views/gaku/admin/schools/_form.html.slim +0 -3
  1649. data/core/app/views/gaku/admin/schools/_form_fields.html.slim +0 -25
  1650. data/core/app/views/gaku/admin/schools/_modal.html.slim +0 -6
  1651. data/core/app/views/gaku/admin/schools/_school.html.slim +0 -2
  1652. data/core/app/views/gaku/admin/schools/_school_unit.html.slim +0 -6
  1653. data/core/app/views/gaku/admin/schools/_show_table.html.slim +0 -35
  1654. data/core/app/views/gaku/admin/schools/campuses/_campus.html.slim +0 -7
  1655. data/core/app/views/gaku/admin/schools/campuses/_campus_unit.html.slim +0 -6
  1656. data/core/app/views/gaku/admin/schools/campuses/_campuses.html.slim +0 -20
  1657. data/core/app/views/gaku/admin/schools/campuses/_form.html.slim +0 -3
  1658. data/core/app/views/gaku/admin/schools/campuses/_modal.html.slim +0 -6
  1659. data/core/app/views/gaku/admin/schools/campuses/_picture.html.slim +0 -10
  1660. data/core/app/views/gaku/admin/schools/campuses/_show_table.html.slim +0 -10
  1661. data/core/app/views/gaku/admin/schools/campuses/_upload_picture.html.slim +0 -7
  1662. data/core/app/views/gaku/admin/schools/campuses/addresses/_address.html.slim +0 -6
  1663. data/core/app/views/gaku/admin/schools/campuses/addresses/_address_row_fields.html.slim +0 -4
  1664. data/core/app/views/gaku/admin/schools/campuses/addresses/_addresses.html.slim +0 -24
  1665. data/core/app/views/gaku/admin/schools/campuses/addresses/_form.html.slim +0 -3
  1666. data/core/app/views/gaku/admin/schools/campuses/addresses/_modal.html.slim +0 -7
  1667. data/core/app/views/gaku/admin/schools/campuses/addresses/create.js.erb +0 -6
  1668. data/core/app/views/gaku/admin/schools/campuses/addresses/edit.js.erb +0 -4
  1669. data/core/app/views/gaku/admin/schools/campuses/addresses/new.js.erb +0 -4
  1670. data/core/app/views/gaku/admin/schools/campuses/addresses/update.js.erb +0 -4
  1671. data/core/app/views/gaku/admin/schools/campuses/create.js.erb +0 -7
  1672. data/core/app/views/gaku/admin/schools/campuses/destroy.js.erb +0 -2
  1673. data/core/app/views/gaku/admin/schools/campuses/edit.js.erb +0 -3
  1674. data/core/app/views/gaku/admin/schools/campuses/new.js.erb +0 -3
  1675. data/core/app/views/gaku/admin/schools/campuses/show.html.slim +0 -21
  1676. data/core/app/views/gaku/admin/schools/campuses/update.js.erb +0 -3
  1677. data/core/app/views/gaku/admin/schools/create.js.erb +0 -7
  1678. data/core/app/views/gaku/admin/schools/destroy.js.erb +0 -2
  1679. data/core/app/views/gaku/admin/schools/edit.js.erb +0 -3
  1680. data/core/app/views/gaku/admin/schools/edit_master.html.slim +0 -17
  1681. data/core/app/views/gaku/admin/schools/index.html.slim +0 -29
  1682. data/core/app/views/gaku/admin/schools/new.js.erb +0 -3
  1683. data/core/app/views/gaku/admin/schools/programs/_fields.html.slim +0 -9
  1684. data/core/app/views/gaku/admin/schools/programs/_form.html.slim +0 -20
  1685. data/core/app/views/gaku/admin/schools/programs/_form_fields.html.slim +0 -6
  1686. data/core/app/views/gaku/admin/schools/programs/_modal.html.slim +0 -5
  1687. data/core/app/views/gaku/admin/schools/programs/_programs.html.slim +0 -25
  1688. data/core/app/views/gaku/admin/schools/programs/create.js.erb +0 -7
  1689. data/core/app/views/gaku/admin/schools/programs/destroy.js.erb +0 -2
  1690. data/core/app/views/gaku/admin/schools/programs/edit.js.erb +0 -3
  1691. data/core/app/views/gaku/admin/schools/programs/new.js.erb +0 -3
  1692. data/core/app/views/gaku/admin/schools/programs/program_levels/_form_fields.html.slim +0 -8
  1693. data/core/app/views/gaku/admin/schools/programs/program_levels/_modal.html.slim +0 -10
  1694. data/core/app/views/gaku/admin/schools/programs/program_specialties/_form_fields.html.slim +0 -7
  1695. data/core/app/views/gaku/admin/schools/programs/program_specialties/_modal.html.slim +0 -10
  1696. data/core/app/views/gaku/admin/schools/programs/program_syllabuses/_form_fields.html.slim +0 -6
  1697. data/core/app/views/gaku/admin/schools/programs/program_syllabuses/_modal.html.slim +0 -10
  1698. data/core/app/views/gaku/admin/schools/programs/show_program_levels.js.erb +0 -3
  1699. data/core/app/views/gaku/admin/schools/programs/show_program_specialties.js.erb +0 -3
  1700. data/core/app/views/gaku/admin/schools/programs/show_program_syllabuses.js.erb +0 -3
  1701. data/core/app/views/gaku/admin/schools/programs/update.js.erb +0 -3
  1702. data/core/app/views/gaku/admin/schools/show.html.slim +0 -26
  1703. data/core/app/views/gaku/admin/schools/update.js.erb +0 -7
  1704. data/core/app/views/gaku/admin/shared/_picture.html.slim +0 -10
  1705. data/core/app/views/gaku/admin/shared/_upload_picture.html.slim +0 -7
  1706. data/core/app/views/gaku/admin/specialties/_fields.html.slim +0 -6
  1707. data/core/app/views/gaku/admin/specialties/_form.html.slim +0 -3
  1708. data/core/app/views/gaku/admin/specialties/_form_fields.html.slim +0 -3
  1709. data/core/app/views/gaku/admin/specialties/_modal.html.slim +0 -6
  1710. data/core/app/views/gaku/admin/specialties/create.js.erb +0 -7
  1711. data/core/app/views/gaku/admin/specialties/destroy.js.erb +0 -2
  1712. data/core/app/views/gaku/admin/specialties/index.html.slim +0 -20
  1713. data/core/app/views/gaku/admin/states/_form.html.slim +0 -4
  1714. data/core/app/views/gaku/admin/states/_form_fields.html.slim +0 -14
  1715. data/core/app/views/gaku/admin/states/_modal.html.slim +0 -6
  1716. data/core/app/views/gaku/admin/states/country_states.js.erb +0 -1
  1717. data/core/app/views/gaku/admin/states/create.js.erb +0 -7
  1718. data/core/app/views/gaku/admin/states/destroy.js.erb +0 -2
  1719. data/core/app/views/gaku/admin/states/edit.js.erb +0 -3
  1720. data/core/app/views/gaku/admin/states/index.html.slim +0 -15
  1721. data/core/app/views/gaku/admin/states/new.js.erb +0 -3
  1722. data/core/app/views/gaku/admin/states/update.js.erb +0 -3
  1723. data/core/app/views/gaku/admin/templates/_fields.html.slim +0 -8
  1724. data/core/app/views/gaku/admin/templates/_form.html.slim +0 -3
  1725. data/core/app/views/gaku/admin/templates/_modal.html.slim +0 -6
  1726. data/core/app/views/gaku/admin/templates/destroy.js.erb +0 -2
  1727. data/core/app/views/gaku/admin/templates/edit.js.erb +0 -4
  1728. data/core/app/views/gaku/admin/templates/index.html.slim +0 -20
  1729. data/core/app/views/gaku/admin/templates/new.js.erb +0 -3
  1730. data/core/app/views/gaku/admin/users/_form.html.slim +0 -3
  1731. data/core/app/views/gaku/admin/users/_modal.html.slim +0 -6
  1732. data/core/app/views/gaku/admin/users/create.js.erb +0 -7
  1733. data/core/app/views/gaku/admin/users/destroy.js.erb +0 -2
  1734. data/core/app/views/gaku/admin/users/index.html.slim +0 -21
  1735. data/core/app/views/gaku/attachments/edit.js.erb +0 -3
  1736. data/core/app/views/gaku/attachments/soft_delete.js.erb +0 -3
  1737. data/core/app/views/gaku/class_groups/_class_group.html.slim +0 -7
  1738. data/core/app/views/gaku/class_groups/_class_group_modal.html.slim +0 -7
  1739. data/core/app/views/gaku/class_groups/_class_group_unit.html.slim +0 -5
  1740. data/core/app/views/gaku/class_groups/_class_groups.html.slim +0 -25
  1741. data/core/app/views/gaku/class_groups/_form.html.slim +0 -8
  1742. data/core/app/views/gaku/class_groups/_form_fields.html.slim +0 -6
  1743. data/core/app/views/gaku/class_groups/_tabs.html.slim +0 -32
  1744. data/core/app/views/gaku/class_groups/courses/_courses.html.slim +0 -19
  1745. data/core/app/views/gaku/class_groups/courses/_form.html.slim +0 -5
  1746. data/core/app/views/gaku/class_groups/courses/create.js.erb +0 -8
  1747. data/core/app/views/gaku/class_groups/courses/destroy.js.erb +0 -3
  1748. data/core/app/views/gaku/class_groups/create.js.erb +0 -6
  1749. data/core/app/views/gaku/class_groups/destroy.js.erb +0 -6
  1750. data/core/app/views/gaku/class_groups/edit.js.erb +0 -3
  1751. data/core/app/views/gaku/class_groups/index.html.slim +0 -14
  1752. data/core/app/views/gaku/class_groups/new.js.erb +0 -3
  1753. data/core/app/views/gaku/class_groups/semester_class_groups/_form.html.slim +0 -4
  1754. data/core/app/views/gaku/class_groups/semester_class_groups/_form_fields.html.slim +0 -3
  1755. data/core/app/views/gaku/class_groups/semester_class_groups/_semester_modal.html.slim +0 -6
  1756. data/core/app/views/gaku/class_groups/semester_class_groups/_semesters.html.slim +0 -19
  1757. data/core/app/views/gaku/class_groups/semester_class_groups/create.js.erb +0 -6
  1758. data/core/app/views/gaku/class_groups/semester_class_groups/destroy.js.erb +0 -3
  1759. data/core/app/views/gaku/class_groups/semester_class_groups/edit.js.erb +0 -3
  1760. data/core/app/views/gaku/class_groups/semester_class_groups/new.js.erb +0 -3
  1761. data/core/app/views/gaku/class_groups/semester_class_groups/update.js.erb +0 -3
  1762. data/core/app/views/gaku/class_groups/show.html.slim +0 -25
  1763. data/core/app/views/gaku/class_groups/student_chooser.js.erb +0 -2
  1764. data/core/app/views/gaku/class_groups/students/_students.html.slim +0 -19
  1765. data/core/app/views/gaku/class_groups/students/destroy.js.erb +0 -3
  1766. data/core/app/views/gaku/class_groups/students/enroll_students.js.erb +0 -17
  1767. data/core/app/views/gaku/class_groups/students/new.js.erb +0 -3
  1768. data/core/app/views/gaku/class_groups/update.js.erb +0 -8
  1769. data/core/app/views/gaku/contacts/_contacts.html.slim +0 -24
  1770. data/core/app/views/gaku/contacts/_fields.html.slim +0 -13
  1771. data/core/app/views/gaku/contacts/_form.html.slim +0 -4
  1772. data/core/app/views/gaku/contacts/_form_fields.html.slim +0 -14
  1773. data/core/app/views/gaku/contacts/_modal.html.slim +0 -6
  1774. data/core/app/views/gaku/contacts/_primary_field.html.slim +0 -13
  1775. data/core/app/views/gaku/contacts/create.js.erb +0 -21
  1776. data/core/app/views/gaku/contacts/destroy.js.erb +0 -9
  1777. data/core/app/views/gaku/contacts/soft_delete.js.erb +0 -8
  1778. data/core/app/views/gaku/course_groups/_course_group.html.slim +0 -3
  1779. data/core/app/views/gaku/course_groups/_course_group_unit.html.slim +0 -4
  1780. data/core/app/views/gaku/course_groups/_course_groups.html.slim +0 -7
  1781. data/core/app/views/gaku/course_groups/_delete_confirm.html.slim +0 -11
  1782. data/core/app/views/gaku/course_groups/_modal.html.slim +0 -6
  1783. data/core/app/views/gaku/course_groups/course_group_enrollments/_courses.html.slim +0 -23
  1784. data/core/app/views/gaku/course_groups/course_group_enrollments/_form.html.slim +0 -4
  1785. data/core/app/views/gaku/course_groups/course_group_enrollments/create.js.erb +0 -7
  1786. data/core/app/views/gaku/course_groups/course_group_enrollments/destroy.js.erb +0 -2
  1787. data/core/app/views/gaku/course_groups/create.js.erb +0 -10
  1788. data/core/app/views/gaku/course_groups/destroy.js.erb +0 -2
  1789. data/core/app/views/gaku/course_groups/edit.js.erb +0 -3
  1790. data/core/app/views/gaku/course_groups/index.html.slim +0 -15
  1791. data/core/app/views/gaku/course_groups/index.js.erb +0 -1
  1792. data/core/app/views/gaku/course_groups/new.js.erb +0 -3
  1793. data/core/app/views/gaku/course_groups/recovery.js.erb +0 -2
  1794. data/core/app/views/gaku/course_groups/show.html.slim +0 -30
  1795. data/core/app/views/gaku/course_groups/update.js.erb +0 -7
  1796. data/core/app/views/gaku/courses/_course.html.slim +0 -2
  1797. data/core/app/views/gaku/courses/_course_unit.html.slim +0 -5
  1798. data/core/app/views/gaku/courses/_courses.html.slim +0 -27
  1799. data/core/app/views/gaku/courses/_form.html.slim +0 -7
  1800. data/core/app/views/gaku/courses/_form_fields.html.slim +0 -4
  1801. data/core/app/views/gaku/courses/_modal.html.slim +0 -6
  1802. data/core/app/views/gaku/courses/_tabs.html.slim +0 -25
  1803. data/core/app/views/gaku/courses/assignments/_assignments.html.slim +0 -2
  1804. data/core/app/views/gaku/courses/create.js.erb +0 -7
  1805. data/core/app/views/gaku/courses/destroy.js.erb +0 -7
  1806. data/core/app/views/gaku/courses/edit.js.erb +0 -4
  1807. data/core/app/views/gaku/courses/enrollments/_enrollments.html.slim +0 -29
  1808. data/core/app/views/gaku/courses/enrollments/_errors_modal.html.slim +0 -11
  1809. data/core/app/views/gaku/courses/enrollments/class_groups/_form.html.slim +0 -3
  1810. data/core/app/views/gaku/courses/enrollments/class_groups/enroll.js.erb +0 -16
  1811. data/core/app/views/gaku/courses/enrollments/error.js.erb +0 -2
  1812. data/core/app/views/gaku/courses/enrollments/students/enroll_students.js.erb +0 -11
  1813. data/core/app/views/gaku/courses/exams/_exams.html.slim +0 -14
  1814. data/core/app/views/gaku/courses/index.html.slim +0 -14
  1815. data/core/app/views/gaku/courses/new.js.erb +0 -3
  1816. data/core/app/views/gaku/courses/semester_courses/_form.html.slim +0 -4
  1817. data/core/app/views/gaku/courses/semester_courses/_form_fields.html.slim +0 -3
  1818. data/core/app/views/gaku/courses/semester_courses/_modal.html.slim +0 -6
  1819. data/core/app/views/gaku/courses/semester_courses/_semester_courses.html.slim +0 -18
  1820. data/core/app/views/gaku/courses/semester_courses/create.js.erb +0 -6
  1821. data/core/app/views/gaku/courses/semester_courses/destroy.js.erb +0 -3
  1822. data/core/app/views/gaku/courses/semester_courses/edit.js.erb +0 -3
  1823. data/core/app/views/gaku/courses/semester_courses/new.js.erb +0 -3
  1824. data/core/app/views/gaku/courses/semester_courses/update.js.erb +0 -3
  1825. data/core/app/views/gaku/courses/show.html.slim +0 -32
  1826. data/core/app/views/gaku/courses/student_chooser.js.erb +0 -2
  1827. data/core/app/views/gaku/courses/update.js.erb +0 -16
  1828. data/core/app/views/gaku/devise/registrations/new.html.slim +0 -29
  1829. data/core/app/views/gaku/devise/registrations/set_up_admin_account.html.slim +0 -27
  1830. data/core/app/views/gaku/devise/sessions/new.html.slim +0 -27
  1831. data/core/app/views/gaku/exams/_exam.html.slim +0 -2
  1832. data/core/app/views/gaku/exams/_fields.html.slim +0 -8
  1833. data/core/app/views/gaku/exams/_form.html.slim +0 -19
  1834. data/core/app/views/gaku/exams/_form_fields.html.slim +0 -13
  1835. data/core/app/views/gaku/exams/_modal.html.slim +0 -6
  1836. data/core/app/views/gaku/exams/_show_table.html.slim +0 -15
  1837. data/core/app/views/gaku/exams/_weight_check_widget.html.slim +0 -20
  1838. data/core/app/views/gaku/exams/create.js.erb +0 -6
  1839. data/core/app/views/gaku/exams/destroy.js.erb +0 -2
  1840. data/core/app/views/gaku/exams/edit.js +0 -3
  1841. data/core/app/views/gaku/exams/exam_portions/_custom_exam_portion_error.html.slim +0 -4
  1842. data/core/app/views/gaku/exams/exam_portions/_exam_portion.html.slim +0 -3
  1843. data/core/app/views/gaku/exams/exam_portions/_exam_portion_unit.html.slim +0 -3
  1844. data/core/app/views/gaku/exams/exam_portions/_exam_portion_weight_td.html.slim +0 -3
  1845. data/core/app/views/gaku/exams/exam_portions/_exam_portions.html.slim +0 -14
  1846. data/core/app/views/gaku/exams/exam_portions/_form.html.slim +0 -3
  1847. data/core/app/views/gaku/exams/exam_portions/_modal.html.slim +0 -8
  1848. data/core/app/views/gaku/exams/exam_portions/_show_table.html.slim +0 -12
  1849. data/core/app/views/gaku/exams/exam_portions/attachments/_attachments.html.slim +0 -23
  1850. data/core/app/views/gaku/exams/exam_portions/attachments/_form.html.slim +0 -6
  1851. data/core/app/views/gaku/exams/exam_portions/attachments/_modal.html.slim +0 -6
  1852. data/core/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD +0 -0
  1853. data/core/app/views/gaku/exams/exam_portions/attachments/create.js.erb~HEAD_0 +0 -0
  1854. data/core/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master +0 -0
  1855. data/core/app/views/gaku/exams/exam_portions/attachments/create.js.erb~kagetsuki_master_0 +0 -0
  1856. data/core/app/views/gaku/exams/exam_portions/attachments/new.js.erb +0 -3
  1857. data/core/app/views/gaku/exams/exam_portions/create.js.erb +0 -48
  1858. data/core/app/views/gaku/exams/exam_portions/destroy.js.erb +0 -8
  1859. data/core/app/views/gaku/exams/exam_portions/edit.js.erb +0 -3
  1860. data/core/app/views/gaku/exams/exam_portions/new.js.erb +0 -3
  1861. data/core/app/views/gaku/exams/exam_portions/show.html.slim +0 -8
  1862. data/core/app/views/gaku/exams/exam_portions/update.js.erb +0 -27
  1863. data/core/app/views/gaku/exams/grading.html.slim +0 -34
  1864. data/core/app/views/gaku/exams/index.html.slim +0 -21
  1865. data/core/app/views/gaku/exams/new.js.erb +0 -3
  1866. data/core/app/views/gaku/exams/show.html.slim +0 -33
  1867. data/core/app/views/gaku/exams/update.js.erb +0 -5
  1868. data/core/app/views/gaku/extracurricular_activities/_extracurricular_activities.html.slim +0 -9
  1869. data/core/app/views/gaku/extracurricular_activities/_extracurricular_activity.html.slim +0 -6
  1870. data/core/app/views/gaku/extracurricular_activities/_form_fields.html.slim +0 -3
  1871. data/core/app/views/gaku/extracurricular_activities/_modal.html.slim +0 -7
  1872. data/core/app/views/gaku/extracurricular_activities/_tabs.html.slim +0 -14
  1873. data/core/app/views/gaku/extracurricular_activities/create.js.erb +0 -6
  1874. data/core/app/views/gaku/extracurricular_activities/destroy.js.erb +0 -2
  1875. data/core/app/views/gaku/extracurricular_activities/edit.js.erb +0 -3
  1876. data/core/app/views/gaku/extracurricular_activities/index.html.slim +0 -14
  1877. data/core/app/views/gaku/extracurricular_activities/index.js.erb +0 -2
  1878. data/core/app/views/gaku/extracurricular_activities/new.js.erb +0 -3
  1879. data/core/app/views/gaku/extracurricular_activities/show.html.slim +0 -20
  1880. data/core/app/views/gaku/extracurricular_activities/student_chooser.js.erb +0 -2
  1881. data/core/app/views/gaku/extracurricular_activities/students/_students.html.slim +0 -19
  1882. data/core/app/views/gaku/extracurricular_activities/students/destroy.js.erb +0 -3
  1883. data/core/app/views/gaku/extracurricular_activities/students/enroll_students.js.erb +0 -11
  1884. data/core/app/views/gaku/extracurricular_activities/update.js.erb +0 -6
  1885. data/core/app/views/gaku/home/_user_info.html.slim +0 -7
  1886. data/core/app/views/gaku/home/_user_menu.html.slim +0 -2
  1887. data/core/app/views/gaku/home/index.html.slim +0 -13
  1888. data/core/app/views/gaku/layouts/admin/index.html.slim +0 -15
  1889. data/core/app/views/gaku/layouts/edit.html.slim +0 -9
  1890. data/core/app/views/gaku/layouts/gaku.html.slim +0 -23
  1891. data/core/app/views/gaku/layouts/index.html.slim +0 -14
  1892. data/core/app/views/gaku/layouts/show.html.slim +0 -10
  1893. data/core/app/views/gaku/notes/_buttons.html.slim +0 -5
  1894. data/core/app/views/gaku/notes/_form.html.slim +0 -6
  1895. data/core/app/views/gaku/notes/_form_fields.html.slim +0 -6
  1896. data/core/app/views/gaku/notes/_modal.html.slim +0 -6
  1897. data/core/app/views/gaku/notes/_notes.html.slim +0 -19
  1898. data/core/app/views/gaku/notes/_show_modal.html.slim +0 -4
  1899. data/core/app/views/gaku/notes/show.js.erb +0 -3
  1900. data/core/app/views/gaku/shared/_delete_modal.html.slim +0 -7
  1901. data/core/app/views/gaku/shared/_delete_modal_remote.html.slim +0 -7
  1902. data/core/app/views/gaku/shared/_errors.html.slim +0 -6
  1903. data/core/app/views/gaku/shared/_flash.html.slim +0 -4
  1904. data/core/app/views/gaku/shared/_login_widget.html.slim +0 -27
  1905. data/core/app/views/gaku/shared/_menubar.html.slim +0 -8
  1906. data/core/app/views/gaku/shared/_modal_config.html.slim +0 -37
  1907. data/core/app/views/gaku/shared/_multi_errors.html.slim +0 -6
  1908. data/core/app/views/gaku/shared/_picture.html.slim +0 -12
  1909. data/core/app/views/gaku/shared/_upload_picture.html.slim +0 -7
  1910. data/core/app/views/gaku/shared/fields/_attachment_fields.html.slim +0 -10
  1911. data/core/app/views/gaku/shared/fields/_exam_portion_fields.html.slim +0 -8
  1912. data/core/app/views/gaku/shared/fields/_person_fields.html.slim +0 -4
  1913. data/core/app/views/gaku/shared/fields/_person_show_table.html.slim +0 -3
  1914. data/core/app/views/gaku/shared/fields/_student_fields.html.slim +0 -22
  1915. data/core/app/views/gaku/shared/fields/_syllabus_fields.html.slim +0 -5
  1916. data/core/app/views/gaku/shared/form_fields/_exam_portion_form_fields.html.slim +0 -15
  1917. data/core/app/views/gaku/shared/form_fields/_person_form_fields.html.slim +0 -16
  1918. data/core/app/views/gaku/shared/menu/_admin.html.erb +0 -104
  1919. data/core/app/views/gaku/shared/student/_academic.html.slim +0 -18
  1920. data/core/app/views/gaku/shared/student/_edit.html.slim +0 -20
  1921. data/core/app/views/gaku/shared/student/_personal.html.slim +0 -6
  1922. data/core/app/views/gaku/shared/student/_show.html.slim +0 -14
  1923. data/core/app/views/gaku/shared/student/_show_table.html.slim +0 -51
  1924. data/core/app/views/gaku/shared/student/_tabs.html.slim +0 -36
  1925. data/core/app/views/gaku/shared/student_chooser/_chooser.html.slim +0 -36
  1926. data/core/app/views/gaku/shared/student_chooser/_class_group.html.slim +0 -5
  1927. data/core/app/views/gaku/shared/student_chooser/_course.html.slim +0 -5
  1928. data/core/app/views/gaku/shared/student_chooser/_extracurricular_activity.html.slim +0 -5
  1929. data/core/app/views/gaku/shared/student_chooser/_modal.html.slim +0 -4
  1930. data/core/app/views/gaku/shared/student_chooser/_student.html.slim +0 -18
  1931. data/core/app/views/gaku/students/_delete_modal.html.slim +0 -5
  1932. data/core/app/views/gaku/students/_form.html.slim +0 -3
  1933. data/core/app/views/gaku/students/_form_fields.html.slim +0 -19
  1934. data/core/app/views/gaku/students/_modal.html.slim +0 -6
  1935. data/core/app/views/gaku/students/_student.html.slim +0 -6
  1936. data/core/app/views/gaku/students/_student_unit.html.slim +0 -5
  1937. data/core/app/views/gaku/students/_students.html.slim +0 -17
  1938. data/core/app/views/gaku/students/class_group_enrollments/_new_modal.html.slim +0 -28
  1939. data/core/app/views/gaku/students/class_group_enrollments/create.js.erb +0 -11
  1940. data/core/app/views/gaku/students/class_group_enrollments/new.js.erb +0 -2
  1941. data/core/app/views/gaku/students/commute_methods/_commute_method.html.slim +0 -6
  1942. data/core/app/views/gaku/students/commute_methods/_modal.html.slim +0 -6
  1943. data/core/app/views/gaku/students/commute_methods/create.js.erb +0 -3
  1944. data/core/app/views/gaku/students/commute_methods/edit.js.erb +0 -5
  1945. data/core/app/views/gaku/students/commute_methods/new.js.erb +0 -4
  1946. data/core/app/views/gaku/students/commute_methods/update.js.erb +0 -3
  1947. data/core/app/views/gaku/students/course_enrollments/_course_enrollment.html.slim +0 -5
  1948. data/core/app/views/gaku/students/course_enrollments/_course_enrollment_unit.html.slim +0 -3
  1949. data/core/app/views/gaku/students/course_enrollments/_course_enrollments.html.slim +0 -21
  1950. data/core/app/views/gaku/students/course_enrollments/_errors_modal.html.slim +0 -11
  1951. data/core/app/views/gaku/students/course_enrollments/_form.html.slim +0 -5
  1952. data/core/app/views/gaku/students/course_enrollments/create.js.erb +0 -10
  1953. data/core/app/views/gaku/students/course_enrollments/destroy.js.erb +0 -3
  1954. data/core/app/views/gaku/students/course_enrollments/error.js.erb +0 -2
  1955. data/core/app/views/gaku/students/course_enrollments/new.js.erb +0 -3
  1956. data/core/app/views/gaku/students/create.js.erb +0 -8
  1957. data/core/app/views/gaku/students/destroy.js.erb +0 -2
  1958. data/core/app/views/gaku/students/edit.html.slim +0 -9
  1959. data/core/app/views/gaku/students/edit.js.erb +0 -3
  1960. data/core/app/views/gaku/students/guardians/_edit_table.html.slim +0 -9
  1961. data/core/app/views/gaku/students/guardians/_form.html.slim +0 -3
  1962. data/core/app/views/gaku/students/guardians/_form_fields.html.slim +0 -4
  1963. data/core/app/views/gaku/students/guardians/_guardian.html.slim +0 -2
  1964. data/core/app/views/gaku/students/guardians/_guardian_unit.html.slim +0 -12
  1965. data/core/app/views/gaku/students/guardians/_guardians.html.slim +0 -26
  1966. data/core/app/views/gaku/students/guardians/_modal.html.slim +0 -7
  1967. data/core/app/views/gaku/students/guardians/_picture.html.slim +0 -12
  1968. data/core/app/views/gaku/students/guardians/_show_table.html.slim +0 -13
  1969. data/core/app/views/gaku/students/guardians/_tabs.html.slim +0 -15
  1970. data/core/app/views/gaku/students/guardians/_upload_picture.html.slim +0 -7
  1971. data/core/app/views/gaku/students/guardians/create.js.erb +0 -7
  1972. data/core/app/views/gaku/students/guardians/destroy.js.erb +0 -4
  1973. data/core/app/views/gaku/students/guardians/edit.html.slim +0 -7
  1974. data/core/app/views/gaku/students/guardians/edit.js.erb +0 -3
  1975. data/core/app/views/gaku/students/guardians/new.js.erb +0 -3
  1976. data/core/app/views/gaku/students/guardians/show.html.slim +0 -14
  1977. data/core/app/views/gaku/students/guardians/update.js.erb +0 -4
  1978. data/core/app/views/gaku/students/index.html.slim +0 -16
  1979. data/core/app/views/gaku/students/index.js.erb +0 -13
  1980. data/core/app/views/gaku/students/index.pdf.thinreports +0 -17
  1981. data/core/app/views/gaku/students/new.js.erb +0 -3
  1982. data/core/app/views/gaku/students/search/_address.html.slim +0 -36
  1983. data/core/app/views/gaku/students/search/_extended.slim +0 -134
  1984. data/core/app/views/gaku/students/search/_form.html.slim +0 -25
  1985. data/core/app/views/gaku/students/search/_student.html.slim +0 -24
  1986. data/core/app/views/gaku/students/show.html.slim +0 -1
  1987. data/core/app/views/gaku/students/show.pdf.thinreports +0 -8
  1988. data/core/app/views/gaku/students/simple_grades/_edit.html.slim +0 -8
  1989. data/core/app/views/gaku/students/simple_grades/_fields.html.slim +0 -6
  1990. data/core/app/views/gaku/students/simple_grades/_form.html.slim +0 -6
  1991. data/core/app/views/gaku/students/simple_grades/_form_fields.html.slim +0 -3
  1992. data/core/app/views/gaku/students/simple_grades/_index.html.slim +0 -19
  1993. data/core/app/views/gaku/students/simple_grades/_index_modal.html.slim +0 -4
  1994. data/core/app/views/gaku/students/simple_grades/_simple_grade.html.slim +0 -3
  1995. data/core/app/views/gaku/students/simple_grades/_simple_grades.html.slim +0 -2
  1996. data/core/app/views/gaku/students/simple_grades/create.js.erb +0 -10
  1997. data/core/app/views/gaku/students/simple_grades/destroy.js.erb +0 -4
  1998. data/core/app/views/gaku/students/simple_grades/edit.js.erb +0 -2
  1999. data/core/app/views/gaku/students/simple_grades/index.js.erb +0 -5
  2000. data/core/app/views/gaku/students/simple_grades/new.js.erb +0 -3
  2001. data/core/app/views/gaku/students/simple_grades/update.js.erb +0 -4
  2002. data/core/app/views/gaku/students/student_achievements/_achievements_tab.html.slim +0 -12
  2003. data/core/app/views/gaku/students/student_achievements/_edit.html.slim +0 -8
  2004. data/core/app/views/gaku/students/student_achievements/_fields.html.slim +0 -8
  2005. data/core/app/views/gaku/students/student_achievements/_form.html.slim +0 -6
  2006. data/core/app/views/gaku/students/student_achievements/_form_fields.html.slim +0 -1
  2007. data/core/app/views/gaku/students/student_achievements/_index.html.slim +0 -20
  2008. data/core/app/views/gaku/students/student_achievements/_index_modal.html.slim +0 -4
  2009. data/core/app/views/gaku/students/student_achievements/_student_achievement.html.slim +0 -3
  2010. data/core/app/views/gaku/students/student_achievements/_student_achievements.html.slim +0 -2
  2011. data/core/app/views/gaku/students/student_achievements/create.js.erb +0 -10
  2012. data/core/app/views/gaku/students/student_achievements/destroy.js.erb +0 -4
  2013. data/core/app/views/gaku/students/student_achievements/edit.js.erb +0 -2
  2014. data/core/app/views/gaku/students/student_achievements/index.js.erb +0 -3
  2015. data/core/app/views/gaku/students/student_achievements/new.js.erb +0 -3
  2016. data/core/app/views/gaku/students/student_achievements/update.js.erb +0 -5
  2017. data/core/app/views/gaku/students/student_specialties/_edit.html.slim +0 -8
  2018. data/core/app/views/gaku/students/student_specialties/_fields.html.slim +0 -5
  2019. data/core/app/views/gaku/students/student_specialties/_form.html.slim +0 -6
  2020. data/core/app/views/gaku/students/student_specialties/_form_fields.html.slim +0 -2
  2021. data/core/app/views/gaku/students/student_specialties/_index.html.slim +0 -18
  2022. data/core/app/views/gaku/students/student_specialties/_index_modal.html.slim +0 -4
  2023. data/core/app/views/gaku/students/student_specialties/_specialties_list.html.slim +0 -0
  2024. data/core/app/views/gaku/students/student_specialties/_student_specialties.html.slim +0 -2
  2025. data/core/app/views/gaku/students/student_specialties/_student_specialty.html.slim +0 -3
  2026. data/core/app/views/gaku/students/student_specialties/create.js.erb +0 -11
  2027. data/core/app/views/gaku/students/student_specialties/destroy.js.erb +0 -5
  2028. data/core/app/views/gaku/students/student_specialties/edit.js.erb +0 -2
  2029. data/core/app/views/gaku/students/student_specialties/index.js.erb +0 -5
  2030. data/core/app/views/gaku/students/student_specialties/new.js.erb +0 -3
  2031. data/core/app/views/gaku/students/student_specialties/update.js.erb +0 -4
  2032. data/core/app/views/gaku/students/update.js.erb +0 -3
  2033. data/core/app/views/gaku/syllabuses/_form_fields.html.slim +0 -10
  2034. data/core/app/views/gaku/syllabuses/_modal.html.slim +0 -7
  2035. data/core/app/views/gaku/syllabuses/_syllabus.html.slim +0 -2
  2036. data/core/app/views/gaku/syllabuses/_syllabus_fields.html.slim +0 -4
  2037. data/core/app/views/gaku/syllabuses/_syllabuses.html.slim +0 -11
  2038. data/core/app/views/gaku/syllabuses/assignments/_assignment.html.slim +0 -9
  2039. data/core/app/views/gaku/syllabuses/assignments/_assignments.html.slim +0 -19
  2040. data/core/app/views/gaku/syllabuses/assignments/_form.html.slim +0 -17
  2041. data/core/app/views/gaku/syllabuses/assignments/create.js.erb +0 -7
  2042. data/core/app/views/gaku/syllabuses/create.js.erb +0 -7
  2043. data/core/app/views/gaku/syllabuses/destroy.js.erb +0 -2
  2044. data/core/app/views/gaku/syllabuses/edit.html.slim +0 -59
  2045. data/core/app/views/gaku/syllabuses/edit.js.erb +0 -3
  2046. data/core/app/views/gaku/syllabuses/exam_syllabuses/create.js.erb +0 -11
  2047. data/core/app/views/gaku/syllabuses/exam_syllabuses/destroy.js.erb +0 -6
  2048. data/core/app/views/gaku/syllabuses/exams/_exam.html.slim +0 -4
  2049. data/core/app/views/gaku/syllabuses/exams/_exams.html.slim +0 -16
  2050. data/core/app/views/gaku/syllabuses/exams/_fields.html.slim +0 -9
  2051. data/core/app/views/gaku/syllabuses/exams/_form.html.slim +0 -15
  2052. data/core/app/views/gaku/syllabuses/exams/_form_fields.html.slim +0 -10
  2053. data/core/app/views/gaku/syllabuses/exams/_modal.html.slim +0 -6
  2054. data/core/app/views/gaku/syllabuses/exams/_select_form.html.slim +0 -6
  2055. data/core/app/views/gaku/syllabuses/exams/create.js.erb +0 -10
  2056. data/core/app/views/gaku/syllabuses/exams/destroy.js.erb +0 -2
  2057. data/core/app/views/gaku/syllabuses/exams/edit.js.erb +0 -3
  2058. data/core/app/views/gaku/syllabuses/exams/new.js.erb +0 -3
  2059. data/core/app/views/gaku/syllabuses/exams/update.js.erb +0 -4
  2060. data/core/app/views/gaku/syllabuses/index.html.slim +0 -14
  2061. data/core/app/views/gaku/syllabuses/update.js.erb +0 -4
  2062. data/core/app/views/gaku/teachers/_delete_modal.html.slim +0 -5
  2063. data/core/app/views/gaku/teachers/_edit_table.html.slim +0 -5
  2064. data/core/app/views/gaku/teachers/_fields.html.slim +0 -1
  2065. data/core/app/views/gaku/teachers/_form.html.slim +0 -3
  2066. data/core/app/views/gaku/teachers/_modal.html.slim +0 -6
  2067. data/core/app/views/gaku/teachers/_show_table.html.slim +0 -7
  2068. data/core/app/views/gaku/teachers/_tabs.html.slim +0 -21
  2069. data/core/app/views/gaku/teachers/_teacher.html.slim +0 -6
  2070. data/core/app/views/gaku/teachers/_teacher_unit.html.slim +0 -4
  2071. data/core/app/views/gaku/teachers/_teachers.html.slim +0 -11
  2072. data/core/app/views/gaku/teachers/create.js.erb +0 -8
  2073. data/core/app/views/gaku/teachers/destroy.js.erb +0 -2
  2074. data/core/app/views/gaku/teachers/edit.html.slim +0 -23
  2075. data/core/app/views/gaku/teachers/edit.js.erb +0 -3
  2076. data/core/app/views/gaku/teachers/index.html.slim +0 -16
  2077. data/core/app/views/gaku/teachers/index.js.erb +0 -2
  2078. data/core/app/views/gaku/teachers/new.js.erb +0 -3
  2079. data/core/app/views/gaku/teachers/show.html.slim +0 -14
  2080. data/core/app/views/gaku/teachers/update.js.erb +0 -4
  2081. data/core/app/views/kaminari/_paginator.html.erb +0 -25
  2082. data/core/config/initializers/mime_types.rb +0 -1
  2083. data/core/config/initializers/ruby_template_handler.rb +0 -1
  2084. data/core/db/migrate/20120202111850_translated_tables.rb +0 -52
  2085. data/core/db/migrate/20131014065028_gaku_core.rb +0 -685
  2086. data/core/lib/gaku/core/version.rb +0 -5
  2087. data/core/lib/gaku/testing/env.rb +0 -10
  2088. data/core/lib/gaku/testing/factories/achievement_factory.rb +0 -12
  2089. data/core/lib/gaku/testing/factories/student_achievement_factory.rb +0 -8
  2090. data/core/lib/gaku/testing/flash_helpers.rb +0 -35
  2091. data/core/lib/gaku/testing/request_helpers.rb +0 -212
  2092. data/core/lib/generators/gaku/install/templates/app/assets/javascripts/gaku/all.js +0 -14
  2093. data/core/lib/generators/gaku/install/templates/app/assets/stylesheets/gaku/all.css +0 -12
  2094. data/core/log/.gitkeep +0 -0
  2095. data/core/script/rails +0 -9
  2096. data/core/spec/controllers/gaku/addresses_controller_spec.rb +0 -262
  2097. data/core/spec/controllers/gaku/admin/achievements_controller_spec.rb +0 -139
  2098. data/core/spec/controllers/gaku/admin/disposals_controller_spec.rb +0 -177
  2099. data/core/spec/controllers/gaku/admin/grading/grading_method_set_items_controller_spec.rb +0 -165
  2100. data/core/spec/controllers/gaku/admin/grading/grading_method_sets_controller_spec.rb +0 -183
  2101. data/core/spec/controllers/gaku/admin/grading/grading_methods_controller_spec.rb +0 -154
  2102. data/core/spec/controllers/gaku/admin/presets_controller_spec.rb +0 -44
  2103. data/core/spec/controllers/gaku/admin/roles_controller_spec.rb +0 -154
  2104. data/core/spec/controllers/gaku/admin/schools/campuses/campuses_controller_spec.rb +0 -94
  2105. data/core/spec/controllers/gaku/admin/schools/schools_controller_spec.rb +0 -129
  2106. data/core/spec/controllers/gaku/admin/specialties_controller_spec.rb +0 -154
  2107. data/core/spec/controllers/gaku/admin/templates_controller_spec.rb +0 -118
  2108. data/core/spec/controllers/gaku/admin/types_and_methods/attendance_types_controller_spec.rb +0 -176
  2109. data/core/spec/controllers/gaku/admin/types_and_methods/commute_method_types_controller_spec.rb +0 -154
  2110. data/core/spec/controllers/gaku/admin/types_and_methods/contact_types_controller_spec.rb +0 -154
  2111. data/core/spec/controllers/gaku/admin/types_and_methods/enrollment_statuses_controller_spec.rb +0 -153
  2112. data/core/spec/controllers/gaku/admin/users_controller_spec.rb +0 -154
  2113. data/core/spec/controllers/gaku/class_group_enrollments_controller_spec.rb +0 -62
  2114. data/core/spec/controllers/gaku/class_groups/class_groups_controller_spec.rb +0 -129
  2115. data/core/spec/controllers/gaku/contacts_controller_spec.rb +0 -250
  2116. data/core/spec/controllers/gaku/course_groups/course_groups_controller_spec.rb +0 -75
  2117. data/core/spec/controllers/gaku/courses/courses_controller_spec.rb +0 -79
  2118. data/core/spec/controllers/gaku/exams/exams_controller_spec.rb +0 -156
  2119. data/core/spec/controllers/gaku/notes_controller_spec.rb +0 -143
  2120. data/core/spec/controllers/gaku/students/guardians_controller_spec.rb +0 -62
  2121. data/core/spec/controllers/gaku/students/students_controller_spec.rb +0 -243
  2122. data/core/spec/controllers/gaku/syllabuses_controller_spec.rb +0 -140
  2123. data/core/spec/controllers/gaku/teachers_controller_spec.rb +0 -190
  2124. data/core/spec/integration/student_versioning_spec.rb +0 -93
  2125. data/core/spec/models/achievement_spec.rb +0 -21
  2126. data/core/spec/models/student_achievement_spec.rb +0 -15
  2127. data/core/spec/requests/admin/achievements/achievements_spec.rb +0 -73
  2128. data/core/spec/requests/admin/changes_and_deletions/students_spec.rb +0 -47
  2129. data/core/spec/requests/admin/disposals/student_disposals_spec.rb +0 -50
  2130. data/core/spec/requests/admin/disposals/teacher_disposals_spec.rb +0 -50
  2131. data/core/spec/requests/admin/grading/grading_method_set_items_spec.rb +0 -86
  2132. data/core/spec/requests/admin/grading/grading_method_sets_spec.rb +0 -118
  2133. data/core/spec/requests/admin/grading/grading_methods_spec.rb +0 -74
  2134. data/core/spec/requests/admin/presets/defaults_preset_spec.rb +0 -21
  2135. data/core/spec/requests/admin/presets/grading_preset_spec.rb +0 -22
  2136. data/core/spec/requests/admin/presets/locale_preset_spec.rb +0 -22
  2137. data/core/spec/requests/admin/presets/names_preset_spec.rb +0 -21
  2138. data/core/spec/requests/admin/presets/output_formats_spec.rb +0 -30
  2139. data/core/spec/requests/admin/presets/pagination_preset_spec.rb +0 -23
  2140. data/core/spec/requests/admin/presets/student_preset_spec.rb +0 -28
  2141. data/core/spec/requests/admin/roles_spec.rb +0 -86
  2142. data/core/spec/requests/admin/school_years/school_years_spec.rb +0 -125
  2143. data/core/spec/requests/admin/school_years/semesters_spec.rb +0 -167
  2144. data/core/spec/requests/admin/schools/campuses/addresses_spec.rb +0 -116
  2145. data/core/spec/requests/admin/schools/campuses/campuses_spec.rb +0 -90
  2146. data/core/spec/requests/admin/schools/campuses/contacts_spec.rb +0 -49
  2147. data/core/spec/requests/admin/schools/campuses/picture_spec.rb +0 -19
  2148. data/core/spec/requests/admin/schools/picture_spec.rb +0 -21
  2149. data/core/spec/requests/admin/schools/programs_spec.rb +0 -125
  2150. data/core/spec/requests/admin/schools/school_details_spec.rb +0 -22
  2151. data/core/spec/requests/admin/schools/school_levels_spec.rb +0 -82
  2152. data/core/spec/requests/admin/schools/schools_spec.rb +0 -138
  2153. data/core/spec/requests/admin/specialties_spec.rb +0 -73
  2154. data/core/spec/requests/admin/templates_spec.rb +0 -97
  2155. data/core/spec/requests/admin/types_and_methods/attendance_types_spec.rb +0 -80
  2156. data/core/spec/requests/admin/types_and_methods/commute_method_types_spec.rb +0 -75
  2157. data/core/spec/requests/admin/types_and_methods/contact_types_spec.rb +0 -74
  2158. data/core/spec/requests/admin/types_and_methods/enrollment_statuses_spec.rb +0 -75
  2159. data/core/spec/requests/admin/types_and_methods/states_spec.rb +0 -110
  2160. data/core/spec/requests/admin/users_spec.rb +0 -91
  2161. data/core/spec/requests/class_groups/class_groups_spec.rb +0 -171
  2162. data/core/spec/requests/class_groups/courses_spec.rb +0 -40
  2163. data/core/spec/requests/class_groups/notes_spec.rb +0 -30
  2164. data/core/spec/requests/class_groups/semester_class_groups_spec.rb +0 -111
  2165. data/core/spec/requests/class_groups/students_spec.rb +0 -92
  2166. data/core/spec/requests/course_groups/course_groups_spec.rb +0 -122
  2167. data/core/spec/requests/course_groups/courses_spec.rb +0 -38
  2168. data/core/spec/requests/courses/courses_spec.rb +0 -167
  2169. data/core/spec/requests/courses/enrollments/class_groups_spec.rb +0 -86
  2170. data/core/spec/requests/courses/enrollments/students_spec.rb +0 -63
  2171. data/core/spec/requests/courses/exams_spec.rb +0 -36
  2172. data/core/spec/requests/courses/notes_spec.rb +0 -30
  2173. data/core/spec/requests/courses/semester_courses_spec.rb +0 -119
  2174. data/core/spec/requests/exams/exam_portions/attachments_spec.rb +0 -147
  2175. data/core/spec/requests/exams/exam_portions/exam_portions_spec.rb +0 -113
  2176. data/core/spec/requests/exams/exams_spec.rb +0 -141
  2177. data/core/spec/requests/exams/notes_spec.rb +0 -30
  2178. data/core/spec/requests/extracurricular_activities/extracurricular_activities_spec.rb +0 -87
  2179. data/core/spec/requests/extracurricular_activities/students_spec.rb +0 -120
  2180. data/core/spec/requests/sign_in_spec.rb +0 -78
  2181. data/core/spec/requests/sign_up_spec.rb +0 -75
  2182. data/core/spec/requests/students/achievements_spec.rb +0 -82
  2183. data/core/spec/requests/students/addresses_spec.rb +0 -61
  2184. data/core/spec/requests/students/class_group_enrollments_spec.rb +0 -47
  2185. data/core/spec/requests/students/contacts_spec.rb +0 -60
  2186. data/core/spec/requests/students/course_enrollments_spec.rb +0 -39
  2187. data/core/spec/requests/students/guardians/addresses_spec.rb +0 -65
  2188. data/core/spec/requests/students/guardians/contacts_spec.rb +0 -59
  2189. data/core/spec/requests/students/guardians/guardians_spec.rb +0 -89
  2190. data/core/spec/requests/students/guardians/picture_spec.rb +0 -23
  2191. data/core/spec/requests/students/notes_spec.rb +0 -33
  2192. data/core/spec/requests/students/picture_spec.rb +0 -21
  2193. data/core/spec/requests/students/simple_grades_spec.rb +0 -85
  2194. data/core/spec/requests/students/specialties_spec.rb +0 -91
  2195. data/core/spec/requests/students/students_spec.rb +0 -127
  2196. data/core/spec/requests/syllabuses/exams_spec.rb +0 -168
  2197. data/core/spec/requests/syllabuses/notes_spec.rb +0 -30
  2198. data/core/spec/requests/syllabuses/syllabuses_spec.rb +0 -104
  2199. data/core/spec/requests/teachers/addresses_spec.rb +0 -60
  2200. data/core/spec/requests/teachers/picture_spec.rb +0 -21
  2201. data/core/spec/requests/teachers/teachers_spec.rb +0 -114
  2202. data/core/spec/routing/student_routes_spec.rb +0 -73
  2203. data/core/spec/spec_helper.rb +0 -86
  2204. data/core/spec/support/requests/avatarable_spec.rb +0 -16
  2205. data/core/spec/support/requests/course_enrollable_spec.rb +0 -72
  2206. data/core/spec/support/requests/shared_addresses_spec.rb +0 -175
  2207. data/core/spec/support/requests/shared_contacts_spec.rb +0 -121
  2208. data/core/spec/support/requests/shared_notes_spec.rb +0 -83
  2209. data/core/vendor/assets/javascripts/backbone.js +0 -1431
  2210. data/core/vendor/assets/javascripts/tablefix.js.coffee +0 -109
  2211. data/gaku_dependencies.rb +0 -16
  2212. data/sample/db/sample/gaku/achievements.rb +0 -12
  2213. data/sample/db/sample/gaku/courses.rb +0 -9
  2214. data/sample/db/sample/gaku/syllabuses.rb +0 -130
@@ -1,2 +0,0 @@
1
- tr id="exam-#{exam.id}"
2
- = render 'fields', exam: exam
@@ -1,8 +0,0 @@
1
- td = exam.name
2
- td = exam.adjustments
3
- td = exam.weight
4
- td = exam.use_weighting
5
- td
6
- = link_to_show exam, id: "show-exam-link"
7
- = link_to_edit [:edit, exam], id: "edit-exam-link", remote: true
8
- = ajax_link_to_delete exam, id: "delete-exam-link"
@@ -1,19 +0,0 @@
1
- = remote_form_for @exam do |f|
2
- .row-fluid
3
- .row-fluid
4
- h4 = t(:'exam.new')
5
- = hr
6
- = well_div do
7
- = render 'form_fields', f: f
8
-
9
- .row-fluid
10
- h4 = t(:'exam_portion.master')
11
- = hr
12
- = well_div do
13
- = f.fields_for :exam_portions do |ep_form|
14
- = render 'gaku/shared/form_fields/exam_portion_form_fields', ep_form: ep_form
15
- = hr
16
- .row-fluid
17
- .span12
18
- = buttons_for @exam
19
-
@@ -1,13 +0,0 @@
1
- .row-fluid
2
- .span9
3
- = f.text_field :name, label: t(:'exam.name')
4
- .span3
5
- = f.number_field :weight, label: t(:'exam.weight')
6
- .row-fluid
7
- .span6
8
- = f.text_area :description, size: "0x2", label: t(:'exam.description')
9
- .span6
10
- = f.text_area :adjustments, size: "0x2", label: t(:'exam.adjustments')
11
- .row-fluid
12
- .span12
13
- = f.check_box :use_weighting, label: t(:'exam_portion.use_weighting')
@@ -1,6 +0,0 @@
1
- = modal_for 'edit-exam-modal' do
2
- = modal_header t(:'exam.edit')
3
- = modal_form_for @exam do |f|
4
- = modal_body do
5
- = render 'form_fields', f: f
6
- = buttons_for @exam
@@ -1,15 +0,0 @@
1
- #exam-show
2
- = table do
3
- tbody
4
- tr
5
- = th t(:'exam.name')
6
- td = @exam.name
7
- tr
8
- = th t(:'exam.weight')
9
- td = @exam.weight
10
- tr
11
- = th t(:'exam.description')
12
- td colspan="3" = @exam.description
13
- tr
14
- = th t(:'exam.adjustments')
15
- td colspan="3" = @exam.adjustments
@@ -1,20 +0,0 @@
1
- .span12.well
2
- .row-fluid
3
- h3 = t('exam.weight')
4
- .row-fluid
5
- .exam-portion-error
6
- / .alert.alert-error
7
- / = t('exam.weight')
8
- .row-fluid
9
- table.table.table-striped.table-bordered.table-condensed.exam-portions-weight
10
- thead
11
- - exam.exam_portions.each_with_index do |portion, i|
12
- th.btn-warning = "#{portion.name} #{t('exam.weight')}"
13
- tbody
14
- =render partial: 'gaku/exams/exam_portions/exam_portion_weight_td', collection: exam.exam_portions, as: :portion
15
-
16
- table.table.table-striped.table-bordered.table-condensed.exam-portions-total-weight
17
- thead
18
- th.btn-inverse = t('exam.total_weight')
19
- tbody
20
- td#weight-total.vm = exam.total_weight
@@ -1,6 +0,0 @@
1
- $('#exams-index tbody').append('<%= render_js_partial("exam", {exam: @exam}) %>');
2
- $('.exams-count').html('<%= print_count(@count+1, t_exam_list) %>');
3
-
4
- showNotice("<%= render_flash %>");
5
- $('#new-exam').slide()
6
- $('#new-exam-link').show()
@@ -1,2 +0,0 @@
1
- $('.exams-count').html('<%= print_count(@count-1, t_exam_list) %>');
2
- showNotice("<%= render_flash %>");
@@ -1,3 +0,0 @@
1
- $('#modal-dialogs').html('<%= render_js_partial("modal", {:exam => @exam}) %>');
2
- $('#edit-exam-modal').modal('show');
3
- $('.remote-form').enableValidations();
@@ -1,4 +0,0 @@
1
- .alert.alert-error
2
- button type="button" class="close" data-dismiss="alert" &times
3
-
4
- = error
@@ -1,3 +0,0 @@
1
- - unless exam_portion.nil? or exam_portion.new_record? or !exam_portion
2
- tr id="exam_portion_#{exam_portion.id}"
3
- = render 'gaku/exams/exam_portions/exam_portion_unit', exam_portion: exam_portion
@@ -1,3 +0,0 @@
1
- = render 'gaku/shared/fields/exam_portion_fields', exam_portion: exam_portion
2
- td
3
- = manage_buttons_for [@exam, exam_portion]
@@ -1,3 +0,0 @@
1
- td*{'data-id' =>portion.id}
2
- =form_for [@exam, portion], remote: true do |f|
3
- =f.number_field :weight, class: 'exam-portion-weight', min: 0, max: 100
@@ -1,14 +0,0 @@
1
- .row-fluid
2
- = table_for 'exam-exam-portions-index' do
3
- thead
4
- tr
5
- = th t(:'order')
6
- = th t(:'exam_portion.name')
7
- = th t(:'exam_portion.max_score')
8
- - if @exam.use_weighting
9
- = th t(:'exam_portion.weight')
10
- = th t(:'exam_portion.problem_count')
11
- = th t(:'exam_portion.attached_file_count')
12
- = th_actions 3
13
- tbody class='sortable' data-sort-url="#{sort_exam_exam_portions_path(@exam)}"
14
- = render partial: 'gaku/exams/exam_portions/exam_portion', collection: @exam.exam_portions, as: :exam_portion
@@ -1,3 +0,0 @@
1
- = remote_form_for [@exam, @exam_portion] do |ep_form|
2
- = render 'gaku/shared/form_fields/exam_portion_form_fields', ep_form: ep_form
3
- = buttons_for ep_form.object, nested_id: 'exam-exam-portion'
@@ -1,8 +0,0 @@
1
- - model = @exam_portion || ExamPortion.new
2
- - model_class = model.class
3
- = modal_for 'edit-exam-exam-portion-modal' do
4
- = modal_header t(:'exam_portion.edit')
5
- = modal_form_for [@exam, model] do |ep_form|
6
- = modal_body do
7
- = render 'gaku/shared/form_fields/exam_portion_form_fields', ep_form: ep_form
8
- = buttons_for @exam_portion, nested_id: 'exam-exam-portion'
@@ -1,12 +0,0 @@
1
- = table do
2
- thead
3
- tr
4
- = th t(:'order')
5
- = th t(:'exam_portion.name')
6
- = th t(:'exam_portion.max_score')
7
- = th t(:'exam_portion.weight')
8
- = th t(:'exam_portion.problem_count')
9
- = th t(:'exam_portion.attached_file_count')
10
- = th_actions 3
11
- tbody
12
- = render 'gaku/exams/exam_portions/exam_portion', exam_portion: @exam_portion
@@ -1,23 +0,0 @@
1
- #exam-exam-portion-attachments
2
- = index_header do
3
- #new-exam-exam-portion-attachment.hide
4
- .pull-left
5
- = count_div 'exam-exam-portion-attachments-count' do
6
- = print_count @exam_portion.attachments.count, t_attachment_list
7
- .pull-right
8
- = ajax_link_to_new t(:'attachment.new'), [:new, @exam, @exam_portion, :attachment], id: "new-exam-exam-portion-attachment-link"
9
-
10
- = hr
11
-
12
- = index_body do
13
- = table_for 'exam-exam-portion-attachments-index' do
14
- thead
15
- tr
16
- = th t(:'attachment.name')
17
- = th t(:'attachment.description')
18
- = th t(:'attachment.file_name')
19
- = th t(:'attachment.file_type')
20
- = th t(:'attachment.file_size')
21
- = th_actions 3
22
- tbody
23
- = render partial: 'gaku/exams/exam_portions/attachments/attachment', collection: @exam_portion.attachments, as: :attachment
@@ -1,6 +0,0 @@
1
- .row-fluid
2
- .span12.well
3
- = remote_form_for [@exam, @exam_portion, @attachment] do |f|
4
- = render 'form_fields', f: f
5
- br
6
- = buttons_for @attachment, nested_id: 'exam-exam-portion-attachment'
@@ -1,6 +0,0 @@
1
- = modal_for 'edit-exam-exam-portion-attachment-modal' do
2
- = modal_header t(:'attachment.edit')
3
- = normal_modal_form_for [@exam,@exam_portion, @attachment] do |f|
4
- = modal_body do
5
- = render 'gaku/exams/exam_portions/attachments/form_fields', f: f
6
- = buttons_for @attachment, nested_id: "exam-exam-portion-attachment"
@@ -1,3 +0,0 @@
1
- $('#new-exam-exam-portion-attachment').html('<%= render_js_partial("form") %>').slide()
2
- $('#new-exam-exam-portion-attachment-link').hide();
3
- $('.remote-form').enableValidations();
@@ -1,48 +0,0 @@
1
- $('#new-exam-exam-portion').slide();
2
- $('#new-exam-exam-portion-link').show();
3
- showNotice("<%= render_flash %>");
4
-
5
- $('#exam-exam-portions-index tbody').append('<%= render_js_partial("gaku/exams/exam_portions/exam_portion", {exam_portion: @exam_portion}) %>');
6
-
7
- $('.exam-exam-portions-count').html("<%= print_count(@count+1, t_exam_portion_list) %>");
8
-
9
- <% if @exam.use_weighting? %>
10
-
11
- //if no portion added yet
12
- if($('.exam-portions-weight thead tr').length == 0){
13
- $('.exam-portions-weight thead').append('<tr></tr>');
14
- $('.exam-portions-weight tbody').append('<tr></tr>');
15
- }
16
-
17
- $('.exam-portions-weight thead tr').append('<th class="btn-warning" data-id=<%= @exam.exam_portions.last.id%>> <%= @exam.exam_portions.last.name+ " " + t("exam.weight") %> </th>');
18
- $('.exam-portions-weight tbody tr').append('<%= render_js_partial("gaku/exams/exam_portions/exam_portion_weight_td", {portion: @exam.exam_portions.last}) %>');
19
-
20
- weights = ('<%= @exam.exam_portions.pluck(:weight) %>');
21
- weights = weights.slice(1, -1).split(',');
22
-
23
- total = 0;
24
- for (var i = 0; i < weights.length; i++) {
25
- total += parseFloat(weights[i]);
26
- }
27
-
28
- $('.exam-portions-weight tbody form').each(function(i, form){
29
- $(form).find('input.exam-portion-weight').val(parseFloat(weights[i]))
30
- })
31
-
32
- $('#exam-exam-portions-index tbody tr').each(function(i, tr){
33
- tdWeight = $(tr).find('td')[3]
34
- $(tdWeight).text(weights[i])
35
- })
36
-
37
- $('#weight-total').text(total);
38
- <% end %>
39
-
40
-
41
-
42
- error = '<%= @exam_portion.custom_errors %>'
43
-
44
- if(error){
45
- $('.exam-portion-error').html('<%= render_js_partial("gaku/exams/exam_portions/custom_exam_portion_error", {error: @exam_portion.custom_errors}) %>')
46
- }else{
47
- $('.exam-portion-error').html('');
48
- }
@@ -1,8 +0,0 @@
1
- <% if @exam.destroyed? %>
2
- window.location.href = '/exams'
3
- <% else %>
4
- $('.exam-exam-portions-count').html("<%= print_count(@count-1, t_exam_portion_list) %>");
5
- $('[data-id=<%= @exam_portion.id %>]').remove();
6
- $('#weight-total').text('<%= @exam.total_weight %>');
7
- showNotice("<%= render_flash %>");
8
- <% end %>
@@ -1,3 +0,0 @@
1
- $('#modal-dialogs').html('<%= render_js_partial("modal", {exam_portion: @exam_portion}) %>');
2
- $('#edit-exam-exam-portion-modal').modal('show');
3
- $('.remote-form').enableValidations();
@@ -1,3 +0,0 @@
1
- $('#new-exam-exam-portion').html('<%= render_js_partial("form") %>').slide();
2
- $('#new-exam-exam-portion-link').hide();
3
- $('.remote-form').enableValidations();
@@ -1,8 +0,0 @@
1
- = content_for :show_header do
2
- h4 = t(:'exam_portion.show')
3
-
4
- = well_div do
5
- = render 'gaku/exams/exam_portions/show_table'
6
-
7
- = well_div do
8
- = render 'gaku/exams/exam_portions/attachments/attachments'
@@ -1,27 +0,0 @@
1
- $('tr#exam_portion_<%= @exam_portion.id %>').html('<%= render_js_partial("gaku/exams/exam_portions/exam_portion_unit", {exam_portion: @exam_portion}) %>');
2
- $("#edit-exam-exam-portion-modal").modal('hide');
3
- // $('input#<%= @exam_portion.id %>.exam-portion-weight').val('<%= @exam_portion.weight %>')
4
- // showNotice("<%= render_flash %>");
5
-
6
- $('#weight-total').text(<%= @exam.total_weight %>);
7
-
8
-
9
- weights = ('<%= @exam.exam_portions.pluck(:weight) %>')
10
- weights = weights.slice(1, -1).split(',')
11
-
12
- $('.exam-portions-weight tbody form').each(function(i, form){
13
- $(form).find('input.exam-portion-weight').val(parseFloat(weights[i]))
14
- })
15
-
16
- $('#exam-exam-portions-index tbody tr').each(function(i, tr){
17
- tdWeight = $(tr).find('td')[3]
18
- $(tdWeight).text(weights[i])
19
- })
20
-
21
- error = '<%= @exam_portion.custom_errors %>'
22
-
23
- if(error){
24
- $('.exam-portion-error').html('<%= render_js_partial("gaku/exams/exam_portions/custom_exam_portion_error", {error: @exam_portion.custom_errors}) %>')
25
- }else{
26
- $('.exam-portion-error').html('');
27
- }
@@ -1,34 +0,0 @@
1
- .grading-container
2
-
3
- javascript:
4
- var examsForGrade = '#{@exams.to_json(include: {exam_portions: {include: :exam_portion_scores}}, root: false).to_s.html_safe}'
5
- var course = '#{@course.to_json(root: false).to_s.html_safe}'
6
- var student_total_scores = '#{@student_total_scores.to_json().to_s.html_safe}'
7
- var exam_averages = '#{@exam_averages.to_json(root: false).to_s.html_safe}'
8
- var deviation = '#{@deviation.to_json(root: false).to_s.html_safe}'
9
- var students = '#{@students.to_json(root: false).to_s.html_safe}'
10
- var grades = '#{@grades.to_json(root: false).to_s.html_safe}'
11
- var ranks = '#{@ranks.to_json(root: false).to_s.html_safe}'
12
- var attendances = '#{@student_portion_attendance.to_json(root: false).to_s.html_safe}'
13
- var path_to_exam = '#{@path_to_exam.to_json.to_s.html_safe}'
14
- var completion = '#{@completion.to_json.to_s.html_safe}'
15
- coffee:
16
- $(document).ready ->
17
- router = new GAKUEngine.Routers.ExamsRouter
18
- exams: $.parseJSON(examsForGrade)
19
- course: $.parseJSON(course)
20
- student_total_scores: $.parseJSON(student_total_scores)
21
- exam_averages: $.parseJSON(exam_averages)
22
- deviation: $.parseJSON(deviation)
23
- students: $.parseJSON(students)
24
- grades: $.parseJSON(grades)
25
- ranks: $.parseJSON(ranks)
26
- attendances: $.parseJSON(attendances)
27
- path_to_exam: $.parseJSON(path_to_exam)
28
- completion: $.parseJSON(completion)
29
-
30
- Backbone.history.start()
31
-
32
- tableSizeFix = ->
33
- $('.exam_grid').tablefix({width: 800, height: 800, fixRows: 10, fixCols: 10})
34
- #tableSizeFix()
@@ -1,21 +0,0 @@
1
- = content_for :index_header do
2
- .pull-left
3
- = count_div 'exams-count' do
4
- = print_count @count, t_exam_list
5
- .pull-right
6
- = ajax_link_to_new t(:'exam.add'), [:new, :exam], id: 'new-exam-link'
7
-
8
- = content_for :new_form do
9
- #new-exam.hide
10
- /= render 'form'
11
-
12
- = table_for 'exams-index' do
13
- thead
14
- tr
15
- = th t(:'exam.name')
16
- = th t(:'exam.adjustments')
17
- = th t(:'exam.weight')
18
- = th t(:'exam.use_weighting')
19
- = th_actions 3
20
- tbody
21
- = render partial: 'exam', as: :exam, collection: @exams
@@ -1,3 +0,0 @@
1
- $('#new-exam').html('<%= render_js_partial("form") %>').slide();
2
- $('#new-exam-link').hide();
3
- $('.remote-form').enableValidations();
@@ -1,33 +0,0 @@
1
- = content_for :show_header do
2
- h3 = t(:'exam.show')
3
-
4
- = well_div do
5
- = render 'show_table', exam: @exam
6
-
7
- = well_div do
8
- #new-exam-exam-portion.hide style='margin-bottom:20px'
9
-
10
- .pull-left
11
- = count_div 'exam-exam-portions-count' do
12
- = print_count(@exam.exam_portions.count, t_exam_portion_list)
13
- .pull-right
14
- = ajax_link_to_new t(:'exam.add_portion'), [:new, @exam, :exam_portion], id: 'new-exam-exam-portion-link'
15
-
16
- = hr
17
-
18
- #exam-exam-portions
19
- = render 'gaku/exams/exam_portions/exam_portions'
20
-
21
- - if @exam.use_weighting
22
- .weight-check-widget
23
- = render 'weight_check_widget', exam: @exam
24
-
25
- = well_div do
26
- #exam-notes
27
- = render partial: 'gaku/notes/notes'
28
-
29
- = well_div do
30
- .span6
31
- = link_to_edit_with_text [:edit,@exam], remote: true
32
- .span6
33
- = link_to_back exams_path
@@ -1,5 +0,0 @@
1
-
2
- $('#edit-exam-modal').modal('hide');
3
- $('table#exams-index tbody').html('<%= render_js_partial("exam", {exam: @exam}) %>');
4
- $('#exam-show').html('<%= escape_javascript(render partial: "gaku/exams/show_table", formats: [:html], handlers: [:erb, :slim], exam: @exam) %>');
5
- showNotice("<%= render_flash %>");
@@ -1,9 +0,0 @@
1
- = table_for 'extracurricular-activities-index' do
2
- thead
3
- tr
4
- = th t(:'extracurricular_activity.name')
5
- = th_actions 3
6
- tbody
7
- = render partial: 'extracurricular_activity', collection: @extracurricular_activities, as: 'extracurricular_activity'
8
-
9
- = paginate @extracurricular_activities, remote: true