improving event
This commit is contained in:
@ -13,28 +13,33 @@
|
||||
.grid.grid-cols-2.mx-20
|
||||
.first
|
||||
- Profile.types.each do |kind|
|
||||
.grid.grid-cols-3
|
||||
.grid.grid-cols-4
|
||||
- if profile = @member.profile(kind)
|
||||
%div
|
||||
=profile.Kind
|
||||
exists with name
|
||||
=link_to profile.name , profile_path(profile) , class: "underline"
|
||||
exists
|
||||
= 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
|
||||
=profile.Kind
|
||||
|
||||
= 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
|
||||
New #{profile.Kind} Event
|
||||
-if event = profile.events.length >0
|
||||
%div
|
||||
=link_to profile.events.first.name , event_path(profile.events.first) , class: "underline"
|
||||
= 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
|
||||
-else
|
||||
No events
|
||||
-else
|
||||
%div Create new #{kind.capitalize} profile as
|
||||
%div Create new profile as
|
||||
= link_to new_profile_path(kind: kind) do
|
||||
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
||||
New
|
||||
= kind.capitalize
|
||||
%div Create profile first, then events
|
||||
|
||||
%div Create profile first
|
||||
%div No events, create profile first
|
||||
|
||||
.grid.grid-cols-6.gap-4.mt-10.mx-10
|
||||
-@member.entities.each do |entity|
|
||||
|
Reference in New Issue
Block a user