hubfeenix.fi/app/views/entities/_form.html.haml
2023-01-16 19:23:26 +02:00

12 lines
352 B
Plaintext

= simple_form_for @entity do |f|
= f.error_notification
= f.input :name
= f.input :ha_id , collection: Entity.ha_entities
= f.input :member_id , collection: Member.all.collect{|m| [m.email , m.id ]}
.flex.justify-between.mt-3
.actions{class: button_classes}
= f.submit 'Save'
= link_to 'Back', entities_path , class: "mt-3"