Sha256: 9832a98204ee6f66a94662338ae80e5ce71b301f3681b71916e273d2fc332d86

Contents?: true

Size: 1.37 KB

Versions: 28

Compression:

Stored size: 1.37 KB

Contents

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

= within_new_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.actions
            = link_to "Edit", edit_pd_bag_type_path(bt.id), id: "edit-bag-type-#{bt.id}"
            = 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

28 entries across 28 versions & 1 rubygems

Version Path
renalware-core-2.0.167 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.166 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.165 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.164 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.163 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.162 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.161 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.160 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.159 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.158 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.157 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.156 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.155 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.153 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.152 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.151 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.149 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.148 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.147 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.146 app/views/renalware/pd/bag_types/index.html.slim