Sha256: 6928c3ccaea0ace31579f75acaff756de9c10e129b4e7a4688aa90fd6741c7c1

Contents?: true

Size: 1.3 KB

Versions: 114

Compression:

Stored size: 1.3 KB

Contents

table(class=table_class)
  thead
    tr
      th.col-width-small
      th.col-width-date Started on
      th.col-width-date Ended on
      th Treatment
      th.col-width-small= t("glucose_volume_low_strength", scope: "renalware.pd.regimes")
      th.col-width-small= t("glucose_volume_medium_strength", scope: "renalware.pd.regimes")
      th.col-width-small= t("glucose_volume_high_strength", scope: "renalware.pd.regimes")
      th.col-width-date Updated on

  tbody
    - regimes.each do |r|
      tr(data-regime-id=r.id)
        td
          / TODO: Use a policy
          - if r.current? && !current_user.has_role?(:read_only)
            = link_to "Update",
                      edit_patient_pd_regime_path(patient, r.id),
                      class: "update-pd-regime"
            = pipe_separator
          = link_to "View",
                    patient_pd_regime_path(patient, r.id),
                    class: "view-pd-regime"
        td= l r.start_date
        td= default_for_blank_date(r.end_date, "Pending")
        td= r.treatment
        td= "#{default_daily_glucose_average(r.glucose_volume_low_strength)} ml"
        td= "#{default_daily_glucose_average(r.glucose_volume_medium_strength)} ml"
        td= "#{default_daily_glucose_average(r.glucose_volume_high_strength)} ml"
        td= l(r.updated_at.to_date)

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
renalware-core-2.0.124 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.123 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.121 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.120 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.119 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.118 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.117 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.116 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.115 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.113 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.112 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.111 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.110 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.109 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.108 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.106 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.105 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.104 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.103 app/views/renalware/pd/_regimes.html.slim
renalware-core-2.0.102 app/views/renalware/pd/_regimes.html.slim