diff --git a/app/helpers/form_helper.rb b/app/helpers/form_helper.rb index af87acb3755..39d2f12754e 100644 --- a/app/helpers/form_helper.rb +++ b/app/helpers/form_helper.rb @@ -64,10 +64,4 @@ def us_states_territories ['Wyoming', 'WY'], ] end - - private - - def validated_form_for(record, options = {}, &block) - simple_form_for(record, options, &block) - end end diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index 78e527b781c..abbc687ab36 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -4,7 +4,7 @@
<%= t('instructions.password.password_key') %>
-<%= validated_form_for( +<%= simple_form_for( @reset_password_form, url: user_password_path, html: { autocomplete: 'off', diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index abfd9b30990..50a540f6f98 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -9,7 +9,7 @@ <%= t('instructions.password.forgot') %> -<%= validated_form_for( +<%= simple_form_for( @password_reset_email_form, url: user_password_path, html: { autocomplete: 'off', method: :post }, diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index dc96b7ddecd..820be8f9529 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -13,7 +13,7 @@ <% end %> <%= render 'shared/sp_alert' %> -<%= validated_form_for( +<%= simple_form_for( resource, as: resource_name, url: session_path(resource_name), diff --git a/app/views/event_disavowal/new.html.erb b/app/views/event_disavowal/new.html.erb index 71ac97a4ffb..7c1456793ce 100644 --- a/app/views/event_disavowal/new.html.erb +++ b/app/views/event_disavowal/new.html.erb @@ -2,7 +2,7 @@ <%= render PageHeadingComponent.new.with_content(t('headings.passwords.change')) %> -<%= validated_form_for( +<%= simple_form_for( @password_reset_from_disavowal_form, url: events_disavowal_url, html: { autocomplete: 'off', diff --git a/app/views/forgot_password/show.html.erb b/app/views/forgot_password/show.html.erb index 2897f91a9a6..2af37e556ee 100644 --- a/app/views/forgot_password/show.html.erb +++ b/app/views/forgot_password/show.html.erb @@ -16,9 +16,9 @@<%= t('doc_auth.info.camera_required') %>
<%= t('doc_auth.instructions.send_sms') %>
-<%= validated_form_for( +<%= simple_form_for( :doc_auth, url: url_for, method: 'PUT', diff --git a/app/views/idv/doc_auth/upload.html.erb b/app/views/idv/doc_auth/upload.html.erb index 969f6015afa..87da877c1a5 100644 --- a/app/views/idv/doc_auth/upload.html.erb +++ b/app/views/idv/doc_auth/upload.html.erb @@ -46,7 +46,7 @@ <% end %> <%= t('doc_auth.info.upload_from_phone') %> - <%= validated_form_for( + <%= simple_form_for( :doc_auth, url: url_for(type: :mobile), method: 'PUT', @@ -61,7 +61,7 @@- <%= validated_form_for(:idv_form, url: sign_up_completed_path) do |f| %> + <%= simple_form_for(:idv_form, url: sign_up_completed_path) do |f| %> <%= f.submit t('sign_up.agree_and_continue') %> <% end %>
diff --git a/app/views/sign_up/email_resend/new.html.erb b/app/views/sign_up/email_resend/new.html.erb index a1cc9257566..645c72c5cde 100644 --- a/app/views/sign_up/email_resend/new.html.erb +++ b/app/views/sign_up/email_resend/new.html.erb @@ -1,7 +1,7 @@ <% title t('titles.confirmations.new') %> <%= render PageHeadingComponent.new.with_content(t('headings.confirmations.new')) %> -<%= validated_form_for( +<%= simple_form_for( @resend_email_confirmation_form, url: sign_up_register_path, html: { autocomplete: 'off', method: :post }, diff --git a/app/views/sign_up/emails/show.html.erb b/app/views/sign_up/emails/show.html.erb index bea5f9e71c8..e9ac6282215 100644 --- a/app/views/sign_up/emails/show.html.erb +++ b/app/views/sign_up/emails/show.html.erb @@ -19,9 +19,9 @@<%= t('instructions.password.info.lead', min_length: Devise.password_length.first) %>
-<%= validated_form_for( +<%= simple_form_for( @password_form, url: sign_up_create_password_path, method: :post, diff --git a/app/views/two_factor_authentication/backup_code_verification/show.html.erb b/app/views/two_factor_authentication/backup_code_verification/show.html.erb index d365dc99c7e..e69f593ded8 100644 --- a/app/views/two_factor_authentication/backup_code_verification/show.html.erb +++ b/app/views/two_factor_authentication/backup_code_verification/show.html.erb @@ -6,7 +6,7 @@ <%= t('two_factor_authentication.backup_code_prompt') %> -<%= validated_form_for( +<%= simple_form_for( @backup_code_form, url: login_two_factor_backup_code_path, html: { autocomplete: 'off', method: :post }, diff --git a/app/views/two_factor_authentication/options/index.html.erb b/app/views/two_factor_authentication/options/index.html.erb index 957a2d1d5b7..918008a8ba1 100644 --- a/app/views/two_factor_authentication/options/index.html.erb +++ b/app/views/two_factor_authentication/options/index.html.erb @@ -8,7 +8,7 @@ <%= @presenter.info %> -<%= validated_form_for( +<%= simple_form_for( @two_factor_options_form, html: { autocomplete: 'off' }, method: :post, diff --git a/app/views/two_factor_authentication/personal_key_verification/show.html.erb b/app/views/two_factor_authentication/personal_key_verification/show.html.erb index dc615fdb4ad..6219ebae45d 100644 --- a/app/views/two_factor_authentication/personal_key_verification/show.html.erb +++ b/app/views/two_factor_authentication/personal_key_verification/show.html.erb @@ -6,7 +6,7 @@ <%= t('two_factor_authentication.personal_key_prompt') %> -<%= validated_form_for( +<%= simple_form_for( @personal_key_form, url: login_two_factor_personal_key_path, html: { autocomplete: 'off', method: :post } ) do |f| %> diff --git a/app/views/users/edit_phone/edit.html.erb b/app/views/users/edit_phone/edit.html.erb index c1c7ae48397..5ea8f5e099a 100644 --- a/app/views/users/edit_phone/edit.html.erb +++ b/app/views/users/edit_phone/edit.html.erb @@ -1,7 +1,7 @@ <% title t('titles.edit_info.phone') %> <%= render PageHeadingComponent.new.with_content(t('headings.edit_info.phone')) %> -<%= validated_form_for( +<%= simple_form_for( @edit_phone_form, html: { autocomplete: 'off', method: :put }, url: manage_phone_path(id: @phone_configuration.id), diff --git a/app/views/users/email_language/show.html.erb b/app/views/users/email_language/show.html.erb index 0266dbc8c0e..db864d361b8 100644 --- a/app/views/users/email_language/show.html.erb +++ b/app/views/users/email_language/show.html.erb @@ -12,7 +12,7 @@ ) %> -<%= validated_form_for(current_user, url: account_email_language_path, method: 'PATCH') do |f| %> +<%= simple_form_for(current_user, url: account_email_language_path, method: 'PATCH') do |f| %> <%= render partial: 'shared/email_languages', locals: { f: f, hint: false, selection: current_user.email_language } %> <%= f.submit t('forms.buttons.submit.default'), class: 'grid-col-8 tablet:grid-col-6' %> diff --git a/app/views/users/emails/show.html.erb b/app/views/users/emails/show.html.erb index 61c4b1dca43..2702d88a964 100644 --- a/app/views/users/emails/show.html.erb +++ b/app/views/users/emails/show.html.erb @@ -5,7 +5,7 @@ <%= render PageHeadingComponent.new.with_content(t('headings.add_email')) %><%= @presenter.intro %>
-<%= validated_form_for @two_factor_options_form, - html: { autocomplete: 'off' }, - method: :patch, - url: second_mfa_setup_path do |f| %> +<%= simple_form_for @two_factor_options_form, + html: { autocomplete: 'off' }, + method: :patch, + url: second_mfa_setup_path do |f| %>