Disable Turbo for all Devise forms
This commit is contained in:
parent
cc0dcdb8ae
commit
8226198f76
|
@ -5,7 +5,7 @@
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1 Resend confirmation instructions
|
%h1 Resend confirmation instructions
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }, data: { turbo: false }) do |f|
|
||||||
= render 'devise/shared/error_messages', resource: resource
|
= render 'devise/shared/error_messages', resource: resource
|
||||||
|
|
||||||
= f.text_field :screen_name, autofocus: true, label: 'User name'
|
= f.text_field :screen_name, autofocus: true, label: 'User name'
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1 Change your password
|
%h1 Change your password
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }, data: { turbo: false }) do |f|
|
||||||
= render 'devise/shared/error_messages', resource: resource
|
= render 'devise/shared/error_messages', resource: resource
|
||||||
|
|
||||||
= f.hidden_field :reset_password_token
|
= f.hidden_field :reset_password_token
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1 Forgot your password?
|
%h1 Forgot your password?
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }, data: { turbo: false }) do |f|
|
||||||
= render 'devise/shared/error_messages', resource: resource
|
= render 'devise/shared/error_messages', resource: resource
|
||||||
|
|
||||||
= f.email_field :email, autofocus: true, label: 'Email address'
|
= f.email_field :email, autofocus: true, label: 'Email address'
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1= t(".title")
|
%h1= t(".title")
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), data: { turbo: false }) do |f|
|
||||||
= render "devise/shared/error_messages", resource: resource
|
= render "devise/shared/error_messages", resource: resource
|
||||||
= render "layouts/messages"
|
= render "layouts/messages"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
.card.mt-3
|
.card.mt-3
|
||||||
.card-body
|
.card-body
|
||||||
%h1.mb-3.mt-0= t(".title")
|
%h1.mb-3.mt-0= t(".title")
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name), data: { turbo: false }) do |f|
|
||||||
|
|
||||||
= f.text_field :login, autofocus: true, autocomplete: :username
|
= f.text_field :login, autofocus: true, autocomplete: :username
|
||||||
= f.password_field :password, autocomplete: "current-password"
|
= f.password_field :password, autocomplete: "current-password"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
%h1 Resend unlock instructions
|
%h1 Resend unlock instructions
|
||||||
= render 'layouts/messages'
|
= render 'layouts/messages'
|
||||||
|
|
||||||
= bootstrap_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f|
|
= bootstrap_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }, data: { turbo: false }) do |f|
|
||||||
= render 'devise/shared/error_messages', resource: resource
|
= render 'devise/shared/error_messages', resource: resource
|
||||||
|
|
||||||
= f.email_field :email, autofocus: true, label: 'Email address'
|
= f.email_field :email, autofocus: true, label: 'Email address'
|
||||||
|
|
Loading…
Reference in New Issue