Permalink
Browse files

Support CheckBoxesInput.

  • Loading branch information...
1 parent c264f15 commit 40598693aa0dfee6e3d7a98dea704f4675209a07 @mjbellantoni committed Aug 12, 2012
Showing with 0 additions and 51 deletions.
  1. +0 −51 lib/formtastic-bootstrap/inputs/base/choices.rb
@@ -1,51 +0,0 @@
-module FormtasticBootstrap
- module Inputs
- module Base
- module Choices
-
-
- # def choices_group_wrapping(&block)
- # template.content_tag(:ul,
- # template.capture(&block),
- # choices_group_wrapping_html_options
- # )
- # end
-
- # def input_div_wrapping(&block)
- # template.content_tag(:div, choices_wrapping_html_options) do
- # [yield, error_html(:block), hint_html(:block)].join("\n").html_safe
- # end
- # end
- #
- # def choices_wrapping_html_options
- # # TODO Call the Formtastic one explicity and append?
- # { :class => "choices input" }
- # end
- #
- #
- # def choices_group_wrapping_html_options
- # { :class => "choices-group inputs-list" }
- # end
- #
- # def choice_label(choice)
- # "\n".html_safe + template.content_tag(:span) do
- # # (choice.is_a?(Array) ? choice.first : choice).to_s
- # (choice.is_a?(Array) ? choice.first : choice).to_s
- # end
- # end
- #
- # # This is actually a label in Bootstrap.
- # def legend_html
- # template.content_tag(:label, label_html_options) do
- # render_label? ? label_text : "".html_safe
- # end
- # end
- #
- # def label_html_options
- # super.merge(:for => nil)
- # end
-
- end
- end
- end
-end

0 comments on commit 4059869

Please sign in to comment.