Sha256: 59af531d3e1555f4bffa5311b726f5c30dcd4883bbcfeb149579efb33bed9c67

Contents?: true

Size: 818 Bytes

Versions: 20

Compression:

Stored size: 818 Bytes

Contents

= content_for(:actions) do
  = link_to "Add",
          new_hospitals_unit_ward_path(unit),
          class: "button"

= within_admin_layout(title: "Wards", breadcrumbs: \
    breadcrumb_for(unit.name, hospitals_units_path)) do

  table.hospital-wards
    thead
      th.col-width-tiny
      th.col-width-medium Code
      th Name
    tbody
      - wards.each do |ward|
        tr
          td
            - if policy(ward).edit?
              = link_to "Edit", edit_hospitals_unit_ward_path(unit, ward)
            - if policy(ward).destroy?
              = pipe_separator
              = link_to "Delete",
                        hospitals_unit_ward_path(unit, ward),
                        method: :delete,
                        data: { confirm: "Are you sure?" }
          td= ward.code
          td= ward.name

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
renalware-core-2.0.46 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.45 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.44 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.43 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.42 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.41 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.40 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.39 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.38 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.37 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.36 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.35 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.34 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.33 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.32 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.31 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.30 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.28 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.27 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.26 app/views/renalware/hospitals/wards/index.html.slim