add picture to user

This commit is contained in:
2022-12-24 15:07:25 +02:00
parent 3c3882e6b3
commit e593b181ff
7 changed files with 63 additions and 53 deletions

View File

@ -1,17 +1,16 @@
.flex.justify-center
.flex.flex-col
%p
%b Name:
= @member.name
%p
%b Bio:
= @member.bio
%p
%b Public:
= @member.public
.grid.grid-cols-2.m-20.gap-10
%div
%b Name:
= @member.name
%div
%b Public:
= @member.public
%div.overflow-hidden.items-align-right
= image_tag @member.picture, class: "object-contain h-80"
%div
%div= @member.bio
= link_to 'Edit', edit_member_path(@member)
= link_to 'Back', members_path
= form_tag( destroy_member_session_path , {method: :delete } ) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
Sign out
= link_to 'Edit', edit_member_path(@member)
= form_tag( destroy_member_session_path , {method: :delete } ) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
Sign out