Sha256: b14d134255635130bd773f6c4a85fc24071a9e7101a59c5acd4d59aacfa22084

Contents?: true

Size: 813 Bytes

Versions: 6

Compression:

Stored size: 813 Bytes

Contents

#guardians-modal
#student-guardians
  = index_header do
    #new-student-guardian.hide
    .pull-left
      = count_div 'student-guardians-count' do
        = print_count @student.guardians_count, t_guardian_list
    .pull-right
      = ajax_link_to_new t(:'guardian.add'), [:new, @student, :guardian], id: "new-student-guardian-link" if can_edit?

  = hr

  = index_body do
    = table_for "student-guardians-index" do
        thead
          tr
            = th t(:'surname')
            = th t(:'name')
            = th t(:'birth_date')
            = th t(:'guardian.relationship')
            - if can_edit?
              = th_actions 3
            - else
              = th_actions 1
        tbody
          = render partial: 'gaku/students/guardians/guardian', collection: @student.guardians, as: :guardian

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/views/gaku/students/guardians/_guardians.html.slim
gaku-0.0.3 core/app/views/gaku/students/guardians/_guardians.html.slim
gaku-0.0.2 core/app/views/gaku/students/guardians/_guardians.html.slim
gaku_core-0.0.2 app/views/gaku/students/guardians/_guardians.html.slim
gaku-0.0.1 core/app/views/gaku/students/guardians/_guardians.html.slim
gaku_core-0.0.1 app/views/gaku/students/guardians/_guardians.html.slim