Added formnovalidate to back button in registration
This commit is contained in:
parent
5290b2e7df
commit
5a2dee502b
@ -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…
x
Reference in New Issue
Block a user