entity scaffold
This commit is contained in:
25
app/views/entities/index.html.haml
Normal file
25
app/views/entities/index.html.haml
Normal file
@ -0,0 +1,25 @@
|
||||
%h1 Listing entities
|
||||
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
%th Name
|
||||
%th Ha
|
||||
%th Type
|
||||
%th
|
||||
%th
|
||||
%th
|
||||
|
||||
%tbody
|
||||
- @entities.each do |entity|
|
||||
%tr
|
||||
%td= entity.name
|
||||
%td= entity.ha_id
|
||||
%td= entity.type
|
||||
%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
|
Reference in New Issue
Block a user