hubfeenix.fi/app/views/entities/index.html.haml

28 lines
525 B
Plaintext
Raw Normal View History

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
%td= entity.type
%td= entity.member.name
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