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