Sha256: 854313b7462b097d09b33901577c4d4e54d8efea0c2505ee6776baaf976b4b90

Contents?: true

Size: 1.43 KB

Versions: 151

Compression:

Stored size: 1.43 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"
          span= " or "
          = link_to "cancel", patient_clinical_summary_path(patient)

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

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

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.146 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.145 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.144 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.143 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.142 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.141 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.140 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.139 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.138 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.137 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.136 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.135 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.134 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.133 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.132 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.131 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.130 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.129 app/views/renalware/renal/profiles/edit.html.slim
renalware-core-2.0.128 app/views/renalware/renal/profiles/edit.html.slim