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.23 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.22 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.21 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.20 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.18 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.17 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.16 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.15 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.14 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.13 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.12 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.11 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.9 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.8 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.7 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.5 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.4 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.3 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.2 app/views/renalware/pd/dashboards/show/_page_actions.html.slim
renalware-core-2.0.1 app/views/renalware/pd/dashboards/show/_page_actions.html.slim