Sha256: 86bce6f2a9ebcf36a0732ebbdc399526458e55f0ddafd5c736d1cd3757b93b63

Contents?: true

Size: 1.48 KB

Versions: 5

Compression:

Stored size: 1.48 KB

Contents

= within_admin_layout(title: "Electronic CCs") do
  = render "renalware/letters/shared/electronic_cc_type_tabs"
  = render search_form

  table.letters.electronic-ccs.sent.has-togglable-rows
    thead
      tr
        th.col-width-date Date
        th.col-width-medium Author
        th.col-width-large Patient
        th.col-width-nhs-no NHS no.
        th.col-width-reference-no Hosp no.
        th Description
        th Recipient
        th Read?
        th

    tbody
      - receipts.each do |receipt|
        - letter = Renalware::Letters::LetterPresenter.new(receipt.letter)
        - patient = letter.patient
        tr
          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.col-width-medium-with-ellipsis= receipt.recipient
          td= yes_no(receipt.read?)
          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=7)
            .quick-preview
              = simple_format letter.body
          td

  = paginate receipts

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/sent.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/letters/electronic_receipts/sent.html.slim