scoping devise

This commit is contained in:
2022-12-21 17:30:29 +02:00
parent 0398a20861
commit d6606f05bb
13 changed files with 38 additions and 41 deletions

View File

@ -3,12 +3,18 @@
%h1.font-hairline.mb-6.text-center Sign Up
= form_for(resource, |
as: resource_name, |
url: registration_path(resource_name), |
url: main_app.registration_path(resource_name), |
html: { |
class: "bg-white mb-4 px-8 pt-6 pb-8 rounded shadow-md" |
} |
) do |f| |
= render "devise/shared/error_messages", resource: resource
.mb-4
= f.label :name, class: "block font-bold mb-2 text-gray-700 text-sm"
= f.text_field :name, |
autocomplete: "name", |
placeholder: "Pekka Juustonen", |
class: "appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none shadow focus:shadow-outline" |
.mb-4
= f.label :email, class: "block font-bold mb-2 text-gray-700 text-sm"
= f.email_field :email, |