Sha256: 59e534f3907ff55d0862f1383d75541a885dbf05920affe2f9907d52123319bc

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

ruby:
  # Since we use this partial in HD and PD dashboard but do not want to create a hard
  # dependency to the Clinical module from there, we load the data up at the view level here.
  # Not ideal but expedient.
  presenter = Renalware::Clinical::DryWeightsPresenter.new(patient: patient,
                                                           dry_weights: local_assigns[:dry_weights],
                                                           limit: local_assigns[:limit])

article.dry-weights.simple.simple-table
  header
    h2.title= defined?(limit) ? t(".recent.title") : t(".title")
    ul
      li= link_to t(".add"), new_patient_clinical_dry_weight_path(patient), class: "button"
      li= link_to t(".view_all"), patient_clinical_dry_weights_path(patient), class: "button"

  table.auto-layout
    thead
      th.col-width-date= t(".date")
      th.col-width-small= t(".weight")
      th= t(".assessor")
    tbody
      - presenter.dry_weights.each do |dry_weight|
        = render "renalware/clinical/dry_weights/row", dry_weight: dry_weight

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/clinical/dry_weights/_list.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/clinical/dry_weights/_list.html.slim