Sha256: 761e9b015a0826cd47cb7ce258cc1d0954eee4d4de12ea732182dca9b98b77a4

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

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

= article_tag "Current #{pd_type} Regime",
              class: "current-regime",
              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)

        = 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

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/pd/regimes/_current_regime.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/pd/regimes/_current_regime.html.slim