From 8e837e321413e678091c2d48f407ee56954383a7 Mon Sep 17 00:00:00 2001 From: Torsten Date: Sun, 13 Aug 2023 09:21:45 +0300 Subject: [PATCH] improve email --- .../mailer/confirmation_instructions.html.haml | 14 ++++++++++++-- app/views/devise/registrations/new.html.haml | 9 ++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/app/views/devise/mailer/confirmation_instructions.html.haml b/app/views/devise/mailer/confirmation_instructions.html.haml index 27d48e6..ec87b61 100644 --- a/app/views/devise/mailer/confirmation_instructions.html.haml +++ b/app/views/devise/mailer/confirmation_instructions.html.haml @@ -1,4 +1,14 @@ %p - Welcome #{@email}! -%p You can confirm your account email through the link below: + Welcome #{@resource.name}! + +%p You can confirm your stay through the link below: %p= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) + +Remember you can change the dates later, under the Settings. + +You can also set a profile and picture to tell others about yourself. +And once at the Hub, you can add pictures and stories to share with others. + +Looking forward to seeing you in person + +The hub team diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index 669981c..0205093 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -1,10 +1,14 @@ .flex.justify-center .w-full.max-w-xs.md:max-w-md - %h1.font-hairline.mb-6.text-center.text-2xl Sign Up + %h1.font-hairline.mb-6.text-center.text-2xl Confirm your stay = form_for(resource, as: resource_name, html: { class: "bg-white mb-4 px-8 pt-6 pb-8 rounded shadow-md" } , url: registration_path(resource_name) ) do |f| = render "devise/shared/error_messages", resource: resource + .mb-4 + Please read the + = link_to "house rules" , "/code_of_conduct" , class: "underline" + if you haven't yet. .mb-4 = f.label :name, class: "block font-bold mb-2 text-gray-700 text-sm" = f.input :name, @@ -47,5 +51,8 @@ .my-4 = f.submit "Sign Up", class: "button bg-cyan-700 hover:bg-cyan-700 font-bold text-white focus:outline-none py-2 px-4 rounded focus:shadow-outline w-full" + %p + After submitting you will receive a confirmation email. + Your place will be ensured once you have confirmed your email. = render "devise/shared/links" = render "devise/shared/form_footer"