basic integration of entities to profile

This commit is contained in:
2023-01-13 22:23:23 +02:00
parent 38f51a5de6
commit d869eab476
6 changed files with 24 additions and 17 deletions

View File

@ -10,8 +10,6 @@
= f.input :name
.field
= f.input :ha_id , collection: Entity.ha_entities
.field
= f.input :ha_type , collection: ["text" , "bool"]
.field
= f.input :member_id , collection: Member.all.collect{|m| [m.name , m.id ]}
.actions{class: button_classes}

View File

@ -16,8 +16,8 @@
%tr
%td= entity.name
%td= entity.ha_id
%td= entity.ha_type
%td= entity.member
%td= entity.type
%td= entity.member.name
%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?' }

View File

@ -9,9 +9,9 @@
= @entity.ha_id
%p
%b Type:
= @entity.ha_type
= @entity.type
%p
%b Type:
%b Value:
= @entity.value
%p
%b Member: