dates in signup
This commit is contained in:
parent
45146e0fbb
commit
df207c5383
@ -8,7 +8,7 @@ class ApplicationController < ActionController::Base
|
||||
protected
|
||||
|
||||
def configure_permitted_parameters
|
||||
devise_parameter_sanitizer.permit(:sign_up, keys: [:name])
|
||||
devise_parameter_sanitizer.permit(:sign_up, keys: [:name , :arriving , :leaving])
|
||||
end
|
||||
|
||||
def user_not_authorized
|
||||
|
@ -8,7 +8,7 @@
|
||||
.mb-4
|
||||
= f.label :name, class: "block font-bold mb-2 text-gray-700 text-sm"
|
||||
= f.input :name,
|
||||
placeholder: "Pekka Virtanen",
|
||||
placeholder: "Pekka",
|
||||
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"
|
||||
@ -16,6 +16,14 @@
|
||||
autocomplete: "email",
|
||||
placeholder: "user@example.com",
|
||||
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 :date, class: "block font-bold mb-2 text-gray-700 text-sm"
|
||||
= f.date_field :arriving,
|
||||
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 :date, class: "block font-bold mb-2 text-gray-700 text-sm"
|
||||
= f.date_field :leaving,
|
||||
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 :password, class: "block font-bold mb-2 text-gray-700 text-sm"
|
||||
- if @minimum_password_length
|
||||
|
Loading…
Reference in New Issue
Block a user