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

31 lines
706 B
Plaintext
Raw Normal View History

2023-01-16 18:23:26 +01:00
.flex.justify-center
%h1.text-3xl Listing entities
.flex.justify-center.mt-10
2023-01-13 19:50:41 +01:00
2023-01-16 18:23:26 +01:00
%table.table-auto.border-separate
%thead
2023-01-13 19:50:41 +01:00
%tr
2023-01-16 18:23:26 +01:00
%th Name
%th Ha
%th Type
%th Member
%th
%th
%th
%tbody
- @entities.each do |entity|
%tr
%td.p-2= entity.name
%td.p-2= entity.ha_id
%td.p-2= entity.type
%td.p-2= entity.member.email
%td.p-2= link_to 'Show', entity
%td.p-2= link_to 'Edit', edit_entity_path(entity)
%td.p-2= link_to 'Destroy', entity, method: :delete, data: { confirm: 'Are you sure?' }
2023-01-13 19:50:41 +01:00
2023-01-16 18:23:26 +01:00
.flex.justify-center.mt-10
2023-01-13 19:50:41 +01:00
2023-01-16 18:23:26 +01:00
= link_to 'New Entity', new_entity_path