2023-01-13 19:50:41 +01:00
|
|
|
%h1 Listing entities
|
|
|
|
|
|
|
|
%table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Ha
|
|
|
|
%th Type
|
2023-01-13 20:47:31 +01:00
|
|
|
%th Member
|
2023-01-13 19:50:41 +01:00
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- @entities.each do |entity|
|
|
|
|
%tr
|
|
|
|
%td= entity.name
|
|
|
|
%td= entity.ha_id
|
2023-01-13 20:47:31 +01:00
|
|
|
%td= entity.ha_type
|
|
|
|
%td= entity.member
|
2023-01-13 19:50:41 +01:00
|
|
|
%td= link_to 'Show', entity
|
|
|
|
%td= link_to 'Edit', edit_entity_path(entity)
|
|
|
|
%td= link_to 'Destroy', entity, method: :delete, data: { confirm: 'Are you sure?' }
|
|
|
|
|
|
|
|
%br
|
|
|
|
|
|
|
|
= link_to 'New Entity', new_entity_path
|