Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow collection helpers with block to access current object in the collection | Carlos Antonio da Silva | 2012-02-13 | 3 | -9/+10 |
| | | | | | | | | | | 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. | ||||
* | Add HTML5 input[type="date"] helper | Olek Janiszewski | 2012-02-12 | 2 | -1/+16 |
| | |||||
* | Remove default class to collection_check_boxes and | Rafael Mendonça França | 2012-02-02 | 2 | -2/+2 |
| | | | | | | collection_radio_buttons [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Allow collection radio_buttons/check_boxes to access current text/value | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+2 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Allow proc for value/text method in collection_select | Carlos Antonio da Silva | 2012-02-02 | 1 | -4/+0 |
| | | | | | | And options_from_collection_for_select as well. [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Move collection radio buttons / check boxes back to FormOptionsHelper | Carlos Antonio da Silva | 2012-02-02 | 1 | -8/+6 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Extract common collection helpers to a module to avoid too much inheritance | Carlos Antonio da Silva | 2012-02-02 | 3 | -69/+93 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Create a Builder factory class to use with collection helpers + block | Carlos Antonio da Silva | 2012-02-02 | 2 | -17/+41 |
| | | | | | | | | 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] | ||||
* | Refactor collection helpers to extract radio/checkbox/label calls | Carlos Antonio da Silva | 2012-02-02 | 2 | -8/+18 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Remove collection_wrapper* and item_wrapper* options | Carlos Antonio da Silva | 2012-02-02 | 2 | -21/+3 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Refactor value sanitization logic | Carlos Antonio da Silva | 2012-02-02 | 2 | -8/+16 |
| | | | | | | | | | | * Extract value sanitization from default name and id method and new collection helpers; * No need to sanitize value in default name and id always; * Improve value_before_type_cast to avoid concating the same method name string twice. [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Refactor the methods to use instance variables | Rafael Mendonça França | 2012-02-02 | 3 | -22/+26 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Refactor render_collection method | Rafael Mendonça França | 2012-02-02 | 2 | -13/+9 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Add collection_check_boxes helper | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+30 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Create collection_radio_buttons helper | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+85 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Replicate :form html5 attribute to hidden field for check_box | Carlos Antonio da Silva | 2012-02-02 | 1 | -1/+5 |
| | | | | | When the new html5 attribute :form is given to the check_box helper, it should be replicated to the hidden field as well. Closes #4848 | ||||
* | Merge pull request #4804 from rafaelfranca/check_box-fix | José Valim | 2012-02-01 | 1 | -1/+1 |
|\ | | | | | check_box with nil as unchecked value should be HTML safe | ||||
| * | check_box with nil as unchecked value should be HTML safe | Rafael Mendonça França | 2012-01-31 | 1 | -1/+1 |
| | | | | | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | | Refactor select tag form helpers | Carlos Antonio da Silva | 2012-01-31 | 2 | -11/+25 |
|/ | |||||
* | Do not generate label for attribute when giving nil | Carlos Antonio da Silva | 2012-01-26 | 1 | -1/+1 |
| | |||||
* | Raise a better error if anyone wants to create your own ↵ | Rafael Mendonça França | 2012-01-23 | 1 | -2/+3 |
| | | | | ActionView::Helpers::Tags::Base child and do not implement the render method | ||||
* | properly memoize {field_type,select_type} as class variable | Akira Matsuda | 2012-01-23 | 2 | -2/+14 |
| | |||||
* | Fix inconsistent ability to use a range as choices for select_tag. | Jeremy Walker | 2012-01-21 | 1 | -0/+1 |
| | |||||
* | Extract input_checked? to a module | Rafael Mendonça França | 2012-01-17 | 4 | -9/+24 |
| | |||||
* | Extract DatetimeSelect | Rafael Mendonça França | 2012-01-17 | 1 | -0/+8 |
| | |||||
* | Extract TimeSelect | Rafael Mendonça França | 2012-01-17 | 2 | -1/+13 |
| | |||||
* | Extract DateSelect | Rafael Mendonça França | 2012-01-17 | 1 | -0/+60 |
| | |||||
* | Extract TimeZoneSelect | Rafael Mendonça França | 2012-01-17 | 1 | -0/+20 |
| | |||||
* | Extract GroupedCollectionSelect | Rafael Mendonça França | 2012-01-17 | 1 | -0/+24 |
| | |||||
* | Extract CollectionSelect | Rafael Mendonça França | 2012-01-17 | 3 | -26/+46 |
| | |||||
* | Extract Select | Rafael Mendonça França | 2012-01-17 | 1 | -0/+57 |
| | |||||
* | Extract RangeField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+8 |
| | |||||
* | Extract NumberField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+19 |
| | |||||
* | Extract EmailField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+8 |
| | |||||
* | Extract UrlField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+8 |
| | |||||
* | Extract TelField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+8 |
| | |||||
* | Extract SearchField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+24 |
| | |||||
* | Remove code duplication between CheckBox ans RadioButton | Rafael Mendonça França | 2012-01-17 | 3 | -19/+14 |
| | |||||
* | Extract RadioButton | Rafael Mendonça França | 2012-01-17 | 3 | -4/+39 |
| | |||||
* | Extract CheckBox | Rafael Mendonça França | 2012-01-17 | 1 | -0/+60 |
| | |||||
* | Extract TextArea | Rafael Mendonça França | 2012-01-17 | 1 | -0/+20 |
| | |||||
* | Extract FileField | Rafael Mendonça França | 2012-01-17 | 2 | -2/+14 |
| | |||||
* | Extract HiddenField | Rafael Mendonça França | 2012-01-17 | 1 | -0/+12 |
| | |||||
* | Extract PasswordField | Rafael Mendonça França | 2012-01-17 | 2 | -1/+19 |
| | |||||
* | Rename classes | Rafael Mendonça França | 2012-01-17 | 3 | -3/+3 |
| | |||||
* | Extract duplicated code to a class | Rafael Mendonça França | 2012-01-17 | 3 | -186/+115 |
| | |||||
* | Extract TextFieldTag | Rafael Mendonça França | 2012-01-17 | 1 | -0/+114 |
| | |||||
* | Extract LabelTag | Rafael Mendonça França | 2012-01-17 | 1 | -0/+147 |