Sha256: a81901769832fbbd5ad0ff0024194a8bbb6cd49f21c433d25bbfb16577e8eff1

Contents?: true

Size: 1.76 KB

Versions: 5

Compression:

Stored size: 1.76 KB

Contents

table.letters.electronic-ccs.has-togglable-rows
  thead
    tr
      th.col-width-date Date
      th.col-width-medium Author
      th.at-least.col-width-medium Patient
      th.col-width-nhs-no NHS no.
      th.col-width-reference-no Hosp no.
      th Description
      th.col-width-small

  tbody
    - receipts.each do |receipt|
      - letter = Renalware::Letters::LetterPresenter.new(receipt.letter)
      - patient = letter.patient

      tr(id=receipt.html_identifier)
        td= l(letter.issued_on)
        td= letter.author
        td= default_patient_link(patient)
        td= patient.nhs_number
        td= patient.hospital_identifiers
        td.col-width-medium-with-ellipsis= letter.description
        td.actions
          = link_to "Toggle", "##{receipt.html_preview_identifier}", data: { behaviour: "toggler" }
          = pipe_separator
          = link_to letter.view_label,
                    patient_letters_letter_path(letter.patient, letter, back_url: request.fullpath)

      = content_tag(:tr, id: receipt.html_preview_identifier, style: "display: none")
        td
        td(colspan=5)
          .quick-preview
            = simple_format letter.body

        td.nowrap
          - if policy(receipt).mark_as_read?
            ul.actions
              li= link_to "Keep as unread",
                          "##{receipt.html_preview_identifier}",
                          data: { behaviour: "toggler" },
                          class: "button secondary keep-as-unread"

              li= link_to(mark_as_read_letters_letter_electronic_receipt_path(letter, receipt),
                          class: "button mark-as-read",
                          method: :patch,
                          remote: true) do
                i.fa.fa-check
                | Mark as read

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc3 app/views/renalware/letters/electronic_receipts/_table.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/letters/electronic_receipts/_table.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/letters/electronic_receipts/_table.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/letters/electronic_receipts/_table.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/letters/electronic_receipts/_table.html.slim