!!! 5 %html %head %title Vaccine Exemptions %meta{ charset: 'utf-8' } = wicked_pdf_stylesheet_link_tag 'pdf' %body .w-100.float-left %table.table %thead %tr.remove-top-border %th.caption.text-muted Student %th.caption.text-muted Grade %th.caption.text-muted{ style: 'width: 10%' } Vaccine %th.caption.text-muted Status %th.caption.text-muted Notes %tbody - students.each do |student| - medical = student.student_medical %tr %td.font-weight-bold.caption= student.full_name(:reverse) %td.font-weight-bold.caption= grade_labels[student.grade] %td %td.font-weight-bold.caption = medical.exempt.titleize unless medical.nil? || medical.not_exempt? %td - if medical.nil? || medical.not_exempt? - student.nursing_vaccine_records.each do |record| - next if record.not_exempt? %tr %td %td %td.caption= record.decorate.name %td.caption= record.exempt.titleize %td.caption= record.notes