Sha256: f7ae7fab6ced1edfc6b7097f0a800d2f31f165590f6345db88373035436e3409

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

- content_for(:head) do
  = wicked_pdf_stylesheet_link_tag "renalware/hd_diary_pdf"

.hd-diary-pdf
  h3= unit&.name
  h2= "HD Diary #{diary}"
  .diary
    .diary__grid
      - diary.each_diurnal_period do |diurnal_period|
        - day_columns_width_pct = (100 - 20) / diary.day_names.count
        table.diary__period*{ "data-period-code" => diurnal_period.code }
          thead
            tr
              th(colspan=8)
                h3= diurnal_period.code.upcase
            tr
              th.col-width-medium(style="width: 20%") Station
              - diary.day_names.each do |day|
                th.col-width-small(style="width: #{day_columns_width_pct}%")= day.capitalize

          tbody
            - diary.each_station do |station, index|
              tr
                th= "#{index}. #{station.name}"

                - diary.each_day(diurnal_period, station) do |slot, _day_of_week|
                  - with_format(:html) do
                    td
                      - if slot.patient.present?
                        = slot.patient.family_name
                        br
                        = slot.patient.given_name

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/hd/diaries/show.pdf.slim