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.147 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.146 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.145 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.144 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.143 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.142 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.141 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.140 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.139 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.138 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.137 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.136 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.135 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.134 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.133 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.132 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.131 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.130 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.129 app/views/renalware/hd/scheduling/diaries/show.pdf.slim
renalware-core-2.0.128 app/views/renalware/hd/scheduling/diaries/show.pdf.slim