mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Disable Turbo for all Devise forms
This commit is contained in:
parent
cc0dcdb8ae
commit
8226198f76
6 changed files with 6 additions and 6 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue