improve email

This commit is contained in:
Torsten 2023-08-12 23:38:27 +03:00
parent 6743709372
commit bb5ed6da77
2 changed files with 21 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,15 @@
.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" , "/house_rules" , class: "underline"
if you haven't yet, and let us know of
any alergies (food?) or medical conditions (ADHD?) beforehand.
.mb-4
= f.label :name, class: "block font-bold mb-2 text-gray-700 text-sm"
= f.input :name,
@ -47,5 +52,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"