scoping devise
This commit is contained in:
@ -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, |
|
||||
|
Reference in New Issue
Block a user