Sha256: 85ee513c540667fb13cdf7ac6ea9038e8b2f7ca7a17c2171e24ba311590c9dd8

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

= content_for(:actions) do
  = link_to t("btn.add"), new_pd_bag_type_path, class: "button"

= within_new_admin_layout do
  table
    thead
      tr
        th
        th Manufacturer
        th= t("thead.description")
        th Glucose (g/l)
        th Glucose Strength
        th Amino acid
        th Icodextrin
        th Low GDP
        th Low Na
        th Sodium (mmole/l)
        th Lactate (mmole/l)
        th Bicarbonate (mmole/l)
        th Calcium (mmole/l)
        th Magnesium (mmole/l)

    tbody
      - bag_types.each do |bt|
        tr
          td.actions
            = link_to t("btn.edit"), edit_pd_bag_type_path(bt.id), id: "edit-bag-type-#{bt.id}"
            = link_to t("btn.delete"),
                      pd_bag_type_path(bt.id),
                      method: :delete,
                      id: "delete-bag-type-#{bt.id}",
                      data: { confirm: I18n.t("prompts.confirm_delete") }
            td= bt.manufacturer
            td= bt.description
            td= bt.glucose_content
            td= bt.glucose_strength&.text
            td= yes_no(bt.amino_acid)
            td= yes_no(bt.icodextrin)
            td= yes_no(bt.low_glucose_degradation)
            td= yes_no(bt.low_sodium)
            td= bt.sodium_content
            td= bt.lactate_content
            td= bt.bicarbonate_content
            td= bt.calcium_content
            td= bt.magnesium_content

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.1.0 app/views/renalware/pd/bag_types/index.html.slim