Sha256: ef9c096452c5ed53f0714b2808cc0fb84b2b87b9b5fa0dc7b83228f0211108f6

Contents?: true

Size: 1.38 KB

Versions: 134

Compression:

Stored size: 1.38 KB

Contents

= content_for(:actions) do
  = link_to t("new_record.link_title"), new_pd_bag_type_path, class: "button"

= within_admin_layout do
  table
    thead
      tr
        th
        th Manufacturer
        th 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
            = link_to "Edit", edit_pd_bag_type_path(bt.id), id: "edit-bag-type-#{bt.id}"
            = pipe_separator
            = link_to "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

134 entries across 134 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc6 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.0.pre.beta4 app/views/renalware/pd/bag_types/index.html.slim