Sha256: e9f6d94f1e98ee2e549bd33627113d8e75344774ce23417053d428fd1d5a7d8f

Contents?: true

Size: 1.14 KB

Versions: 168

Compression:

Stored size: 1.14 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
        .page-break

Version data entries

168 entries across 168 versions & 1 rubygems

Version Path
renalware-core-2.0.127 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.126 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.125 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.124 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.123 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.121 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.120 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.119 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.118 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.117 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.116 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.115 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.113 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.112 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.111 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.110 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.109 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.108 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.106 app/views/renalware/hd/diaries/show.pdf.slim
renalware-core-2.0.105 app/views/renalware/hd/diaries/show.pdf.slim