64 lines
3.0 KiB
Plaintext
64 lines
3.0 KiB
Plaintext
%section.mx-20
|
|
.flex.justify-center
|
|
.px-4.py-4.md:py-10.lg:py-16.mx-5.md:mx-12.lg:mx-20.text-center
|
|
%h1.text-2xl.font-bold.tracking-tight.sm:text-4xl
|
|
Settings and profiles
|
|
%h4.text-xl.mt-4.md:text-2xl
|
|
View and edit your profiles, and change settings
|
|
.grid.grid-cols-1.mx-8.gap-8.md:grid-cols-2.mx-12.gap-12.lg:grid-cols-4.mx-16.gap-16
|
|
.flex.flex-col.justify-between
|
|
%h3.text-2xl.bg-gray-200.p-4.text-center Settings
|
|
.flex.justify-center.flex-col
|
|
= form_tag( destroy_member_session_path , {method: :delete } ) do
|
|
%button.m-4.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_member_registration_path do
|
|
%button.m-4.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
|
Change Password
|
|
= link_to members_edit_email_path do
|
|
%button.m-4.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400{type: :submit}
|
|
Change Email
|
|
.grid.grid-cols-3.gap-4.mt-10.mx-10
|
|
-@member.entities.each do |entity|
|
|
%div= entity.type
|
|
%div= entity.name
|
|
%div= entity.value
|
|
|
|
- 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.mt-3.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
Create Artist profile
|
|
.prose
|
|
Artists that 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.mt-3.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.mt-3.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
|
|
Create coop Member profile
|
|
.prose
|
|
Members of the coop may create profiles profiles which are always public and contain an image and text.
|
|
|
|
- @member.future_events.each do |event|
|
|
%div
|
|
= render "events/event_small" , event: event
|
|
=link_to event_path(event) do
|
|
%button.ml-10.mr-5.inline-block.rounded-lg.px-4.py-2.text-md.font-medium.border.border-gray-400
|
|
View
|
|
= link_to edit_event_path(event) do
|
|
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-2.text-md.font-medium.border.border-gray-400
|
|
Edit
|