Sha256: 5971633dc91e2259f81f2aaf7a213f83ff03049f0ca567c2afa80dfd6bfcbec2

Contents?: true

Size: 1.42 KB

Versions: 18

Compression:

Stored size: 1.42 KB

Contents

= within_patient_layout(\
    title: "Edit",
    breadcrumbs: breadcrumb_for("Renal Profile & Comorbidity Data",
                 patient_renal_profile_path(patient))\
  ) do

  .row
    = render "renalware/shared/errors", model: profile

  .row
    .large-12.columns
      / This first form is a dummy one to hold address fields for the patient's current address.
      / If the user wants to overwrite or copy in the patient's current address, we use JS to
      / clone this hidden current address form and replace the actual address form fields
      / in _form.slim with this one.
      #hidden-current-address-form(style="display:none")
        = simple_form_for profile, url: patient_renal_profile_path(patient) do |f|
          = f.simple_fields_for :address_at_diagnosis_attributes, patient.current_address do |add|
            .form-content= render("renalware/addresses/form", a: add)

      = simple_form_for profile,
          url: patient_renal_profile_path(patient),
          method: :patch,
          html: { autocomplete: "off" },
          wrapper: "horizontal_form" do |f|

        .form-actions
          = submit_tag "Save", class: "button"
          '  or
          = link_to "cancel", patient_clinical_summary_path(patient)

        = render "form", f: f, patient: patient

        .form-actions
          = submit_tag "Save", class: "button"
          '  or
          = link_to "cancel", patient_clinical_summary_path(patient)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.166 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.165 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.164 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.163 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.162 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.161 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.160 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.159 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.158 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.157 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.156 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.155 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.153 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.152 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.151 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.149 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.148 app/views/renalware/renal/profiles/edit.html.slim