improve email

This commit is contained in:
Torsten 2023-08-13 09:21:45 +03:00
parent 13d9a961b7
commit 8e837e3214
2 changed files with 20 additions and 3 deletions

View File

@ -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

View File

@ -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"