!!! 5
%html
%head
%title Emergency Info
%meta{ charset: 'utf-8' }
= wicked_pdf_stylesheet_link_tag 'pdf'
%body
.w-100.float-left
%strong.d-block.subtitle Personal Information
.d-block.body-2= student.address
.d-block.body-2= student.address_ext
.d-block.body-2= "#{student.city} #{student.state} #{student.zip}"
.d-block.body-2= student.country&.name
.d-block.body-2= "Home Phone: #{student.formatted_home_phone}"
.d-block.body-2.mt-3.font-weight-bold= "Alert: #{student.alert_comments}"
.w-25.float-left.mt-3
%strong.d-block.subtitle Contact Information
.w-75.float-left.mt-3.text-muted.caption.text-right
%span.mr-1
%img{src: wicked_pdf_asset_base64('check.png'), height: "20", width: "20"}
%span.mr-5 Primary Parent
%span.mr-1
%img{src: wicked_pdf_asset_base64('plus.png'), height: "20", width: "20"}
%span.mr-5 Emergency Contact
%span.mr-1
%img{src: wicked_pdf_asset_base64('car.png'), height: "20", width: "20"}
%span Authorize Pickup
%table.table
%thead
%tr.remove-top-border
%th{ style: 'width: 12%'}
%th{ style: 'width: 12%'}
%th{ style: 'width: 12%'}
%th.caption.text-muted Name
%th.caption.text-muted Home
%th.caption.text-muted Work
%th.caption.text-muted Cell
%tr
%td.caption.text-muted.text-center Family 1
%td{ colspan: 6 }
- family_one_contacts.each do |contact|
%tr
%td.caption.text-center
- if contact.primary
%img{src: wicked_pdf_asset_base64('check.png'), height: "20", width: "20"}
%td.caption.text-center
- if contact.emergency
%img{src: wicked_pdf_asset_base64('plus.png'), height: "20", width: "20"}
%td.caption.text-center
- if contact.pickup
%img{src: wicked_pdf_asset_base64('car.png'), height: "20", width: "20"}
%td.caption= contact.full_name(:reverse)
%td.caption= contact.formatted_home_phone
%td.caption= contact.formatted_work_phone
%td.caption= contact.formatted_cell_phone
- if family_two_contacts.present?
%tr
%td.caption.text-muted.text-center Family 2
%td{ colspan: 6 }
- family_two_contacts.each do |contact|
%tr
%td.caption.text-center
- if contact.primary
%img{src: wicked_pdf_asset_base64('check.png'), height: "20", width: "20"}
%td.caption.text-center
- if contact.emergency
%img{src: wicked_pdf_asset_base64('plus.png'), height: "20", width: "20"}
%td.caption.text-center
- if contact.pickup
%img{src: wicked_pdf_asset_base64('car.png'), height: "20", width: "20"}
%td.caption= contact.full_name(:reverse)
%td.caption= contact.formatted_home_phone
%td.caption= contact.formatted_work_phone
%td.caption= contact.formatted_cell_phone
.w-100.float-left.mt-2
%strong.d-block.subtitle Medical Information
%table.table
- medical_props.each_slice(2) do |prop1, prop2|
%tr.remove-top-border
%td.caption.w-50
.d-block.text-muted.mb-2= prop1.last
= student.send(prop1.first)
%td.caption.w-50
- if prop2.present?
.d-block.text-muted.mb-2= prop2.last
= student.send(prop2.first)
.w-100.float-left.mt-2
%strong.d-block.subtitle Provider Information
%table.table{ style: 'border: none; height: 5px'}
%tbody
%tr.remove-top-border
%td.caption
.d-block.text-muted.mb-2 Physician Info
= student.formatted_physician_address
%td.caption
.d-block.text-muted.mb-2 Dentist Info
= student.formatted_dentist_address
%td.caption
.d-block.text-muted.mb-2 Insurance/Hospital Info
= student.formatted_insurance_info