padrino_bootstrap_forms 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +6 -1
- data/Changes +8 -0
- data/README.markdown +6 -0
- data/lib/bootstrap_forms/form_builder.rb +60 -68
- data/lib/bootstrap_forms/helpers/form_helper.rb +2 -2
- data/lib/bootstrap_forms/helpers/form_tag_helper.rb +22 -16
- data/lib/bootstrap_forms/helpers/wrappers.rb +30 -23
- data/padrino_bootstrap_forms.gemspec +7 -5
- data/spec/app/app.rb +59 -0
- data/spec/app/views/erb/bootstrap_actions.erb +1 -0
- data/spec/app/views/erb/bootstrap_actions_with_block.erb +3 -0
- data/spec/app/views/erb/check_box.erb +1 -0
- data/spec/app/views/erb/check_box_tag.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_append.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_error.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_info.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_success.erb +1 -0
- data/spec/app/views/erb/check_box_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/check_box_with_append.erb +1 -0
- data/spec/app/views/erb/check_box_with_error.erb +1 -0
- data/spec/app/views/erb/check_box_with_help_block.erb +1 -0
- data/spec/app/views/erb/check_box_with_help_inline.erb +1 -0
- data/spec/app/views/erb/check_box_with_info.erb +1 -0
- data/spec/app/views/erb/check_box_with_success.erb +1 -0
- data/spec/app/views/erb/check_box_with_warning.erb +1 -0
- data/spec/app/views/erb/collection_check_boxes.erb +1 -0
- data/spec/app/views/erb/collection_check_boxes_with_checked.erb +2 -0
- data/spec/app/views/erb/collection_check_boxes_with_help_block.erb +1 -0
- data/spec/app/views/erb/collection_radio_buttons.erb +1 -0
- data/spec/app/views/erb/collection_radio_buttons_with_checked.erb +2 -0
- data/spec/app/views/erb/email_field.erb +1 -0
- data/spec/app/views/erb/email_field_tag.erb +1 -0
- data/spec/app/views/erb/email_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/email_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/email_field_with_append.erb +1 -0
- data/spec/app/views/erb/email_field_with_error.erb +1 -0
- data/spec/app/views/erb/email_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/email_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_with_info.erb +1 -0
- data/spec/app/views/erb/email_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/email_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/email_field_with_success.erb +1 -0
- data/spec/app/views/erb/email_field_with_warning.erb +1 -0
- data/spec/app/views/erb/file_field.erb +1 -0
- data/spec/app/views/erb/file_field_tag.erb +1 -0
- data/spec/app/views/erb/file_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/file_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/file_field_with_append.erb +1 -0
- data/spec/app/views/erb/file_field_with_error.erb +1 -0
- data/spec/app/views/erb/file_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/file_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_with_info.erb +1 -0
- data/spec/app/views/erb/file_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/file_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/file_field_with_success.erb +1 -0
- data/spec/app/views/erb/file_field_with_warning.erb +1 -0
- data/spec/app/views/erb/label_field.erb +1 -0
- data/spec/app/views/erb/number_field.erb +1 -0
- data/spec/app/views/erb/number_field_tag.erb +1 -0
- data/spec/app/views/erb/number_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/number_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/number_field_with_append.erb +1 -0
- data/spec/app/views/erb/number_field_with_error.erb +1 -0
- data/spec/app/views/erb/number_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/number_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_with_info.erb +1 -0
- data/spec/app/views/erb/number_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/number_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/number_field_with_success.erb +1 -0
- data/spec/app/views/erb/number_field_with_warning.erb +1 -0
- data/spec/app/views/erb/password_field.erb +1 -0
- data/spec/app/views/erb/password_field_tag.erb +1 -0
- data/spec/app/views/erb/password_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/password_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/password_field_with_append.erb +1 -0
- data/spec/app/views/erb/password_field_with_error.erb +1 -0
- data/spec/app/views/erb/password_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/password_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_with_info.erb +1 -0
- data/spec/app/views/erb/password_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/password_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/password_field_with_success.erb +1 -0
- data/spec/app/views/erb/password_field_with_warning.erb +1 -0
- data/spec/app/views/erb/phone_field.erb +1 -0
- data/spec/app/views/erb/phone_field_tag.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/phone_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/phone_field_with_append.erb +1 -0
- data/spec/app/views/erb/phone_field_with_error.erb +1 -0
- data/spec/app/views/erb/phone_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/phone_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_with_info.erb +1 -0
- data/spec/app/views/erb/phone_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/phone_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/phone_field_with_success.erb +1 -0
- data/spec/app/views/erb/phone_field_with_warning.erb +1 -0
- data/spec/app/views/erb/radio_buttons.erb +1 -0
- data/spec/app/views/erb/radio_buttons_with_error.erb +1 -0
- data/spec/app/views/erb/search_field.erb +1 -0
- data/spec/app/views/erb/search_field_tag.erb +1 -0
- data/spec/app/views/erb/search_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/search_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/search_field_with_append.erb +1 -0
- data/spec/app/views/erb/search_field_with_error.erb +1 -0
- data/spec/app/views/erb/search_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/search_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_with_info.erb +1 -0
- data/spec/app/views/erb/search_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/search_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/search_field_with_success.erb +1 -0
- data/spec/app/views/erb/search_field_with_warning.erb +1 -0
- data/spec/app/views/erb/select.erb +1 -0
- data/spec/app/views/erb/select_tag.erb +1 -0
- data/spec/app/views/erb/select_tag_tag.erb +1 -0
- data/spec/app/views/erb/select_tag_with_append.erb +1 -0
- data/spec/app/views/erb/select_tag_with_error.erb +1 -0
- data/spec/app/views/erb/select_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/select_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/select_tag_with_info.erb +1 -0
- data/spec/app/views/erb/select_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/select_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/select_tag_with_success.erb +1 -0
- data/spec/app/views/erb/select_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/select_with_append.erb +1 -0
- data/spec/app/views/erb/select_with_error.erb +1 -0
- data/spec/app/views/erb/select_with_help_block.erb +1 -0
- data/spec/app/views/erb/select_with_help_inline.erb +1 -0
- data/spec/app/views/erb/select_with_info.erb +1 -0
- data/spec/app/views/erb/select_with_prepend.erb +1 -0
- data/spec/app/views/erb/select_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/select_with_success.erb +1 -0
- data/spec/app/views/erb/select_with_warning.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/telephone_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_area.erb +1 -0
- data/spec/app/views/erb/text_area_tag.erb +1 -0
- data/spec/app/views/erb/text_area_tag_tag.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_append.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_error.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_info.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_success.erb +1 -0
- data/spec/app/views/erb/text_area_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_area_with_append.erb +1 -0
- data/spec/app/views/erb/text_area_with_error.erb +1 -0
- data/spec/app/views/erb/text_area_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_area_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_with_info.erb +1 -0
- data/spec/app/views/erb/text_area_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_area_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_area_with_success.erb +1 -0
- data/spec/app/views/erb/text_area_with_warning.erb +1 -0
- data/spec/app/views/erb/text_field.erb +1 -0
- data/spec/app/views/erb/text_field_tag.erb +1 -0
- data/spec/app/views/erb/text_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/text_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/text_field_with_append.erb +1 -0
- data/spec/app/views/erb/text_field_with_error.erb +1 -0
- data/spec/app/views/erb/text_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/text_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_with_info.erb +1 -0
- data/spec/app/views/erb/text_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/text_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/text_field_with_success.erb +1 -0
- data/spec/app/views/erb/text_field_with_warning.erb +1 -0
- data/spec/app/views/erb/uneditable_input.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_append.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_error.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_info.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_success.erb +1 -0
- data/spec/app/views/erb/uneditable_input_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_append.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_error.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_help_block.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_info.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_prepend.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_success.erb +1 -0
- data/spec/app/views/erb/uneditable_input_with_warning.erb +1 -0
- data/spec/app/views/erb/url_field.erb +1 -0
- data/spec/app/views/erb/url_field_tag.erb +1 -0
- data/spec/app/views/erb/url_field_tag_tag.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_append.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_error.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_help_block.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_info.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_prepend.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_success.erb +1 -0
- data/spec/app/views/erb/url_field_tag_with_warning.erb +1 -0
- data/spec/app/views/erb/url_field_with_append.erb +1 -0
- data/spec/app/views/erb/url_field_with_error.erb +1 -0
- data/spec/app/views/erb/url_field_with_help_block.erb +1 -0
- data/spec/app/views/erb/url_field_with_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_with_info.erb +1 -0
- data/spec/app/views/erb/url_field_with_prepend.erb +1 -0
- data/spec/app/views/erb/url_field_with_prepend_append_and_help_inline.erb +1 -0
- data/spec/app/views/erb/url_field_with_success.erb +1 -0
- data/spec/app/views/erb/url_field_with_warning.erb +1 -0
- data/spec/app/views/haml/bootstrap_actions.haml +1 -0
- data/spec/app/views/haml/bootstrap_actions_with_block.haml +2 -0
- data/spec/app/views/haml/check_box.haml +1 -0
- data/spec/app/views/haml/check_box_tag.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_append.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_error.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_info.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_success.haml +1 -0
- data/spec/app/views/haml/check_box_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/check_box_with_append.haml +1 -0
- data/spec/app/views/haml/check_box_with_error.haml +1 -0
- data/spec/app/views/haml/check_box_with_help_block.haml +1 -0
- data/spec/app/views/haml/check_box_with_help_inline.haml +1 -0
- data/spec/app/views/haml/check_box_with_info.haml +1 -0
- data/spec/app/views/haml/check_box_with_success.haml +1 -0
- data/spec/app/views/haml/check_box_with_warning.haml +1 -0
- data/spec/app/views/haml/collection_check_boxes.haml +1 -0
- data/spec/app/views/haml/collection_check_boxes_with_checked.haml +2 -0
- data/spec/app/views/haml/collection_check_boxes_with_help_block.haml +1 -0
- data/spec/app/views/haml/collection_radio_buttons.haml +1 -0
- data/spec/app/views/haml/collection_radio_buttons_with_checked.haml +2 -0
- data/spec/app/views/haml/email_field.haml +1 -0
- data/spec/app/views/haml/email_field_tag.haml +1 -0
- data/spec/app/views/haml/email_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/email_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/email_field_with_append.haml +1 -0
- data/spec/app/views/haml/email_field_with_error.haml +1 -0
- data/spec/app/views/haml/email_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/email_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_with_info.haml +1 -0
- data/spec/app/views/haml/email_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/email_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/email_field_with_success.haml +1 -0
- data/spec/app/views/haml/email_field_with_warning.haml +1 -0
- data/spec/app/views/haml/file_field.haml +1 -0
- data/spec/app/views/haml/file_field_tag.haml +1 -0
- data/spec/app/views/haml/file_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/file_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/file_field_with_append.haml +1 -0
- data/spec/app/views/haml/file_field_with_error.haml +1 -0
- data/spec/app/views/haml/file_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/file_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_with_info.haml +1 -0
- data/spec/app/views/haml/file_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/file_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/file_field_with_success.haml +1 -0
- data/spec/app/views/haml/file_field_with_warning.haml +1 -0
- data/spec/app/views/haml/number_field.haml +1 -0
- data/spec/app/views/haml/number_field_tag.haml +1 -0
- data/spec/app/views/haml/number_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/number_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/number_field_with_append.haml +1 -0
- data/spec/app/views/haml/number_field_with_error.haml +1 -0
- data/spec/app/views/haml/number_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/number_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_with_info.haml +1 -0
- data/spec/app/views/haml/number_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/number_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/number_field_with_success.haml +1 -0
- data/spec/app/views/haml/number_field_with_warning.haml +1 -0
- data/spec/app/views/haml/password_field.haml +1 -0
- data/spec/app/views/haml/password_field_tag.haml +1 -0
- data/spec/app/views/haml/password_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/password_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/password_field_with_append.haml +1 -0
- data/spec/app/views/haml/password_field_with_error.haml +1 -0
- data/spec/app/views/haml/password_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/password_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_with_info.haml +1 -0
- data/spec/app/views/haml/password_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/password_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/password_field_with_success.haml +1 -0
- data/spec/app/views/haml/password_field_with_warning.haml +1 -0
- data/spec/app/views/haml/phone_field.haml +1 -0
- data/spec/app/views/haml/phone_field_tag.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/phone_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/phone_field_with_append.haml +1 -0
- data/spec/app/views/haml/phone_field_with_error.haml +1 -0
- data/spec/app/views/haml/phone_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/phone_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_with_info.haml +1 -0
- data/spec/app/views/haml/phone_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/phone_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/phone_field_with_success.haml +1 -0
- data/spec/app/views/haml/phone_field_with_warning.haml +1 -0
- data/spec/app/views/haml/radio_buttons.haml +1 -0
- data/spec/app/views/haml/radio_buttons_with_error.haml +1 -0
- data/spec/app/views/haml/search_field.haml +1 -0
- data/spec/app/views/haml/search_field_tag.haml +1 -0
- data/spec/app/views/haml/search_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/search_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/search_field_with_append.haml +1 -0
- data/spec/app/views/haml/search_field_with_error.haml +1 -0
- data/spec/app/views/haml/search_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/search_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_with_info.haml +1 -0
- data/spec/app/views/haml/search_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/search_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/search_field_with_success.haml +1 -0
- data/spec/app/views/haml/search_field_with_warning.haml +1 -0
- data/spec/app/views/haml/select.haml +1 -0
- data/spec/app/views/haml/select_tag.haml +1 -0
- data/spec/app/views/haml/select_tag_with_append.haml +1 -0
- data/spec/app/views/haml/select_tag_with_error.haml +1 -0
- data/spec/app/views/haml/select_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/select_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/select_tag_with_info.haml +1 -0
- data/spec/app/views/haml/select_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/select_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/select_tag_with_success.haml +1 -0
- data/spec/app/views/haml/select_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/select_with_append.haml +1 -0
- data/spec/app/views/haml/select_with_error.haml +1 -0
- data/spec/app/views/haml/select_with_help_block.haml +1 -0
- data/spec/app/views/haml/select_with_help_inline.haml +1 -0
- data/spec/app/views/haml/select_with_info.haml +1 -0
- data/spec/app/views/haml/select_with_prepend.haml +1 -0
- data/spec/app/views/haml/select_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/select_with_success.haml +1 -0
- data/spec/app/views/haml/select_with_warning.haml +1 -0
- data/spec/app/views/haml/telephone_field.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/telephone_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_append.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_error.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_info.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_success.haml +1 -0
- data/spec/app/views/haml/telephone_field_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area.haml +1 -0
- data/spec/app/views/haml/text_area_field.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_field_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area_tag.haml +1 -0
- data/spec/app/views/haml/text_area_tag_tag.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/text_area_with_append.haml +1 -0
- data/spec/app/views/haml/text_area_with_error.haml +1 -0
- data/spec/app/views/haml/text_area_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_area_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_with_info.haml +1 -0
- data/spec/app/views/haml/text_area_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_area_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_area_with_success.haml +1 -0
- data/spec/app/views/haml/text_area_with_warning.haml +1 -0
- data/spec/app/views/haml/text_field.haml +1 -0
- data/spec/app/views/haml/text_field_tag.haml +1 -0
- data/spec/app/views/haml/text_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/text_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/text_field_with_append.haml +1 -0
- data/spec/app/views/haml/text_field_with_error.haml +1 -0
- data/spec/app/views/haml/text_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/text_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_with_info.haml +1 -0
- data/spec/app/views/haml/text_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/text_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/text_field_with_success.haml +1 -0
- data/spec/app/views/haml/text_field_with_warning.haml +1 -0
- data/spec/app/views/haml/uneditable_input.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_append.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_error.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_info.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_success.haml +1 -0
- data/spec/app/views/haml/uneditable_input_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_append.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_error.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_help_block.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_info.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_prepend.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_success.haml +1 -0
- data/spec/app/views/haml/uneditable_input_with_warning.haml +1 -0
- data/spec/app/views/haml/url_field.haml +1 -0
- data/spec/app/views/haml/url_field_tag.haml +1 -0
- data/spec/app/views/haml/url_field_tag_tag.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_append.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_error.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_help_block.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_info.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_prepend.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_success.haml +1 -0
- data/spec/app/views/haml/url_field_tag_with_warning.haml +1 -0
- data/spec/app/views/haml/url_field_with_append.haml +1 -0
- data/spec/app/views/haml/url_field_with_error.haml +1 -0
- data/spec/app/views/haml/url_field_with_help_block.haml +1 -0
- data/spec/app/views/haml/url_field_with_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_with_info.haml +1 -0
- data/spec/app/views/haml/url_field_with_prepend.haml +1 -0
- data/spec/app/views/haml/url_field_with_prepend_append_and_help_inline.haml +1 -0
- data/spec/app/views/haml/url_field_with_success.haml +1 -0
- data/spec/app/views/haml/url_field_with_warning.haml +1 -0
- data/spec/app/views/slim/bootstrap_actions.slim +1 -0
- data/spec/app/views/slim/bootstrap_actions_with_block.slim +2 -0
- data/spec/app/views/slim/check_box.slim +1 -0
- data/spec/app/views/slim/check_box_tag.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_append.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_error.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_info.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_success.slim +1 -0
- data/spec/app/views/slim/check_box_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/check_box_with_append.slim +1 -0
- data/spec/app/views/slim/check_box_with_error.slim +1 -0
- data/spec/app/views/slim/check_box_with_help_block.slim +1 -0
- data/spec/app/views/slim/check_box_with_help_inline.slim +1 -0
- data/spec/app/views/slim/check_box_with_info.slim +1 -0
- data/spec/app/views/slim/check_box_with_success.slim +1 -0
- data/spec/app/views/slim/check_box_with_warning.slim +1 -0
- data/spec/app/views/slim/collection_check_boxes.slim +1 -0
- data/spec/app/views/slim/collection_check_boxes_with_checked.slim +2 -0
- data/spec/app/views/slim/collection_check_boxes_with_help_block.slim +1 -0
- data/spec/app/views/slim/collection_radio_buttons.slim +1 -0
- data/spec/app/views/slim/collection_radio_buttons_with_checked.slim +2 -0
- data/spec/app/views/slim/email_field.slim +1 -0
- data/spec/app/views/slim/email_field_tag.slim +1 -0
- data/spec/app/views/slim/email_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/email_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/email_field_with_append.slim +1 -0
- data/spec/app/views/slim/email_field_with_error.slim +1 -0
- data/spec/app/views/slim/email_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/email_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_with_info.slim +1 -0
- data/spec/app/views/slim/email_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/email_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/email_field_with_success.slim +1 -0
- data/spec/app/views/slim/email_field_with_warning.slim +1 -0
- data/spec/app/views/slim/file_field.slim +1 -0
- data/spec/app/views/slim/file_field_tag.slim +1 -0
- data/spec/app/views/slim/file_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/file_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/file_field_with_append.slim +1 -0
- data/spec/app/views/slim/file_field_with_error.slim +1 -0
- data/spec/app/views/slim/file_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/file_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_with_info.slim +1 -0
- data/spec/app/views/slim/file_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/file_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/file_field_with_success.slim +1 -0
- data/spec/app/views/slim/file_field_with_warning.slim +1 -0
- data/spec/app/views/slim/label_tag.slim +2 -0
- data/spec/app/views/slim/number_field.slim +1 -0
- data/spec/app/views/slim/number_field_tag.slim +1 -0
- data/spec/app/views/slim/number_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/number_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/number_field_with_append.slim +1 -0
- data/spec/app/views/slim/number_field_with_error.slim +1 -0
- data/spec/app/views/slim/number_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/number_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_with_info.slim +1 -0
- data/spec/app/views/slim/number_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/number_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/number_field_with_success.slim +1 -0
- data/spec/app/views/slim/number_field_with_warning.slim +1 -0
- data/spec/app/views/slim/password_field.slim +1 -0
- data/spec/app/views/slim/password_field_tag.slim +1 -0
- data/spec/app/views/slim/password_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/password_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/password_field_with_append.slim +1 -0
- data/spec/app/views/slim/password_field_with_error.slim +1 -0
- data/spec/app/views/slim/password_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/password_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_with_info.slim +1 -0
- data/spec/app/views/slim/password_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/password_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/password_field_with_success.slim +1 -0
- data/spec/app/views/slim/password_field_with_warning.slim +1 -0
- data/spec/app/views/slim/phone_field.slim +1 -0
- data/spec/app/views/slim/phone_field_tag.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/phone_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/phone_field_with_append.slim +1 -0
- data/spec/app/views/slim/phone_field_with_error.slim +1 -0
- data/spec/app/views/slim/phone_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/phone_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_with_info.slim +1 -0
- data/spec/app/views/slim/phone_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/phone_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/phone_field_with_success.slim +1 -0
- data/spec/app/views/slim/phone_field_with_warning.slim +1 -0
- data/spec/app/views/slim/radio_buttons.slim +1 -0
- data/spec/app/views/slim/radio_buttons_with_error.slim +1 -0
- data/spec/app/views/slim/search_field.slim +1 -0
- data/spec/app/views/slim/search_field_tag.slim +1 -0
- data/spec/app/views/slim/search_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/search_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/search_field_with_append.slim +1 -0
- data/spec/app/views/slim/search_field_with_error.slim +1 -0
- data/spec/app/views/slim/search_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/search_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_with_info.slim +1 -0
- data/spec/app/views/slim/search_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/search_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/search_field_with_success.slim +1 -0
- data/spec/app/views/slim/search_field_with_warning.slim +1 -0
- data/spec/app/views/slim/select.slim +1 -0
- data/spec/app/views/slim/select_tag.slim +1 -0
- data/spec/app/views/slim/select_tag_with_append.slim +1 -0
- data/spec/app/views/slim/select_tag_with_error.slim +1 -0
- data/spec/app/views/slim/select_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/select_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/select_tag_with_info.slim +1 -0
- data/spec/app/views/slim/select_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/select_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/select_tag_with_success.slim +1 -0
- data/spec/app/views/slim/select_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/select_with_append.slim +1 -0
- data/spec/app/views/slim/select_with_error.slim +1 -0
- data/spec/app/views/slim/select_with_help_block.slim +1 -0
- data/spec/app/views/slim/select_with_help_inline.slim +1 -0
- data/spec/app/views/slim/select_with_info.slim +1 -0
- data/spec/app/views/slim/select_with_prepend.slim +1 -0
- data/spec/app/views/slim/select_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/select_with_success.slim +1 -0
- data/spec/app/views/slim/select_with_warning.slim +1 -0
- data/spec/app/views/slim/telephone_field.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/telephone_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_append.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_error.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_info.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_success.slim +1 -0
- data/spec/app/views/slim/telephone_field_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area.slim +1 -0
- data/spec/app/views/slim/text_area_field.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_field_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area_tag.slim +1 -0
- data/spec/app/views/slim/text_area_tag_tag.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/text_area_with_append.slim +1 -0
- data/spec/app/views/slim/text_area_with_error.slim +1 -0
- data/spec/app/views/slim/text_area_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_area_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_with_info.slim +1 -0
- data/spec/app/views/slim/text_area_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_area_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_area_with_success.slim +1 -0
- data/spec/app/views/slim/text_area_with_warning.slim +1 -0
- data/spec/app/views/slim/text_field.slim +1 -0
- data/spec/app/views/slim/text_field_tag.slim +1 -0
- data/spec/app/views/slim/text_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/text_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/text_field_with_append.slim +1 -0
- data/spec/app/views/slim/text_field_with_error.slim +1 -0
- data/spec/app/views/slim/text_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/text_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_with_info.slim +1 -0
- data/spec/app/views/slim/text_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/text_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/text_field_with_success.slim +1 -0
- data/spec/app/views/slim/text_field_with_warning.slim +1 -0
- data/spec/app/views/slim/uneditable_input.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_append.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_error.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_info.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_success.slim +1 -0
- data/spec/app/views/slim/uneditable_input_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_append.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_error.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_help_block.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_info.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_prepend.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_success.slim +1 -0
- data/spec/app/views/slim/uneditable_input_with_warning.slim +1 -0
- data/spec/app/views/slim/url_field.slim +1 -0
- data/spec/app/views/slim/url_field_tag.slim +1 -0
- data/spec/app/views/slim/url_field_tag_tag.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_append.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_error.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_help_block.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_info.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_prepend.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_success.slim +1 -0
- data/spec/app/views/slim/url_field_tag_with_warning.slim +1 -0
- data/spec/app/views/slim/url_field_with_append.slim +1 -0
- data/spec/app/views/slim/url_field_with_error.slim +1 -0
- data/spec/app/views/slim/url_field_with_help_block.slim +1 -0
- data/spec/app/views/slim/url_field_with_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_with_info.slim +1 -0
- data/spec/app/views/slim/url_field_with_prepend.slim +1 -0
- data/spec/app/views/slim/url_field_with_prepend_append_and_help_inline.slim +1 -0
- data/spec/app/views/slim/url_field_with_success.slim +1 -0
- data/spec/app/views/slim/url_field_with_warning.slim +1 -0
- data/spec/bootstrap_forms_spec.rb +25 -0
- data/spec/spec_helper.rb +95 -22
- data/spec/support/a_form_field.rb +15 -0
- data/spec/support/form_builder.rb +166 -0
- data/spec/support/form_tag_helpers.rb +87 -0
- metadata +1768 -32
- data/spec/lib/bootstrap_forms/form_builder_spec.rb +0 -218
- data/spec/lib/bootstrap_forms/form_tag_helper_spec.rb +0 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b34692a2c6f71d099f09129543f70dabf3a82b5d
|
4
|
+
data.tar.gz: 68dd540269edf65eba6482fd1488da974b51b3f7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cd868d61e6e50ecdd5020b37cf7baec0c1c8550b5adb417acbd4814232a9956b705c8f14b10c3a676f1d40a43f54eb3b5bc0bd261cf2f98d967b37b0fe0e1ef3
|
7
|
+
data.tar.gz: acd0d96e401dfda7d247f731c9351bd0d099f5fe5b73f256557fa51fcce13d78d338db0fe9ef702d3e3c8870240f5cc66a8e50fb4518322a556a36e47a12a4df
|
data/.travis.yml
CHANGED
data/Changes
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
v0.0.2 2013-07-14
|
2
|
+
--------------------
|
3
|
+
Bug Fixes:
|
4
|
+
* Fix conflict between Wrappers.error and Padrino's error helper (thanks Ivan Zhidkov)
|
5
|
+
* Various failures when using Slim (thanks Ivan Zhidkov)
|
6
|
+
* Various failures when using ERB (thanks Ken Erickson & Luke Antins)
|
7
|
+
* :help_inline and :help_block now use <span> and not <p>
|
8
|
+
* FormTagHelpers methods add an id attribute to the fields they create
|
data/README.markdown
CHANGED
@@ -18,6 +18,7 @@ Differences Between This & The Rails Version
|
|
18
18
|
* `country_select`
|
19
19
|
* `time_zone_select`
|
20
20
|
* `range_field`
|
21
|
+
* Various other additions made to `bootstrap_forms` after `v3`
|
21
22
|
|
22
23
|
Bootstrap 2.0 Compliant!
|
23
24
|
------------------------
|
@@ -161,6 +162,11 @@ You can add as many options to any form helper tag. If they are interpreted by B
|
|
161
162
|
<td>Styles the field as success (green)</td>
|
162
163
|
<td>= f.text_field :name, :success => 'This checked out OK'</td>
|
163
164
|
</tr>
|
165
|
+
<tr>
|
166
|
+
<th>info</th>
|
167
|
+
<td>Styles the field as info (blue)</td>
|
168
|
+
<td>= f.text_field :name, :info => 'Hey, it's OK'</td>
|
169
|
+
</tr>
|
164
170
|
<tr>
|
165
171
|
<th>warning</th>
|
166
172
|
<td>Styles the field as warning (yellow)</td>
|
@@ -4,32 +4,38 @@ module BootstrapForms
|
|
4
4
|
|
5
5
|
delegate :content_tag, :check_box_tag, :radio_button_tag, :link_to, :capture_html, :to => :template
|
6
6
|
|
7
|
-
|
7
|
+
def initialize(*args)
|
8
|
+
@field_options = {}
|
9
|
+
super(*args)
|
10
|
+
end
|
11
|
+
|
12
|
+
%w(select email_field file_field number_field password_field phone_field search_field telephone_field text_area text_field url_field).each do |method_name|
|
8
13
|
define_method(method_name) do |name, *args|
|
9
14
|
@name = name
|
10
15
|
@field_options = args.extract_options!
|
11
16
|
|
12
17
|
control_group_div do
|
13
|
-
label_field
|
14
|
-
|
18
|
+
label_field << input_div do
|
19
|
+
super(name, objectify_options(@field_options))
|
15
20
|
end
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
20
|
-
alias :phone_field :telephone_field
|
21
|
-
|
22
25
|
def check_box(name, *args)
|
23
26
|
@name = name
|
24
27
|
@field_options = args.extract_options!
|
25
28
|
|
26
29
|
control_group_div do
|
27
|
-
input_div do
|
30
|
+
input_div(false) do
|
28
31
|
if @field_options[:label] == false || @field_options[:label] == ''
|
29
|
-
|
32
|
+
super(name, objectify_options(@field_options)) << messages
|
30
33
|
else
|
31
|
-
html =
|
32
|
-
|
34
|
+
html = super(name, objectify_options(@field_options)) << (@field_options[:label].blank? ? @name.to_s.humanize : @field_options[:label])
|
35
|
+
html << messages
|
36
|
+
options = { :caption => html, :class => 'checkbox' }
|
37
|
+
options[:for] = @field_options[:id] if @field_options.include?(:id)
|
38
|
+
label(@name, options)
|
33
39
|
end
|
34
40
|
end
|
35
41
|
end
|
@@ -39,19 +45,19 @@ module BootstrapForms
|
|
39
45
|
@name = name
|
40
46
|
@field_options = opts
|
41
47
|
|
48
|
+
buttons = values.map do |text, value|
|
49
|
+
# Padrino does not stringify false values
|
50
|
+
html = radio_button(name, objectify_options(@field_options).merge(:value => "#{value}"))
|
51
|
+
html << text
|
52
|
+
|
53
|
+
options = { :caption => html, :class => 'radio', :for => nil }
|
54
|
+
label("#{name}_#{value}", options)
|
55
|
+
end.join('')
|
56
|
+
|
42
57
|
control_group_div do
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
options = objectify_options(@field_options).merge(:value => "#{value}")
|
47
|
-
if @field_options[:label] == '' || @field_options[:label] == false
|
48
|
-
extras { radio_button(name, options) + text }
|
49
|
-
else
|
50
|
-
html = extras { radio_button(name, options) + text }
|
51
|
-
label("#{name}_#{value}", :caption => html, :class => 'radio')
|
52
|
-
end
|
53
|
-
end.join('')
|
54
|
-
end
|
58
|
+
# Prevent "for" attribute for a non existant id
|
59
|
+
@field_options[:id] = nil
|
60
|
+
label_field << input_div { buttons }
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|
@@ -59,68 +65,53 @@ module BootstrapForms
|
|
59
65
|
@name = attribute
|
60
66
|
@field_options = args.extract_options!
|
61
67
|
|
68
|
+
boxes = records.map do |record|
|
69
|
+
value = record.send(record_id)
|
70
|
+
element_id = "#{object_model_name}_#{attribute}_#{value}"
|
71
|
+
|
72
|
+
options = objectify_options(@field_options).merge(:value => value, :id => element_id)
|
73
|
+
options[:checked] = "checked" if [object.send(attribute)].flatten.include?(value)
|
74
|
+
|
75
|
+
checkbox = check_box_tag("#{object_model_name}[#{attribute}][]", options)
|
76
|
+
checkbox << record.send(record_name)
|
77
|
+
content_tag(:label, checkbox, :class => ['checkbox', ('inline' if @field_options[:inline])].compact.join(' '))
|
78
|
+
end.join('')
|
79
|
+
|
62
80
|
control_group_div do
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
value = record.send(record_id)
|
67
|
-
element_id = "#{object_model_name}_#{attribute}_#{value}"
|
68
|
-
|
69
|
-
options = objectify_options(@field_options).merge(:id => element_id, :value => value)
|
70
|
-
options[:checked] = "checked" if [object.send(attribute)].flatten.include?(value)
|
71
|
-
|
72
|
-
checkbox = check_box_tag("#{object_model_name}[#{attribute}][]", options)
|
73
|
-
content_tag(:label, :class => ['checkbox', ('inline' if @field_options[:inline])].compact.join(' ')) do
|
74
|
-
checkbox + content_tag(:span, record.send(record_name))
|
75
|
-
end
|
76
|
-
end.join('')
|
77
|
-
end
|
78
|
-
end
|
81
|
+
# Prevent "for" attribute for a non existant id
|
82
|
+
@field_options[:id] = nil
|
83
|
+
label_field << input_div { boxes }
|
79
84
|
end
|
80
85
|
end
|
81
86
|
|
82
87
|
def collection_radio_buttons(attribute, records, record_id, record_name, *args)
|
83
88
|
@name = attribute
|
84
89
|
@field_options = args.extract_options!
|
85
|
-
|
90
|
+
|
91
|
+
buttons = records.map do |record|
|
92
|
+
value = record.send(record_id)
|
93
|
+
element_id = "#{object_model_name}_#{attribute}_#{value}"
|
94
|
+
options = objectify_options(@field_options).merge(:value => value, :id => element_id)
|
95
|
+
radio = radio_button(attribute, options)
|
96
|
+
radio << record.send(record_name)
|
97
|
+
content_tag(:label, radio, :class => ['radio', ('inline' if @field_options[:inline])].compact.join(' '))
|
98
|
+
end.join('')
|
86
99
|
|
87
100
|
control_group_div do
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
value = record.send(record_id)
|
92
|
-
element_id = "#{object_model_name}_#{attribute}_#{value}"
|
93
|
-
|
94
|
-
options = objectify_options(@field_options).merge(:id => element_id, :value => value)
|
95
|
-
options[:checked] = "checked" if value == object.send(attribute)
|
96
|
-
|
97
|
-
radiobutton = radio_button_tag("#{object_model_name}[#{attribute}]", options)
|
98
|
-
content_tag(:label, :class => ['radio', ('inline' if @field_options[:inline])].compact.join(' ')) do
|
99
|
-
radiobutton + content_tag(:span, record.send(record_name))
|
100
|
-
end
|
101
|
-
end.join('')
|
102
|
-
end
|
103
|
-
end
|
101
|
+
# Prevent "for" attribute for a non existant id
|
102
|
+
@field_options[:id] = nil
|
103
|
+
label_field << input_div { buttons }
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
107
|
def uneditable_input(name, *args)
|
108
108
|
@name = name
|
109
109
|
@field_options = args.extract_options!
|
110
|
-
@
|
110
|
+
@field_options[:id] ||= field_id(@name)
|
111
|
+
@field_options[:label] ||= "#{field_human_name(@name)}: " # conform to Padrino's default
|
112
|
+
@field_options[:value] ||= object.send(@name.to_sym)
|
111
113
|
|
112
|
-
|
113
|
-
label_field + input_div do
|
114
|
-
extras do
|
115
|
-
value = @field_options.delete(:value)
|
116
|
-
@field_options[:class] = [@field_options[:class], 'uneditable-input'].compact.join ' '
|
117
|
-
|
118
|
-
content_tag(:span, objectify_options(@field_options)) do
|
119
|
-
template.escape_html(value || object.send(@name.to_sym))
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
114
|
+
template.uneditable_input_tag(@name, @field_options)
|
124
115
|
end
|
125
116
|
|
126
117
|
def button(*args)
|
@@ -136,7 +127,8 @@ module BootstrapForms
|
|
136
127
|
end
|
137
128
|
|
138
129
|
def actions(&block)
|
139
|
-
|
130
|
+
content = block_given? ? capture_html(&block) : [submit, cancel].join(' ')
|
131
|
+
content_tag(:div, content, :class => 'form-actions')
|
140
132
|
end
|
141
133
|
end
|
142
134
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module BootstrapForms
|
2
2
|
module Helpers
|
3
|
-
module FormHelper
|
3
|
+
module FormHelper
|
4
4
|
def bootstrap_form_for(record, path, options = {}, &block)
|
5
5
|
options[:builder] = BootstrapForms::FormBuilder
|
6
6
|
form_for(record, path, options) do |f|
|
7
7
|
capture(f, &block)
|
8
8
|
end
|
9
9
|
end
|
10
|
-
|
10
|
+
|
11
11
|
def bootstrap_fields_for(record, instance_or_collection = nil, &block)
|
12
12
|
fields_for(record, instance_or_collection, &block)
|
13
13
|
end
|
@@ -8,10 +8,12 @@ module BootstrapForms
|
|
8
8
|
define_method("bootstrap_#{method_name}") do |name, *args|
|
9
9
|
@name = name
|
10
10
|
@field_options = args.extract_options!
|
11
|
+
# TODO: use whatever method Padrino's builder uses...
|
12
|
+
@field_options[:id] ||= name
|
11
13
|
|
12
14
|
control_group_div do
|
13
15
|
label_field + input_div do
|
14
|
-
|
16
|
+
send(method_name.to_sym, name, objectify_options(@field_options))
|
15
17
|
end
|
16
18
|
end
|
17
19
|
end
|
@@ -24,16 +26,18 @@ module BootstrapForms
|
|
24
26
|
@field_options = args.extract_options!
|
25
27
|
@args = args
|
26
28
|
|
29
|
+
# Padrino will always generate a label's for attribute, this results in invalid HTML.
|
30
|
+
# label_field will use :id as the for attribute if present.
|
31
|
+
@field_options[:id] = nil unless @field_options[:id]
|
32
|
+
|
27
33
|
control_group_div do
|
28
|
-
label_field
|
29
|
-
|
30
|
-
|
31
|
-
|
34
|
+
label_field << input_div do
|
35
|
+
# Due to how Padrino implements ERB this block (and others) will be called many (4?) times.
|
36
|
+
# To avoid string accumulation under :class -and to keep option passing somewhat straightforward- we just dup()
|
37
|
+
options = @field_options.dup
|
38
|
+
options[:class] = [options[:class], 'uneditable-input'].compact.join " "
|
32
39
|
|
33
|
-
|
34
|
-
escape_html(value)
|
35
|
-
end
|
36
|
-
end
|
40
|
+
content_tag(:span, escape_html(options[:value]), objectify_options(options.except(:value)))
|
37
41
|
end
|
38
42
|
end
|
39
43
|
end
|
@@ -58,19 +62,21 @@ module BootstrapForms
|
|
58
62
|
def bootstrap_cancel_tag(*args)
|
59
63
|
options = args.extract_options!
|
60
64
|
options[:class] ||= 'btn cancel'
|
61
|
-
options[:back]
|
65
|
+
options[:back] ||= 'javascript:history.go(-1)'
|
62
66
|
|
63
67
|
name = args.shift || 'Cancel'
|
64
68
|
link_to(name, options[:back], options.except(:back))
|
65
69
|
end
|
66
70
|
|
67
71
|
def bootstrap_actions(&block)
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
# This somethat redundant arrangement is necessary (according to the test cases) to make this call work with Slim, ERB, and HAML.
|
73
|
+
# Though oddly enough this Slim block test still fails yet works in production. Not sure why this is but, nevertheless
|
74
|
+
# we keep this in place.
|
75
|
+
if block_given?
|
76
|
+
content_tag(:div, :class => 'form-actions', &block)
|
77
|
+
else
|
78
|
+
content = [bootstrap_submit_tag, bootstrap_cancel_tag].join(' ')
|
79
|
+
content_tag(:div, content, :class => 'form-actions')
|
74
80
|
end
|
75
81
|
end
|
76
82
|
end
|
@@ -13,12 +13,13 @@ module BootstrapForms
|
|
13
13
|
end
|
14
14
|
|
15
15
|
klasses = ['control-group']
|
16
|
-
klasses << 'error'
|
16
|
+
klasses << 'error' if @field_options[:error]
|
17
|
+
klasses << 'info' if @field_options[:info]
|
17
18
|
klasses << 'success' if @field_options[:success]
|
18
19
|
klasses << 'warning' if @field_options[:warning]
|
19
20
|
klass = klasses.join(' ')
|
20
21
|
|
21
|
-
content_tag(:div, :class => klass
|
22
|
+
content_tag(:div, block[], :class => klass)
|
22
23
|
end
|
23
24
|
|
24
25
|
def error_string
|
@@ -26,24 +27,25 @@ module BootstrapForms
|
|
26
27
|
errors = object.errors[@name]
|
27
28
|
if errors.any?
|
28
29
|
errors.map { |e|
|
29
|
-
"#{@
|
30
|
+
"#{@field_options[:label] || @name.to_s.humanize} #{e}"
|
30
31
|
}.join(', ')
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
35
|
-
def input_div(&block)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
capture_html(&block) if block_given?
|
45
|
-
end
|
36
|
+
def input_div(include_messages = true, &block)
|
37
|
+
if @field_options[:append] || @field_options[:prepend]
|
38
|
+
klasses = []
|
39
|
+
klasses << 'input-prepend' if @field_options[:prepend]
|
40
|
+
klasses << 'input-append' if @field_options[:append]
|
41
|
+
klass = klasses.join(' ')
|
42
|
+
content = content_tag(:div, addon { block[] }, :class => klass)
|
43
|
+
else
|
44
|
+
content = block[]
|
46
45
|
end
|
46
|
+
|
47
|
+
content << messages if include_messages
|
48
|
+
content_tag(:div, content, :class => 'controls')
|
47
49
|
end
|
48
50
|
|
49
51
|
def label_field(&block)
|
@@ -51,40 +53,45 @@ module BootstrapForms
|
|
51
53
|
return ''
|
52
54
|
else
|
53
55
|
options = { :class => 'control-label' }
|
56
|
+
# Allow for setting for to nil i.e., no for attribute. Padrino will always generate one
|
57
|
+
options[:for] = @field_options[:id] if @field_options.include?(:id)
|
54
58
|
options[:caption] = @field_options[:label] if @field_options[:label]
|
55
59
|
|
56
60
|
if respond_to?(:object)
|
57
61
|
label(@name, options, &block)
|
58
|
-
|
62
|
+
else
|
59
63
|
label_tag(@name, options, &block)
|
60
64
|
end
|
61
65
|
end
|
62
66
|
end
|
63
67
|
|
64
|
-
%w(help_inline
|
68
|
+
%w(help_block help_inline bootstrap_error success warning info append prepend).each do |method_name|
|
65
69
|
define_method(method_name) do |*args|
|
70
|
+
# Hack to avoid clashing with Padrino's error method
|
71
|
+
method_name = "error" if method_name == "bootstrap_error"
|
66
72
|
return '' unless value = @field_options[method_name.to_sym]
|
67
73
|
case method_name
|
68
74
|
when 'help_block'
|
69
|
-
element = :p
|
70
75
|
klass = 'help-block'
|
71
76
|
when 'append', 'prepend'
|
72
|
-
element = :span
|
73
77
|
klass = 'add-on'
|
74
78
|
else
|
75
|
-
element = :span
|
76
79
|
klass = 'help-inline'
|
77
80
|
end
|
78
|
-
content_tag(
|
81
|
+
content_tag(:span, value, :class => klass)
|
79
82
|
end
|
80
83
|
end
|
81
84
|
|
82
|
-
def
|
83
|
-
[
|
85
|
+
def messages
|
86
|
+
[help_inline, bootstrap_error, success, warning, info, help_block].join('')
|
87
|
+
end
|
88
|
+
|
89
|
+
def addon(&block)
|
90
|
+
[prepend, block[], append].join('')
|
84
91
|
end
|
85
92
|
|
86
93
|
def objectify_options(options)
|
87
|
-
options.except(:label, :help_inline, :error, :success, :warning, :
|
94
|
+
options.except(:label, :help_block, :help_inline, :error, :success, :warning, :info, :prepend, :append)
|
88
95
|
end
|
89
96
|
end
|
90
97
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "padrino_bootstrap_forms"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.2"
|
4
4
|
s.authors = ["Seth Vargo", "Skye Shaw"]
|
5
|
-
s.email = "
|
5
|
+
s.email = "skye.shaw@gmail.com"
|
6
6
|
s.homepage = "https://github.com/sshaw/padrino_bootstrap_forms"
|
7
7
|
s.summary = "Padrino Bootstrap Forms makes Twitter's Bootstrap on Padrino easy!"
|
8
8
|
s.description = <<-DESC
|
9
|
-
|
9
|
+
Padrino Bootstrap Forms is a port of Seth Vargo's Bootstrap Forms for Rails.
|
10
10
|
It makes Twitter's Bootstrap on Padrino easy to use by creating helpful form builders that minimize markup in your views.
|
11
11
|
DESC
|
12
12
|
s.files = `git ls-files`.split("\n")
|
@@ -14,9 +14,11 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
15
|
s.require_paths = ["lib"]
|
16
16
|
|
17
|
-
s.add_dependency "padrino
|
17
|
+
s.add_dependency "padrino", "~> 0.10.6"
|
18
18
|
s.add_dependency "activesupport", "~> 3.0"
|
19
19
|
s.add_development_dependency "rake"
|
20
|
+
s.add_development_dependency "slim", "~> 1.3.6"
|
21
|
+
s.add_development_dependency "haml", "~> 3.1"
|
20
22
|
s.add_development_dependency "rack-test", "~> 0.6.1"
|
21
|
-
s.add_development_dependency "rspec", "~> 2.9
|
23
|
+
s.add_development_dependency "rspec", "~> 2.9"
|
22
24
|
end
|