gaku_core 0.3.0.pre.0 → 0.3.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/gaku/courses.js.coffee +20 -0
  3. data/app/assets/javascripts/gaku/exams.js.coffee +23 -0
  4. data/app/assets/stylesheets/gaku/bootstrap_and_theme.css.scss +574 -0
  5. data/app/controllers/gaku/courses/exams/exam_portion_scores_controller.rb +23 -0
  6. data/app/controllers/gaku/courses/exams_controller.rb +291 -0
  7. data/app/controllers/gaku/exams_controller.rb +170 -0
  8. data/app/helpers/gaku/gaku_helper.rb +155 -0
  9. data/app/models/gaku/enrollment.rb +1 -1
  10. data/app/models/gaku/exam_portion.rb +9 -0
  11. data/app/models/gaku/semester_connector.rb +1 -1
  12. data/app/models/gaku/student.rb +4 -0
  13. data/app/views/gaku/admin/grading_methods/_form_fields.html.slim +7 -0
  14. data/app/views/gaku/courses/_form_fields.html.slim +5 -0
  15. data/app/views/gaku/courses/exams/exam_portion_scores/update.js.erb +5 -0
  16. data/app/views/gaku/courses/exams/grading/_calculations.html.slim +16 -0
  17. data/app/views/gaku/courses/exams/grading/_exam_portion_score_form.htmls.lim +0 -0
  18. data/app/views/gaku/courses/exams/grading/_exam_scores.html.slim +78 -0
  19. data/app/views/gaku/courses/exams/grading/_students.html.slim +12 -0
  20. data/app/views/gaku/courses/exams/grading.html.slim +38 -0
  21. data/app/views/gaku/layouts/gaku.html.slim +25 -0
  22. data/app/views/gaku/shared/menu/_global.html.erb +1 -1
  23. data/config/locales/bg.yml +421 -413
  24. data/config/locales/en.yml +53 -110
  25. data/config/locales/ja.yml +891 -883
  26. data/config/locales/pt-BR.yml +11 -3
  27. data/config/locales/zh-CN.yml +9 -1
  28. data/config/routes.rb +120 -5
  29. data/db/migrate/20160209100945_add_score_types_to_exam_portions.rb +6 -0
  30. data/db/migrate/20160209104713_add_fields_to_exam_portion_score.rb +6 -0
  31. data/lib/gaku/grading/single/percentage.rb +3 -3
  32. data/lib/gaku/grading/single/score.rb +3 -3
  33. data/lib/gaku/testing/factories/exam_portion_factory.rb +1 -1
  34. metadata +20 -2
@@ -1,6 +1,4 @@
1
1
  en:
2
- enroll: Enroll
3
- clear: Clear
4
2
  academic: Academic
5
3
  achievement:
6
4
  add: Add Achievement
@@ -51,10 +49,10 @@ en:
51
49
  zipcode: Postal Code
52
50
  admitted: Admitted On
53
51
  alert:
54
- already_added: '%{resource} are already added!'
55
- empty: '%{resource} is empty!'
52
+ already_added: "%{resource} are already added!"
53
+ empty: "%{resource} is empty!"
56
54
  not_selected: No %{resource} selected!
57
- and: ' and '
55
+ and: " and "
58
56
  are_you_sure: Are you sure?
59
57
  assignment:
60
58
  add: Add Assignment
@@ -163,7 +161,7 @@ en:
163
161
  class: Class
164
162
  class_group:
165
163
  add: Add Class Group
166
- already_enrolled: Class group already enrolled!
164
+ already_enrolled: Already enrolled to the class group!
167
165
  choose: Choose Class Group
168
166
  edit: Edit Class Group
169
167
  enroll: Enroll Class Group
@@ -180,8 +178,10 @@ en:
180
178
  singular: Class Group
181
179
  with_semester: With Semester
182
180
  without_semester: Without Semester
181
+ class_group_course_enrollment:
182
+ save: Save Course to Class Group
183
+ singular: Course
183
184
  class_group_enrollment:
184
- add: Enroll to class group
185
185
  count: Enrollments count
186
186
  create: Create Class Enrollment
187
187
  current: Current enrollment
@@ -223,7 +223,6 @@ en:
223
223
  new: New Contact
224
224
  plural: Contacts
225
225
  primary: Primary Contact
226
- primary_email: Primary Email
227
226
  save: Save Contact
228
227
  singular: Contact
229
228
  contact_type:
@@ -241,7 +240,7 @@ en:
241
240
  already_enrolled: Already enrolled to course!
242
241
  choose: Choose Course
243
242
  code: Course Code
244
- code_sample: '[EX: FALL2020]'
243
+ code_sample: "[EX: FALL2020]"
245
244
  combined_code: Combined Code
246
245
  count: Courses count
247
246
  edit: Edit Course
@@ -275,9 +274,9 @@ en:
275
274
  save: Save to Course Group
276
275
  date:
277
276
  formats:
278
- default: '%Y-%m-%d'
279
- long: '%Y %B %d'
280
- short: '%y-%m-%d'
277
+ default: "%Y-%m-%d"
278
+ long: "%Y %B %d"
279
+ short: "%y-%m-%d"
281
280
  placeholder: YYYY-MM-DD
282
281
  default: Default
283
282
  delete: Delete
@@ -388,12 +387,8 @@ en:
388
387
  empty: Empty
389
388
  enroll_to_class: Enroll to class
390
389
  enrollment:
391
- plural: Student enrollments
392
- singular: Student enrollment
393
- add: Enroll student
394
- list: Student enrollments list
395
- save: Save student enrollment
396
- class_group_overlapping: A student cannot belong to two Class Groups with overlapping semesters
390
+ plural: Enrollments
391
+ singular: Enrollment
397
392
  enrollment_status:
398
393
  active: Active
399
394
  add: Add Enrollment Status
@@ -426,7 +421,7 @@ en:
426
421
  not_locked: was not locked
427
422
  not_saved:
428
423
  one: '1 error prohibited this %{resource} from being saved:'
429
- other: '%{count} errors prohibited this %{resource} from being saved:'
424
+ other: "%{count} errors prohibited this %{resource} from being saved:"
430
425
  not_uploaded: Error when upload %{resource}!
431
426
  exam:
432
427
  add: Add Exam
@@ -460,16 +455,8 @@ en:
460
455
  use_weighting: Use Weighting
461
456
  view: View Exams
462
457
  weight: Weight
463
- exam_session:
464
- plural: Exam sessions
465
- singular: Exam session
466
- list: Exam session list
467
- add: Add exam session
468
- name: Name
469
- session_time: Session time
470
- session_start: Session start
471
- minutes: "%{time} minutes"
472
458
  exam_portion:
459
+ add_option: Add option
473
460
  adjustments: Adjustments
474
461
  attached_file_count: Attached file count
475
462
  count: Exam portions count
@@ -484,7 +471,14 @@ en:
484
471
  name: Portion name
485
472
  plural: Exam Portions
486
473
  problem_count: Problem count
474
+ remove_option: Remove option
487
475
  save: Save exam portion
476
+ score_selection_options: Score Selection Options
477
+ score_type:
478
+ plural: 'Score type '
479
+ score: Numercial
480
+ score_selection: Selection
481
+ score_text: Text
488
482
  show: Show Exam Portion
489
483
  singular: Exam Portion
490
484
  use_weighting: Use Weighting
@@ -514,28 +508,28 @@ en:
514
508
  save: Save
515
509
  show: Show Extracurricular Activity
516
510
  singular: Extracurricular Activity
517
- create: Create Extracurricular Activity Enrollment
518
- choose: Choose Extracurricular Activity
511
+ extracurricular_activity_enrollment:
512
+ list: Student list
519
513
  failure:
520
514
  enrolled: Failed to enroll!
521
515
  file: File
522
516
  flash:
523
517
  actions:
524
518
  create:
525
- notice: '%{resource_name} was successfully created!'
519
+ notice: "%{resource_name} was successfully created!"
526
520
  destroy:
527
- alert: '%{resource_name} could not be destroyed!'
528
- notice: '%{resource_name} was successfully destroyed!'
521
+ alert: "%{resource_name} could not be destroyed!"
522
+ notice: "%{resource_name} was successfully destroyed!"
529
523
  recovery:
530
- alert: '%{resource_name} could not be recovered!'
531
- notice: '%{resource_name} was successfully recovered!'
524
+ alert: "%{resource_name} could not be recovered!"
525
+ notice: "%{resource_name} was successfully recovered!"
532
526
  soft_delete:
533
- alert: '%{resource_name} could not be destroyed!'
534
- notice: '%{resource_name} was successfully destroyed!'
527
+ alert: "%{resource_name} could not be destroyed!"
528
+ notice: "%{resource_name} was successfully destroyed!"
535
529
  update:
536
- notice: '%{resource_name} was successfully updated!'
530
+ notice: "%{resource_name} was successfully updated!"
537
531
  update_master:
538
- notice: '%{resource_name} was successfully updated!'
532
+ notice: "%{resource_name} was successfully updated!"
539
533
  full_name: Full Name
540
534
  full_name_reading: Full Name Reading
541
535
  gaku_engine: GAKU Engine
@@ -564,28 +558,28 @@ en:
564
558
  weighting_portion: Weighting
565
559
  grading_method:
566
560
  add: Add Grading Method
567
- add_criteria: Add criteria
568
- choose: Choose grading type
561
+ add_argument: Add Argument
562
+ add_criteria: Add Criteria
563
+ arguments: Arguments
564
+ choose: Choose Grading Method
569
565
  criteria: Criteria
570
566
  curved: Curved
571
567
  description: Description
572
568
  edit: Edit Grading Method
573
569
  interval: Interval
574
570
  list: Grading Methods list
575
- grading_type: Grading type
571
+ method: Method
576
572
  name: Name
577
573
  ordinal: Ordinal
578
574
  pass_fail: Pass/Fail
579
575
  percentage: Percentage
580
576
  plural: Grading Methods
581
577
  ratio: Ratio
582
- remove_criteria: Remove criteria
578
+ remove_argument: Remove Argument
579
+ remove_criteria: Remove Criteria
583
580
  save: Save Grading Method
584
581
  score: Score
585
582
  singular: Grading Method
586
- grading_method_connector:
587
- add_set: Grading methods from grading method set added
588
- already: Grading methods are already added
589
583
  grading_method_set:
590
584
  add: Add Grading Method Set
591
585
  display_deviation: Display Deviation
@@ -626,30 +620,12 @@ en:
626
620
  id: ID
627
621
  import: Import
628
622
  import_format: Import Format
629
- import_file:
630
- singular: Import file
631
- pluralize: Import files
632
- list: Import files list
633
- add: Add import file
634
- save: Save import file
635
- importer_type: Importer type
636
- data_file: Data file
637
- choose: Choose importer type
638
- file_name: File name
639
- file_size: File size
640
- content_type: Content type
641
- importing: 'Importing for %{type} started!'
642
-
643
623
  is_graduated: Has Graduated
644
624
  language: Language
645
625
  languages:
646
626
  en: English
647
- ja: 日本語[Japanese]
627
+ ja: "日本語[Japanese]"
648
628
  manage: Manage
649
-
650
- admin:
651
- back: Back to Admin
652
- back_to_school: Back to School
653
629
  menu:
654
630
  admin:
655
631
  achievements: Achievements
@@ -676,9 +652,6 @@ en:
676
652
  grading_methods: Grading Methods
677
653
  grading_sets: Grading Sets
678
654
  grading_methods: Grading Methods
679
- importer:
680
- importer: Importer
681
- student: Student Importer
682
655
  preset:
683
656
  plural: Presets
684
657
  school_details: School Details
@@ -696,7 +669,6 @@ en:
696
669
  enrollment_status: Enrollment Statuses
697
670
  states: States
698
671
  types: Types & Methods
699
- student_review_categories: Student Review Categories
700
672
  users:
701
673
  roles: Roles
702
674
  users: Users
@@ -737,17 +709,15 @@ en:
737
709
  singular: Note
738
710
  title: Note Title
739
711
  notice:
740
- added: '%{resource} was successfully added!'
741
- created: '%{resource} was successfully created!'
742
- destroyed: '%{resource} was successfully destroyed!'
743
- enrolled: '%{resource} was successfully enrolled to %{to}!'
712
+ added: "%{resource} was successfully added!"
713
+ created: "%{resource} was successfully created!"
714
+ destroyed: "%{resource} was successfully destroyed!"
715
+ enrolled: "%{resource} was successfully enrolled to %{to}!"
744
716
  no_resource_assign_first: No %{resource}, assign one first
745
- recovered: '%{resource} was successfully recovered!'
746
- removed: '%{resource} was successfully removed!'
747
- updated: '%{resource} was successfully updated!'
748
- uploaded: '%{resource} was successfully uploaded!'
749
- picture_update: Picture are successfully updated!
750
- picture_remove: Picture are successfully destroyed!
717
+ recovered: "%{resource} was successfully recovered!"
718
+ removed: "%{resource} was successfully removed!"
719
+ updated: "%{resource} was successfully updated!"
720
+ uploaded: "%{resource} was successfully uploaded!"
751
721
  num_enrolled: Number Enrolled
752
722
  options: Options
753
723
  order: Order
@@ -781,7 +751,6 @@ en:
781
751
  singular: Grading
782
752
  list: Presets list
783
753
  locale: Locale
784
- time_format: Time format
785
754
  name: Name
786
755
  names_order: Names Order
787
756
  pagination: Pagination
@@ -831,7 +800,6 @@ en:
831
800
  list: Program Syllabuses list
832
801
  plural: Program Syllabuses
833
802
  remove: Remove Program Syllabus
834
- prompt: Please select
835
803
  required: required
836
804
  resource: Resource
837
805
  revert: Revert
@@ -842,9 +810,6 @@ en:
842
810
  name: Name
843
811
  save: Save Role
844
812
  singular: Role
845
- report:
846
- plural: Reports
847
- personal_information: Personal information
848
813
  save: Save
849
814
  schedule: Schedule
850
815
  school:
@@ -906,7 +871,6 @@ en:
906
871
  singular: Semester
907
872
  starting: Semester starting
908
873
  uniqueness: have this semester added
909
- already: Semester already added
910
874
  semester_class_group:
911
875
  choose: Choose Semester
912
876
  save: Save Semester
@@ -914,11 +878,6 @@ en:
914
878
  uniqueness: Semester already added to Class Group
915
879
  semester_course:
916
880
  uniqueness: Semester already added to Course
917
- semester_attendance:
918
- plural: Semester attendances
919
- absence: Absence
920
- presence: Presence
921
- attendances_and_reviews: Attendances and reviews
922
881
  sex: Sex
923
882
  sex_and_birth: Gender & Birth Date
924
883
  show: Show
@@ -970,7 +929,6 @@ en:
970
929
  save: Save State
971
930
  singular: State
972
931
  student:
973
- selection: Student Selection
974
932
  academic_information: Academic Information
975
933
  add: Add Student
976
934
  addresses: Student Addresses
@@ -1001,7 +959,6 @@ en:
1001
959
  scholarship_status: Scholarship Status
1002
960
  show: Show Students
1003
961
  singular: Student
1004
- already_enrolled: already enrolled!
1005
962
  student_achievement:
1006
963
  edit: Edit Student Achievement
1007
964
  index: Student Achievement Index
@@ -1013,19 +970,6 @@ en:
1013
970
  index: Student Specialty Index
1014
971
  save: Save Student Specialty
1015
972
  singular: Student Specialty
1016
- student_review:
1017
- edit_label: 'Edit %{student} review'
1018
- new_label: 'New %{student} review'
1019
- show_label: '%{student} review'
1020
- review: Review
1021
- content: Content
1022
- student_review_category:
1023
- plural: Student review categories
1024
- singular: Student review category
1025
- list: Student review categories list
1026
- new: New student review category
1027
- name: Student review category name
1028
- choose: Choose student review category
1029
973
  submit: Submit
1030
974
  success:
1031
975
  enrolled: Successfully enrolled!
@@ -1039,7 +983,7 @@ en:
1039
983
  import: Import Syllabuses
1040
984
  list: List Syllabuses
1041
985
  name: Course Name
1042
- name_sample: '[EX: Science A]'
986
+ name_sample: "[EX: Science A]"
1043
987
  new: New Syllabus
1044
988
  plural: Syllabuses
1045
989
  save: Save Syllabus
@@ -1069,7 +1013,6 @@ en:
1069
1013
  singular: Template
1070
1014
  title: Title
1071
1015
  undefined: Undefined
1072
- upload: Upload
1073
1016
  user:
1074
1017
  add: Add User
1075
1018
  edit: Edit User
@@ -1084,8 +1027,8 @@ en:
1084
1027
  username: Username
1085
1028
  views:
1086
1029
  pagination:
1087
- first: '« First'
1030
+ first: "« First"
1088
1031
  last: Last »
1089
1032
  next: Next ›
1090
- previous: '‹ Prev'
1091
- truncate: '...'
1033
+ previous: "‹ Prev"
1034
+ truncate: "..."