!!! 5 %html %head %title Vaccine Record %meta{ charset: 'utf-8' } = wicked_pdf_stylesheet_link_tag 'pdf' %body .mt-2.w-50.float-left .d-block.title= student.full_name .d-block.body-2= "Grade: #{student.grade_level}" .d-block.body-2= "DOB: #{student.birth_date}" - unless (no_overall_exemption = student.vaccine_not_exempt? || student.student_medical.nil?) .mt-3.w-100.float-left .d-block.body-2= "Exemption on file: #{student.vaccine_exempt.titleize}" .w-100.float-left %table.table %thead %tr.remove-top-border %th.caption.text-muted Vaccination %th.caption.text-muted Required by %th.caption.text-muted Status %th.caption.text-muted Date %th.caption.text-muted Notes %tbody - vaccines.each do |vaccine| - record = student_vaccines[vaccine.vaccine_id] - next unless no_overall_exemption || record&.vaccine_date - next if vaccine.grade > student.grade && (record.nil? || record.missing_vaccination?) %tr %td.caption= vaccine.name %td.caption= grade_labels[vaccine.grade] %td.caption - if record.nil? || record.missing_vaccination? = 'Missing' - elsif record.not_exempt? && record.vaccine_date = 'Given' - else = record.exempt.titleize %td.caption = l(record.vaccine_date) if record&.vaccine_date %td.caption= record&.notes