2023-01-22 10:36:35 +01:00
|
|
|
= render "profile_card" , profile: profile
|
|
|
|
|
|
|
|
.flex.justify-between.mt-4
|
|
|
|
= link_to edit_profile_path(profile) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
Edit
|
2023-01-22 10:49:49 +01:00
|
|
|
|
2023-01-22 10:36:35 +01:00
|
|
|
= form_tag( profile_path(profile.id) , {method: :delete } ) do
|
|
|
|
%button.bg-red-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
|
|
|
Delete Profile
|
|
|
|
|
2023-01-22 19:50:57 +01:00
|
|
|
.flex.flex-col.justify-center
|
2023-01-22 10:49:49 +01:00
|
|
|
=link_to profile_path(profile) do
|
2023-01-22 19:50:57 +01:00
|
|
|
.my-2.px-2.py-2.text-center.bg-gray-200
|
2023-01-22 10:49:49 +01:00
|
|
|
%h1.text-xl.font-bold.tracking-tight.sm:text-4xl
|
|
|
|
Your Events
|
|
|
|
-if event = profile.events.length >0
|
|
|
|
%div
|
|
|
|
Your last Event:
|
|
|
|
= profile.events.first.name
|
|
|
|
=link_to event_path(profile.events.first) do
|
|
|
|
%button.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
View
|
|
|
|
= link_to edit_event_path(profile.events.first) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
|
|
Edit
|
2023-01-22 10:36:35 +01:00
|
|
|
= link_to new_event_path(profile: profile.kind) do
|
|
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
2023-01-22 10:49:49 +01:00
|
|
|
New Event
|