Sha256: 5a87ace7b553de3fbb0befa4f39693f568cccee3664e7da7b2e4b2b629d7a181

Contents?: true

Size: 1.79 KB

Versions: 18

Compression:

Stored size: 1.79 KB

Contents

= within_admin_layout(title: "Transplant Wait List Registrations") do
  ruby:
    filters = {
      active: "Active",
      suspended: "Suspended",
      active_and_suspended: "Active & Suspended",
      working_up: "Working Up",
      status_mismatch: "Status Mismatch"
    }

  h2.print-only= filters[path_params[:filter].to_sym]

  dl.sub-nav
    - filters.each do |key, label|
      - options = path_params.merge(filter: key).to_h.symbolize_keys
      - path = Renalware::Engine.routes.url_for(options.merge!(only_path: true))
      = sub_nav_item(label, path)

  table.report
    thead
      tr
        th.noprint
        th= sort_link([:renalware, q], :patient_family_name, "Patient")
        th Hosp No
        th= sort_link([:renalware, q], :patient_born_on, "Age")
        th= sort_link([:renalware, q], :patient_sex, "Sex")
        th Modal
        th= sort_link([:renalware, q], :uk_transplant_centre_code, "Site")
        th Status
        th UKT Status
        / Note patient_profile_esrf_on sorting not yet working because patient is not a
        / Renal::Patient so patient#profile does not exist. We may need to add a ransacker
        / in WaitListQuery
        th.col-width-date= sort_link([:renalware, q], :patient_profile_esrf_on, "ESRF Date")
        th.col-width-date= sort_link([:renalware, q], :entered_on, "Entry Date")
        th DOL
        th Bld Grp
        th.col-width-date= sort_link([:renalware, q], :crf_highest_value, "CRF high")
        th.col-width-date CRF high date
        th= sort_link([:renalware, q], :crf_latest_value, "CRF latest")
        th.col-width-date CRF latest date
        th Sens (CRF>60)
        th Prev Ops
        th Tx Type

    tbody
      - registrations.each do |registration|
        = render "registration", registration: registration

  = paginate registrations

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc10 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/transplants/wait_lists/show.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/transplants/wait_lists/show.html.slim