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