Sha256: d2a62737a5af465fdc2d8fa3ad40cbf79f2e0feb41c3bd1ffe2f49f5d08bec37

Contents?: true

Size: 1.64 KB

Versions: 115

Compression:

Stored size: 1.64 KB

Contents

.search-form.filters
  = simple_form_for query,
      as: :q,
      url: admissions_consults_path,
      method: :get do |f|
    .row
      .columns.medium-2.large-2
        = f.input :identity_match, label: "Hosp/NHS no or name"

      .columns.medium-2.large-2
        = f.input :consult_site_id_eq,
                  collection: Renalware::Admissions::ConsultSite.pluck(:name, :id),
                  label: "Site"
      .columns.medium-1.large-1
        = f.input :seen_by_id_eq,
                  include_blank: false,
                  collection: [["Anyone", nil], ["Me", current_user.id]],
                  label: "Seen by"
      .columns.medium-1.large-1
        = f.input :rrt_eq,
                  include_blank: true,
                  collection: [["Yes", true], ["No", false]],
                  label: "RRT"
      .columns.medium-1.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-1.large-1
        = f.input :ended_on_null,
                  include_blank: true,
                  collection: [["Yes", true], ["No", false]],
                  label: "Active"
      .columns.medium-2.large-2
        = f.input :patient_current_modality_description_id_eq,
                  collection: Renalware::Modalities::Description.pluck("name", "id"),
                  label: "Modality"
      .columns.medium-2.large-2.actions.end
        = f.submit "Filter", class: "button"
        span= " or "
        = link_to t("helpers.reset"), admissions_consults_path(reset: 1)

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.146 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.145 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.144 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.143 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.142 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.141 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.140 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.139 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.138 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.137 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.136 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.135 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.134 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.133 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.132 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.131 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.130 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.129 app/views/renalware/admissions/consults/_filters.html.slim
renalware-core-2.0.128 app/views/renalware/admissions/consults/_filters.html.slim