rearrgange profile buttons

This commit is contained in:
Torsten
2023-08-26 16:00:50 +03:00
parent 8333cc51df
commit cac691d121
2 changed files with 31 additions and 24 deletions

View File

@ -23,24 +23,31 @@
%div= entity.type
%div= entity.name
%div= entity.value
%div
- unless @member.artist_profile
If you are an artist at Hub Feenix, click
=link_to "here" , new_profile_path(kind: :artist) , class: "underline"
- unless @member.teacher_profile
If you teach at Hub Feenix, click
=link_to "here" , new_profile_path(kind: :teacher) , class: "underline"
- unless @member.member_profile
%div
%h3.text-2xl.bg-gray-200.p-4.text-center No Profile
%h2 Create new
= link_to new_profile_path(kind: :member) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Member profile
.prose
Member profiles are always public and contain an image and text.
- Profile.kinds.each do |kind|
- if profile = @member.profile(kind)
%div= render "#{kind}_profile" , profile: profile
%div
%h3.text-2xl.bg-gray-200.p-4.text-center Profiles
- unless @member.artist_profile
= link_to new_profile_path(kind: :artist) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Create Artist profile
.prose
Artists thats have a studio in Hub Feenix may create a profile that includes text and pictures.
- unless @member.teacher_profile
= link_to new_profile_path(kind: :teacher) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Create Teacher profile
.prose
Teachers, ie people who run courses or events at Hub Feenix, may create a profile with text and picture and a homepage.
Teachers may create Events that will be shown in the event list.
- unless @member.member_profile
= link_to new_profile_path(kind: :member) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Create Member profile
.prose
Members of the coop may create profiles profiles which are always public and contain an image and text.