Sha256: 508d970b1f7e206201cb0e3e89148a5c4e2865e7ae69d0d3c3ce1df5c32f7d92

Contents?: true

Size: 1.47 KB

Versions: 42

Compression:

Stored size: 1.47 KB

Contents

= content_for(:tabs) do
  = render "renalware/letters/shared/electronic_cc_type_tabs", active: :sent

= content_for(:filters) do
  = render search_form

= within_admin_layout(title: "Electronic CCs") do

  table.letters.electronic-ccs.sent.has-togglable-rows
    thead
      tr
        th.col-width-date Sent at
        th Recipient
        th.col-width-date-time Read at
        th.col-width-large Patient
        th.col-width-nhs-no NHS no.
        th.col-width-reference-no Hosp no.
        th Description
        th
    tbody
      - receipts.each do |receipt|
        - letter = Renalware::Letters::LetterPresenter.new(receipt.letter)
        - patient = letter.patient
        tr
          td= l(letter.issued_on)
          td.col-width-medium-with-ellipsis= receipt.recipient
          td= l(receipt.read_at)
          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" }
            = 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=6)
            .quick-preview
              = simple_format letter.body
          td

  = paginate receipts

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.166 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.165 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.164 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.163 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.162 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.161 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.160 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.159 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.158 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.157 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.156 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.155 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.153 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.152 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.151 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.149 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.148 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.147 app/views/renalware/letters/electronic_receipts/sent.html.slim
renalware-core-2.0.146 app/views/renalware/letters/electronic_receipts/sent.html.slim