.columns.medium-12
  article
    header
      h2 Clinic Visits
      .supplemental
        span= "#{mdm.clinic_visits.length} of #{mdm.patient.summary.clinic_visits_count}"
        span.noprint
          = link_to "View All",
                      patient_clinic_visits_path(mdm.patient),
                      class: "button secondary"

    = render "renalware/clinics/clinic_visits/table",
            clinic_visits: mdm.clinic_visits,
            patient: mdm.patient

.columns.medium-12
  article
    header
      h2 Clinic Visits
      .supplemental
        span= "#{mdm.clinic_visits.length} of #{mdm.patient.summary.clinic_visits_count}"
        span.noprint
          = link_to "View All",
                      patient_clinic_visits_path(mdm.patient),
                      class: "button secondary"
          = link_to new_patient_clinic_visit_path(mdm.patient),
                    class: "button",
                    target: "_blank" do
              i.fa.fa-external-link-square-alt
              | Add

    = render "renalware/clinics/clinic_visits/table",
            clinic_visits: mdm.clinic_visits,
            patient: mdm.patient

Add button to create new clinic visit from MDM
Add button to create new clinic visit from MDM

In the clinic visits section of any MDM, put an Add button next to View All that will open the ‘new clinic visit page’ in a new tab

airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core