Disable Turbo for all Devise forms

This commit is contained in:
Andreas Nedbal 2022-09-07 21:41:42 +02:00 committed by Andreas Nedbal
parent cc0dcdb8ae
commit 8226198f76
6 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
.card.mt-3
.card-body
%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
= f.text_field :screen_name, autofocus: true, label: 'User name'

View file

@ -5,7 +5,7 @@
.card.mt-3
.card-body
%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
= f.hidden_field :reset_password_token

View file

@ -5,7 +5,7 @@
.card.mt-3
.card-body
%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
= f.email_field :email, autofocus: true, label: 'Email address'

View file

@ -5,7 +5,7 @@
.card.mt-3
.card-body
%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 "layouts/messages"

View file

@ -6,7 +6,7 @@
.card.mt-3
.card-body
%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.password_field :password, autocomplete: "current-password"

View file

@ -3,7 +3,7 @@
%h1 Resend unlock instructions
= 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
= f.email_field :email, autofocus: true, label: 'Email address'