Sha256: b4b13cc325aacea73a71635b60b399343434d938f01ff0e0053abbaf0e3621f4

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

article
  header
    h2 GP
    - if patient.primary_care_physician.present?
      = link_to "Remove",
                patient_primary_care_physician_path(patient, patient.primary_care_physician),
                class: "button button-danger remove-gp",
                data: { remote: true,
                        method: :delete,
                        confirm: "Are you sure you want to remove the patient's GP and practice?" }

    = link_to "Change",
              edit_patient_primary_care_physician_path(patient),
              class: "button change-gp",
              data: { "reveal-id" => "change-gp-modal", "reveal-ajax" => "true" }

  dl.dl-horizontal
    dt(title=patient.primary_care_physician&.code) GP:
    - if patient.primary_care_physician.present?
      dd= patient.primary_care_physician
    - else
      dd None

    dt(title=patient.practice&.code) Practice:
    - if patient.practice
      dd= patient.practice.name
      dt Address:
      dd= Renalware::AddressPresenter::Block.new(patient.practice.address).to_html
      dt Tel:
      dd= patient.practice.telephone
      dt Email:
      dd= patient.practice.email
    - else
      dd None

/ This is where the Find GP modal will be inserted in an Ajax call
#change-gp-modal.reveal-modal.medium(data-reveal)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.148 app/views/renalware/patients/patients/show/_primary_care_physician.html.slim
renalware-core-2.0.147 app/views/renalware/patients/patients/show/_primary_care_physician.html.slim