2023-01-13 20:47:31 +01:00
|
|
|
= simple_form_for @entity do |f|
|
2023-01-13 19:50:41 +01:00
|
|
|
- if @entity.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%h2= "#{pluralize(@entity.errors.count, "error")} prohibited this entity from being saved:"
|
|
|
|
%ul
|
|
|
|
- @entity.errors.full_messages.each do |message|
|
|
|
|
%li= message
|
|
|
|
|
|
|
|
.field
|
2023-01-13 20:47:31 +01:00
|
|
|
= f.input :name
|
2023-01-13 19:50:41 +01:00
|
|
|
.field
|
2023-01-13 20:47:31 +01:00
|
|
|
= f.input :ha_id , collection: Entity.ha_entities
|
|
|
|
.field
|
|
|
|
= f.input :member_id , collection: Member.all.collect{|m| [m.name , m.id ]}
|
|
|
|
.actions{class: button_classes}
|
2023-01-13 19:50:41 +01:00
|
|
|
= f.submit 'Save'
|