change the button types to make capybara finding easier

This commit is contained in:
John Bintz 2013-04-22 09:42:47 -04:00
parent e98e329d92
commit cf7715238a

View File

@ -9,9 +9,9 @@ class SlugInput < Formtastic::Inputs::StringInput
end end
def action_buttons def action_buttons
template.button_tag('Edit', 'data-mode' => 'disabled', 'data-action' => 'edit') << template.button_tag('Edit', :type => 'edit', 'data-mode' => 'disabled', 'data-action' => 'edit') <<
template.button_tag('Update', 'data-mode' => 'enabled', 'data-action' => 'update', :style => 'display: none') << template.button_tag('Update', :type => 'update', 'data-mode' => 'enabled', 'data-action' => 'update', :style => 'display: none') <<
template.button_tag('Cancel', 'data-mode' => 'enabled', 'data-action' => 'cancel', :style => 'display: none') template.button_tag('Cancel', :type => 'cancel', 'data-mode' => 'enabled', 'data-action' => 'cancel', :style => 'display: none')
end end
def input_html_options def input_html_options