Sha256: fb77955f23e468c45b5a7d558aed0087d014492c7967d39b063aca26f8307d66

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

= within_patient_layout(title: "Cause of Death",
    breadcrumbs: breadcrumb_for("Clinical Profile", patient_clinical_profile_path(@patient))) do

  = simple_form_for @patient,
      url: patient_death_path(@patient),
      html: { autocomplete: "off" },
      wrapper: "horizontal_form" do |f|

    = f.input :died_on,
              as: :date_picker,
              label: "Date of Death",
              wrapper: :horizontal_datepicker

    = f.association :first_cause,
                    label: "Cause of Death (1)",
                    label_method: :description,
                    value_method: :id,
                    include_blank: "Select 1st cause of death",
                    wrapper: :horizontal_medium

    = f.association :second_cause,
                    label: "Cause of Death (2)",
                    label_method: :description,
                    value_method: :id,
                    include_blank: "Select 2nd cause of death",
                    wrapper: :horizontal_medium

    = f.input :death_notes,
              label: "Notes",
              as: :text, input_html: { rows: 5 },
              wrapper: :horizontal_large

    = f.button :submit
    span= " or "
    = link_to "cancel", patient_clinical_profile_path(@patient)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/deaths/edit.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/deaths/edit.html.slim