Sha256: f10d6959a43095bed86d851dbd7ef4408e05fb4e57e4f591d96d7d60de5761a5

Contents?: true

Size: 1.31 KB

Versions: 26

Compression:

Stored size: 1.31 KB

Contents

ruby:
  filters = {
    active: "Today",
    suspended: "All"
  }

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

dl.sub-nav
  - Renalware::Renal::AKI_ALERT_FILTERS.each do |key|
    - options = path_params.merge(named_filter: key).to_h.symbolize_keys
    - path = Renalware::Engine.routes.url_for(options.merge!(only_path: true))
    = sub_nav_item(key.to_s.humanize, path)

.search-form.filters
  = simple_form_for form,
      as: :q,
      url: renal_filtered_aki_alerts_path,
      method: :get do |f|

    .row
      .columns.medium-2.large-3
        = f.input :term, label: "Hosp/NHS no or name"
      .columns.medium-1.large-1
        = f.input :on_hotlist,
                  collection: [["Yes",true],["No",false]]
      .columns.medium-2.large-2
        = f.input :action,
                  collection: Renalware::Renal::AKIAlertAction.pluck(:name, :id)
      .columns.medium-3.large-2
        = f.input :hospital_unit_id,
                  collection: Renalware::Hospitals::Unit.pluck(:name, :id)
      .columns.medium-2.large-2
        = f.input :hospital_ward_id,
                  collection: Renalware::Hospitals::Ward.pluck(:name, :id)
      .columns.medium-2.large-2.actions.end
        = f.submit "Filter", class: "button"
        span= " or "
        = link_to t("helpers.reset"), renal_filtered_aki_alerts_path

Version data entries

26 entries across 26 versions & 1 rubygems

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