hubfeenix.fi/app/views/members/_form.html.haml

24 lines
545 B
Plaintext
Raw Normal View History

= simple_form_for @member do |f|
= f.error_notification
2022-12-20 16:05:26 +01:00
2022-12-24 14:07:25 +01:00
.grid.grid-cols-2.m-20.gap-10
2022-12-22 15:27:05 +01:00
.field
= f.label :name
= f.text_field :name
.field
= f.label :public
= f.check_box :public
2022-12-24 14:07:25 +01:00
.field
= f.label :picture
= f.file_field :picture
-if @member.picture
%div.overflow-hidden
.my-5 Currently
= image_tag @member.picture, class: "object-contain h-40"
.field
= f.label :Bio
= f.rich_text_area :bio
2022-12-24 14:07:25 +01:00
.flex.justify-center.actions
= f.submit 'Save'