= within_patient_layout(title: "Peritonitis Episode", **local_assigns) do = render "renalware/shared/errors", model: peritonitis_episode = simple_form_for [patient, peritonitis_episode], wrapper: :horizontal_form do |f| = render "renalware/pd/peritonitis_episodes/fields", local_assigns.merge!(f: f) = submit_tag "Save", class: "button" span= " or " = link_to "cancel", patient_pd_dashboard_path(patient)