| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
collection_check_boxes to a private method.
It will make easier to extend.
Example:
class CollectionRadioButtons < ActionView::Helpers::Tags::CollectionRadioButtons
include CollectionExtensions
def render
wrap_rendered_collection(super, @options)
end
private
def render_component(builder)
builder.radio_button + builder.label(:class => "collection_radio_buttons")
end
end
|
|
|
|
|
| |
When you have an explicit index set, then when you build an input tag
with :multiple => true, it doesn't add [] to the end of its name, although
it should.
|
|
|
|
|
|
|
|
|
|
| |
This gives a lot more flexibility to the user, for instance to generate
a collection of check boxes and labels, allowing to add custom classes
or data-* attributes to the label/check_box using another object
attribute.
This basically mimics options_for_select functionality that accepts a
third option for each item to generate html attributes for each option.
|
|
|
|
|
|
| |
collection_radio_buttons
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
| |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
|
|
|
|
| |
This will make it easy for the user to handle how check box/radio and
labels should be generated, abstracting any text/value/default html
options required to make it work.
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
| |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
| |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
| |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
|
|
| |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
|
[Carlos Antonio da Silva + Rafael Mendonça França]
|