Sha256: 589a5bd678fc6f7d77066ed0dae53bdbeb5a44e42829d83d03527f16fa535615

Contents?: true

Size: 937 Bytes

Versions: 50

Compression:

Stored size: 937 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
      th Active
    tbody
      - wards.each do |ward|
        tr
          td
            - if policy(ward).edit?
              = link_to "Edit", edit_hospitals_unit_ward_path(unit, ward)
            / For now, no longer support deleting a 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
          td= yes_no(ward.active)

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
renalware-core-2.0.100 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.99 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.98 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.97 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.96 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.95 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.94 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.93 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.92 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.91 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.90 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.89 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.88 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.87 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.86 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.85 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.84 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.83 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.82 app/views/renalware/hospitals/wards/index.html.slim
renalware-core-2.0.81 app/views/renalware/hospitals/wards/index.html.slim