Sha256: d010b2a575c3ee81f96fd9c25c4ee172ea762adf5a9d5e551dbdb854c775c710

Contents?: true

Size: 1.35 KB

Versions: 70

Compression:

Stored size: 1.35 KB

Contents

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

= within_admin_layout(title: "Hospital Units") do

  table.auto-layout
    thead
      tr
        th.col-width-small
        th.col-width-small Code
        th Name
        th Hospital Centre
        th.col-width-small Type
        th.col-width-small NRD Code
        th.col-width-small HD Site?
        th.col-width-tiny Stations
        th.col-width-largish
    tbody
      - hospital_units.each do |unit|
        tr
          td
            = link_to "Edit", edit_hospitals_unit_path(unit.id)
            = pipe_separator
            = link_to "Delete",
                      hospitals_unit_path(unit.id),
                      method: :delete,
                      data: { confirm: I18n.t("prompts.confirm_delete") }
          td= unit.unit_code
          td= unit.name
          td= unit.hospital_centre
          td= unit.unit_type.text
          td= unit.renal_registry_code
          td= yes_no unit.is_hd_site
          td= Renalware::HD::Station.where(hospital_unit_id: unit.id).count
          td.actions
            = link_to("HD Stations", hd_unit_stations_path(unit))
            = pipe_separator
            = link_to("HD Diaries", hd_unit_diaries_path(unit))
            = pipe_separator
            = link_to("Wards", hospitals_unit_wards_path(unit))

Version data entries

70 entries across 70 versions & 1 rubygems

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