Sha256: 8bf34eb3d9aa6eed4f4a2b0d167c2955d03506a15397b74f530de860b664d879

Contents?: true

Size: 1.88 KB

Versions: 3

Compression:

Stored size: 1.88 KB

Contents

=> link_to(patient_pd_mdm_path(patient), class: "button with-icon secondary") do
  i.fas.fa-users
  = t(".mdm")

a.button.dropdown.with-icon(href="#"
                  data-dropdown="pd-options"
                  aria-controls="pd-options"
                  aria-expanded="false")
  i.fas.fa-plus
  | Add
br

ul.f-dropdown#pd-options(data-dropdown-content aria-hidden="true")

  - patient_on_pd = patient.has_ever_been_on_pd?

  = dropdown_btn_item title: t(".add_pd_assessment"),
                      url: new_patient_pd_assessment_path(patient)

  = dropdown_btn_item title: t(".add_pd_training_session"),
                      url: new_patient_pd_training_session_path(patient)

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::CAPDRegime).new?,
                      title: t(".add_capd_regime"),
                      url: new_patient_pd_regime_path(patient, type: "PD::CAPDRegime")

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::APDRegime).new?,
                      title: t(".add_apd_regime"),
                      url: new_patient_pd_regime_path(patient, type: "PD::APDRegime")

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::PeritonitisEpisode).new?,
                      title: t(".add_peritonitis_episode"),
                      url: new_patient_pd_peritonitis_episode_path(patient)

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::ExitSiteInfection).new?,
                      title: t(".add_exit_site_infection"),
                      url: new_patient_pd_exit_site_infection_path(patient)

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::PETAdequacyResult).new?,
                      title: t(".add_pet_adequacy"),
                      url: new_patient_pd_pet_adequacy_result_path(patient)

- unless patient_on_pd
  = render "modality_missing_warning", message: t(".missing_modality_warning")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.149 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.148 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.147 app/views/renalware/pd/dashboards/show/_page_actions.html.slim