Sha256: bd63cd823ed47125f4f413380c7ecda1dc00687dd32e0adcfc85d39dae39c428

Contents?: true

Size: 1.89 KB

Versions: 50

Compression:

Stored size: 1.89 KB

Contents

= link_to(patient_pd_mdm_path(patient), class: "button with-icon secondary") do
  i.fa.fa-group
  = t(".mdm")
= 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"),
                      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

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.44 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.43 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.42 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.41 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.40 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.39 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.38 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.37 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.36 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.35 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.34 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.33 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.32 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.31 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.30 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.28 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.27 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.26 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.25 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.24 app/views/renalware/pd/dashboards/show/_page_actions.html.slim