Browse Source

Added formnovalidate to back button in registration

development
Godwin 7 years ago
committed by GitHub
parent
commit
5a2dee502b
  1. 4
      app/helpers/registration_helper.rb

4
app/helpers/registration_helper.rb

@ -126,7 +126,9 @@ module RegistrationHelper
actions = '' actions = ''
if buttons.present? if buttons.present?
buttons.each do |button_name| buttons.each do |button_name|
actions += (button button_name, value: button_name) attrs = { value: button_name }
attrs[:formnovalidate] = true if button_name == :back
actions += (button button_name, attrs)
end end
end end

Loading…
Cancel
Save