Added formnovalidate to back button in registration

This commit is contained in:
Godwin 2017-07-10 14:42:54 -07:00 committed by GitHub
parent 5290b2e7df
commit 5a2dee502b

View File

@ -126,7 +126,9 @@ module RegistrationHelper
actions = ''
if buttons.present?
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