Sha256: 62792ae9626faef5ef8612b53251ac66362b5b1a351cc0e013d2a6adf0e7de4e

Contents?: true

Size: 1.58 KB

Versions: 30

Compression:

Stored size: 1.58 KB

Contents

tr(class=letter.state.dasherize)
  td.noprint
    - if letter.approved?
      / The Print link will:
      / - open a new tab with the PDF, ready to print
      / - display a modal on this page (ready for when the user returns here after
      /   printing) that asks if they want to mark the letters as printed or not.
      / See letters.js where it binds to .printing-pdf.
      / See also completed letters controller and the comments in
      / ./show.js.erb and and ./show.html.slim
      = link_to patient_letters_letter_print_path(letter),
                target: "_blank",
                class: "printing-pdf button secondary compact",
                data: { \
                  "modal-url" => new_patient_letters_letter_completed_path(letter.patient, letter) \
                } do
         i.fa.fa-print
         | Print
    |   
    = link_to "Toggle",
              "#quick-preview-#{letter.id}",
              data: { behaviour: "toggler" }
    = pipe_separator
    = link_to "View", patient_letters_letter_path(letter.patient, letter)

  td.col-width-medium-with-ellipsis= letter.type
  td.state
    span= letter.state_description
  td.full-name= default_patient_link(letter.patient)
  td= letter.patient.nhs_number
  td= letter.enclosures&.truncate(6)
  td= l letter.issued_on
  td= letter.author
  td= letter.typist
  td.col-width-medium-with-ellipsis= letter.main_recipient.address
  td.col-width-medium-with-ellipsis= letter.description
= content_tag(:tr, id: "quick-preview-#{letter.id}", style: "display: none")
  td
  td(colspan=10)
    .quick-preview
      = simple_format letter.body

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
renalware-core-2.0.32 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.31 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.30 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.28 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.27 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.26 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.25 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.24 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.23 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.22 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.21 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.20 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.18 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.17 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.16 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.15 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.14 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.13 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.12 app/views/renalware/letters/lists/_letter.html.slim
renalware-core-2.0.11 app/views/renalware/letters/lists/_letter.html.slim