OpenFest: Fix form wrapper and paths in Devise views
This commit is contained in:
parent
2231a65227
commit
48119a687c
|
@ -1,3 +1,7 @@
|
||||||
class OpenFest::Users::PasswordsController < Devise::PasswordsController
|
class OpenFest::Users::PasswordsController < Devise::PasswordsController
|
||||||
include OpenFest::Users::DeviseController
|
include OpenFest::Users::DeviseController
|
||||||
|
|
||||||
|
def after_sending_reset_password_instructions_path_for(resource_name)
|
||||||
|
new_user_session_path
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h2.entry-title = t :resend_instructions_header
|
h2.entry-title = t :resend_instructions_header
|
||||||
|
|
||||||
= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
= simple_form_for(resource, wrapper: :default, as: :user, url: user_confirmation_path) do |f|
|
||||||
= f.error_notification
|
= f.error_notification
|
||||||
= f.full_error :confirmation_token
|
= f.full_error :confirmation_token
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h2.entry-title = t :change_pass
|
h2.entry-title = t :change_pass
|
||||||
|
|
||||||
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path, html: { method: :put }) do |f|
|
||||||
= f.error_notification
|
= f.error_notification
|
||||||
|
|
||||||
= f.input :reset_password_token, as: :hidden
|
= f.input :reset_password_token, as: :hidden
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h2.entry-title = t :lostpass
|
h2.entry-title = t :lostpass
|
||||||
|
|
||||||
= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
= simple_form_for(resource, wrapper: :default, as: :user, url: user_password_path) do |f|
|
||||||
= f.error_notification
|
= f.error_notification
|
||||||
|
|
||||||
.form-inputs
|
.form-inputs
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h2.entry-title = t :registration
|
h2.entry-title = t :registration
|
||||||
|
|
||||||
= simple_form_for(resource, as: resource_name, url: user_registration_path) do |f|
|
= simple_form_for(resource, wrapper: :default, as: :user, url: user_registration_path) do |f|
|
||||||
= f.error_notification
|
= f.error_notification
|
||||||
|
|
||||||
.form-inputs
|
.form-inputs
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
h2.entry-title = t :login
|
h2.entry-title = t :login
|
||||||
|
|
||||||
= simple_form_for(resource, wrapper: :default, as: resource_name, url: user_session_path) do |f|
|
= simple_form_for(resource, wrapper: :default, as: :user, url: user_session_path) do |f|
|
||||||
.form-inputs
|
.form-inputs
|
||||||
= f.input :email, required: false, autofocus: true, hint: false
|
= f.input :email, required: false, autofocus: true, hint: false
|
||||||
= f.input :password, required: false, hint: false
|
= f.input :password, required: false, hint: false
|
||||||
|
|
Loading…
Reference in New Issue