Sha256: 265ce60b413461af7d2c50699f8ceb39a6f027800282fa5d20ae93ea81d5bd3b

Contents?: true

Size: 1.87 KB

Versions: 6

Compression:

Stored size: 1.87 KB

Contents

= link_to "View MDM", patient_pd_mdm_path(patient), class: "button secondary"
= blank_separator
= blank_separator
a.button.dropdown(href="#"
                  data-dropdown="pd-options"
                  aria-controls="pd-options"
                  aria-expanded="false")
  | 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"),
                      path: new_patient_pd_assessment_path(patient)

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

  = dropdown_btn_item enabled: patient_on_pd && policy(Renalware::PD::CAPDRegime).new?,
                      title: t(".add_capd_regime"),
                      path: 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"),
                      path: 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"),
                      path: 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"),
                      path: 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"),
                      path: new_patient_pd_pet_adequacy_result_path(patient)

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/pd/dashboards/show/_page_actions.html.slim