Sha256: 1d1a481a5a97da1d12e596fd0ece735bf5ec7d8af77132c17485c148a6f9f8da

Contents?: true

Size: 1.25 KB

Versions: 166

Compression:

Stored size: 1.25 KB

Contents

- regime = current_regime
- pd_type = regime.pd_type&.to_s&.upcase

= article_tag "Current #{pd_type} Regime",
              class: "current-regime regime-type-#{pd_type.underscore}",
              data: { "regime-id" => regime.id } do

  .row
    .columns.medium-6
      dl.dl-horizontal.pd-regime-details.large
        dt Regime Start Date:
        dd=l regime.start_date
        dt Regime End Date:
        dd= default_for_blank_date(regime.end_date, "Pending")
        dt Treatment:
        dd= regime.treatment
        = render("renalware/pd/regimes/assistance_type", regime: regime) if regime.apd?
        dt Delivery frequency:
        dd= Renalware::PD::DeliveryIntervalPresenter.new(regime.delivery_interval).to_s
        dt On additional HD?:
        dd= yes_no(regime.add_hd)

      - if pd_type == "APD"
        = render "renalware/pd/regimes/glucose", regime: regime

    - if pd_type == "CAPD"
      .columns.medium-6.glucose
        = render "renalware/pd/regimes/glucose", regime: regime

    - if regime.type == "Renalware::PD::APDRegime"
      = render "renalware/pd/regimes/current_apd_regime", regime: regime

  .row
    .large-12.columns
      .padding-top-1
        h5= t(".bags_heading")
        = render "renalware/pd/regime_bags/regime_bags", regime: regime

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
renalware-core-2.0.40 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.39 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.38 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.37 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.36 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.35 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.34 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.33 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.32 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.31 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.30 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.28 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.27 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.26 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.25 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.24 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.23 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.22 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.21 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.20 app/views/renalware/pd/regimes/_current_regime.html.slim