diff --git a/app/views/entities/new.html.haml b/app/views/entities/new.html.haml index 85308ba..301a55d 100644 --- a/app/views/entities/new.html.haml +++ b/app/views/entities/new.html.haml @@ -1,5 +1,5 @@ .flex.justify-center - .column + .column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"} .text-xl.m-4 New entity = render 'form' diff --git a/app/views/events/edit.html.haml b/app/views/events/edit.html.haml index 4a3af83..fc27b15 100644 --- a/app/views/events/edit.html.haml +++ b/app/views/events/edit.html.haml @@ -1,5 +1,5 @@ .flex.justify-center - .column + .column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"} .text-xl.m-4 Editing event diff --git a/app/views/events/new.html.haml b/app/views/events/new.html.haml index 04f3297..0be0c2b 100644 --- a/app/views/events/new.html.haml +++ b/app/views/events/new.html.haml @@ -1,5 +1,5 @@ .flex.justify-center - .column + .column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"} .text-xl.m-4 New event diff --git a/app/views/members/_teacher_profile.haml b/app/views/members/_teacher_profile.haml index 05fd03d..4488b00 100644 --- a/app/views/members/_teacher_profile.haml +++ b/app/views/members/_teacher_profile.haml @@ -4,17 +4,26 @@ = 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 + = 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 --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 +.flex.flex-col.justify-center.mt-2 + =link_to profile_path(profile) do + .px-2.py-2.text-center.bg-gray-200 + %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 = 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 + New Event diff --git a/app/views/profiles/new.html.haml b/app/views/profiles/new.html.haml index a1e3c7f..1698c52 100644 --- a/app/views/profiles/new.html.haml +++ b/app/views/profiles/new.html.haml @@ -1,5 +1,5 @@ .flex.justify-center - .column + .column{class: "w-10/12 md:w-8/12 lg:w-5/12 xl:w-4/12"} .text-xl.m-4 Create your =@profile.kind.capitalize