Sha256: eb901fae316dae747f0776c94ed288f8a3636f85541c9c0a9f6d1d62220271df

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

.search-form.filters
  = simple_form_for query,
      as: :q,
      url: admissions_consults_path,
      method: :get do |f|
    .row
      .columns.medium-3.large-2
        = f.input :consult_site_id_eq,
                  collection: Renalware::Admissions::ConsultSite.pluck(:name, :id),
                  label: "Site"
      .columns.medium-2.large-1
        = f.input :requires_aki_nurse_eq,
                  collection: [["Yes", true], ["No", false]],
                  label: "AKI Nurse req."
      .columns.medium-2.large-1
        = f.input :seen_by_id_eq,
                  include_blank: false,
                  collection: [["Anyone", nil], ["Me", current_user.id]],
                  label: "Seen by"
      .columns.medium-2.large-1
        = f.input :aki_risk_eq,
                  include_blank: true,
                  collection: Renalware::Admissions::Consult.aki_risk.values.map{ |value| [value.text, value] },
                  label: "AKI Risk"
      / .columns.medium-2.large-1
      /   = f.input :stopped_on_eq_nil,
      /             include_blank: false,
      /             collection: [["Yes", true], ["No", false]],
      /             label: "Active"
      .columns.medium-2.large-2.actions.end
        = f.submit "Filter", class: "button"
        span= " or "
        = link_to t("helpers.reset"), admissions_consults_path

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.5 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.4 app/views/renalware/admissions/consults/_filters.html.slim