Sha256: 9ffadad8db7554afe2ab57c2a6027604fd417a40505d95b268f64d4afdc5153e

Contents?: true

Size: 734 Bytes

Versions: 6

Compression:

Stored size: 734 Bytes

Contents

.medications-filter
  = search_form_for search, url: patient_prescriptions_path(@patient) do |f|
    = hidden_field_tag :treatable_id, treatable.id
    = hidden_field_tag :treatable_type, treatable.class.to_s
    = hidden_field_tag :filter, 1

    = f.select(:drug_drug_types_id_eq,
                options_from_collection_for_select(drug_types,
                                                   "id",
                                                   "name",
                                                   search.drug_drug_types_id_eq),
                 include_blank: "All drug types")

    = f.button t("helpers.submit.filter"), class: "button secondary"
    '  or
    = link_to "reset", patient_prescriptions_path(@patient)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.153 app/views/renalware/medications/prescriptions/_filter_form.html.slim
renalware-core-2.0.152 app/views/renalware/medications/prescriptions/_filter_form.html.slim
renalware-core-2.0.151 app/views/renalware/medications/prescriptions/_filter_form.html.slim
renalware-core-2.0.149 app/views/renalware/medications/prescriptions/_filter_form.html.slim
renalware-core-2.0.148 app/views/renalware/medications/prescriptions/_filter_form.html.slim
renalware-core-2.0.147 app/views/renalware/medications/prescriptions/_filter_form.html.slim