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.124 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.123 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.121 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.120 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.119 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.118 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.117 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.116 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.115 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.113 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.112 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.111 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.110 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.109 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.108 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.106 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.105 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.104 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.103 app/views/renalware/pd/bag_types/index.html.slim
renalware-core-2.0.102 app/views/renalware/pd/bag_types/index.html.slim