Sha256: 757a48a5b77b147e1c206662dd752c75e2b00d00baa58f4d13d5dc03aed94a68

Contents?: true

Size: 1.25 KB

Versions: 16

Compression:

Stored size: 1.25 KB

Contents

= table_for 'semester-attendances' do
  thead
    tr
      = th t('student.singular')
      = th 'Reviews'

      - @semesters.each do |semester|
        th.btn-inverse colspan="2" = semester
    tr
      th.btn-inverse
      th.btn-inverse
      - @semesters.count.times do |i|
         = th t('semester_attendance.presence')
         = th t('semester_attendance.absence')
  tbody
    - @students.each do |student|
      tr
        td = student
        td
          = link_to t('student_review.review'), class_group_student_reviews_path(@class_group, student_id: student.id), class: 'btn btn-primary form-control class-group-student-review-link',remote: true
        - @semesters.each do |semester|
          td
            = form_for([@class_group, @semester_attendance_results[student.id][semester.id]], remote: true) do |f|
              = f.number_field :days_present, class: 'form-control update-semester-attendance', id: "semester-#{semester.id}-student-#{student.id}-days-present"
          td
            = form_for([@class_group, @semester_attendance_results[student.id][semester.id]], remote: true) do |f|
              = f.number_field :days_absent, class: 'form-control update-semester-attendance', id: "semester-#{semester.id}-student-#{student.id}-days-absent"

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_frontend-0.3.0 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.3.0.pre.4 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.3.0.pre.3 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.3.0.pre.2 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.3.0.pre.1 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.3.0.pre.0 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku-0.2.4 frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.2.4 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku-0.2.3 frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.2.3 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku-0.2.2 frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.2.2 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku-0.2.1 frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.2.1 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku-0.2.0 frontend/app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim
gaku_frontend-0.2.0 app/views/gaku/class_groups/semester_attendances/_semester_attendances.html.slim