Sha256: 18f06c072ac42dc363f743246350c7c32808f64f091357a61c14095ffaf7ed7e

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

= content_for(:actions) do
  - if policy(Renalware::Medications::Prescription).new?
    = link_to t("btn.add"),
              new_patient_prescription_path(@patient),
              remote: true,
              class: "button"
  | 
  = link_to patient_prescriptions_path(@patient,
                                       treatable,
                                       format: :pdf),
            class: "button secondary with-icon",
            target: :blank do
    i.fas.fa-print
    | Print
  | 

  / link to open the modal
  = link_to new_patient_medications_home_delivery_event_path(patient, format: :html),
            class: "button secondary with-icon",
            data: { "reveal-id" => "print-home-delivery-drugs-modal", "reveal-ajax" => "true" } do
    i.fa.fa-print
    | Print home delivery drugs

  / modal placeholder
  #print-home-delivery-drugs-modal.reveal-modal.small(data-reveal
                                                      data-controller="home-delivery-modal")

= within_patient_layout(title: "Prescriptions") do
  = render "filter_form", search: current_search, drug_types: drug_types, treatable: treatable
  = render "index", local_assigns

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/medications/prescriptions/index.html.slim
renalware-core-2.1.0 app/views/renalware/medications/prescriptions/index.html.slim