fix profile generation
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
|
||||
= f.input :name
|
||||
= f.input :bio
|
||||
= f.input :kind, :as => :hidden
|
||||
= f.input :picture , as: :file , label: (@profile.picture.blank? ? "Add picture" : "Change picture (optional)")
|
||||
|
||||
.flex.justify-between.mt-4
|
||||
@ -10,4 +11,4 @@
|
||||
= f.submit 'Save'
|
||||
|
||||
%button.bg-cyan-200{class: button_classes}
|
||||
= link_to 'Cancel', profiles_path
|
||||
= link_to 'Cancel', member_path(current_member)
|
||||
|
@ -1,4 +1,7 @@
|
||||
.flex.justify-center
|
||||
.column
|
||||
.text-xl.m-4 Edit your profile profile
|
||||
.text-xl.m-4
|
||||
Edit your
|
||||
=@profile.Kind
|
||||
profile
|
||||
= render 'form'
|
||||
|
@ -1,4 +1,7 @@
|
||||
.flex.justify-center
|
||||
.column
|
||||
.text-xl.m-4 Create your profile profile
|
||||
.text-xl.m-4
|
||||
Create your
|
||||
=@profile.kind.capitalize
|
||||
profile
|
||||
= render 'form'
|
||||
|
@ -1,5 +1,10 @@
|
||||
.px-4.py-16.mx-auto.sm:max-w-xl.md:max-w-full.lg:max-w-screen-xl.md:px-24.lg:px-8.lg:py-20
|
||||
.flex.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm.lg:flex-row.sm:mx-auto
|
||||
.flex.justify-center
|
||||
.px-4.py-4.text-center
|
||||
%h1text-2xl.font-bold.tracking-tight.sm:text-4xl
|
||||
= @profile.Kind
|
||||
profile
|
||||
.flex.py-4.flex-col.max-w-screen-lg.overflow-hidden.bg-white.border.rounded.shadow-sm.lg:flex-row.sm:mx-auto
|
||||
.relative{:class => "lg:w-1/2"}
|
||||
-if @profile.picture_url
|
||||
= image_tag @profile.picture_url, class: "object-cover w-full lg:absolute h-80 lg:h-full"
|
||||
|
Reference in New Issue
Block a user