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
1 changed files with 3 additions and 3 deletions

View File

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