Sha256: 77cfbcc927ac0c4635959152568b60eaccd55a8358c346a74a489492fafbee7f

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

article.clinical-allergies
  header
    h2= t(".legend")
    / Link to launch the modal dialog
    = link_to t("btn.add"),
              "#",
              class: "button right",
              data: { "reveal-id" => "add-allergy-modal" }

  p.current-status
    | Current status: 
    i= patient.allergy_status.text

  table.natural-width
    thead
      tr
        th.col-width-large= t(".thead.description")
        th.col-width-date-time= t(".recorded_at")
        th.col-width-medium= t(".recorded_by")
        th.col-width-tiny
    tbody
      - delete_confirmation_msg = I18n.t("prompts.confirm_delete_with_model", model: "allergy")
      - patient.allergies.each do |allergy|
        tr data-allergy-id=allergy.id
          td= allergy.description
          td = l(allergy.recorded_at)
          td = allergy.created_by
          td.actions
            = link_to t(".delete"),
                      patient_clinical_allergy_path(patient_id: patient, id: allergy),
                      method: :delete,
                      data: { confirm: delete_confirmation_msg }

  = render "renalware/clinical/allergies/new",
           link_text: t("btn.add"),
           patient: patient

  = render "renalware/clinical/allergy_statuses/form", patient: patient

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/clinical/allergies/_list.html.slim
renalware-core-2.1.0 app/views/renalware/clinical/allergies/_list.html.slim