Sha256: 6dbe3459b0d438e4f7a3279f13e44d10fea5970de46e5f88e0b65d1021e5539b

Contents?: true

Size: 884 Bytes

Versions: 16

Compression:

Stored size: 884 Bytes

Contents

// Compile a summary of filters applied. Leave out anything not set.
- filters = params.fetch(:q, {}).reject{ |key, value| value.blank? }

.filter-summary
  table
    tr
      th Filters
      - if filters.empty?
        td None
      - else
        - if filters[:term].present?
          th Query:
          td= filters[:term]
        - if filters[:on_hotlist].present?
          th On Hotlist:
          td= yes_no(filters[:on_hotlist] == "true")
        - if filters[:action].present?
          th Action:
          td=  Renalware::Renal::AKIAlertAction.find(filters[:action])&.to_s
        - if filters[:hospital_unit_id].present?
          th Site:
          td= Renalware::Hospitals::Unit.find_by(id: filters[:hospital_unit_id])
        - if filters[:hospital_ward_id].present?
          th Ward:
          td= Renalware::Hospitals::Ward.find_by(id: filters[:hospital_ward_id])

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
renalware-core-2.0.41 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.40 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.39 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.38 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.37 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.36 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.35 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.34 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.33 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.32 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.31 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.30 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.28 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.27 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.26 app/views/renalware/renal/aki_alerts/_filters.pdf.slim
renalware-core-2.0.25 app/views/renalware/renal/aki_alerts/_filters.pdf.slim