Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #5621 from rafaelfranca/fix-2492-master | Jeremy Kemper | 2012-03-27 | 1 | -3/+3 |
|\ | | | | | Fix label_tag to merge the options hash with the object hash | ||||
| * | Check if the options hash already exists and merge it with the another | Rafael Mendonça França | 2012-03-27 | 1 | -3/+3 |
| | | | | | | | | | | | | hash. Closes #2492 and #5615 | ||||
* | | Don't break Haml with textarea newline fix. | James Coleman | 2012-03-27 | 1 | -1/+1 |
|/ | | | | | | See issue #393, issue #4000, issue #5190, and issue #5191. Adds a newline after the textarea opening tag based on @codykrieger's original patch so that we don't cause regressions in Haml-using apps. The regression caused textarea tags to add newlines to the field unintentionally (each update/save added an extra newline.) Also fix 6 more tests that didn't yet have the newline expectation. | ||||
* | add include_hidden option to checkbox tag | Sergey Nartimov | 2012-03-13 | 1 | -2/+8 |
| | |||||
* | add 'include_hidden' option to select tag, closes #5402 | Vasiliy Ermolovich | 2012-03-13 | 1 | -1/+2 |
| | |||||
* | Fixes #5324 by removing default size options from input:text and default ↵ | Philip Arndt | 2012-03-10 | 3 | -7/+2 |
| | | | | cols and rows options from textarea. | ||||
* | Merge branch 'master-security' | Aaron Patterson | 2012-03-01 | 1 | -3/+2 |
|\ | | | | | | | | | | | | | | | | | | | | | | | * master-security: Ensure [] respects the status of the buffer. delete vulnerable AS::SafeBuffer#[] use AS::SafeBuffer#clone_empty for flushing the output_buffer add AS::SafeBuffer#clone_empty fix output safety issue with select options Conflicts: actionpack/lib/action_view/helpers/tags/base.rb | ||||
| * | fix output safety issue with select options | Sergey Nartimov | 2012-02-20 | 1 | -3/+3 |
| | | |||||
* | | Add a new line after the textarea opening tag. | Rafael Mendonça França | 2012-02-27 | 1 | -1/+1 |
| | | | | | | | | Closes #393 | ||||
* | | Fix collection_check_boxes and collection_radio_buttons when using local | Rafael Mendonça França | 2012-02-26 | 1 | -0/+1 |
| | | | | | | | | variables in the form builder | ||||
* | | use content_tag instead strings | Vasiliy Ermolovich | 2012-02-25 | 1 | -3/+4 |
| | | |||||
* | | correct fetching :name option in form fields | Vasiliy Ermolovich | 2012-02-23 | 1 | -3/+3 |
|/ | |||||
* | add selected and disabled option to grouped select | Vasiliy Ermolovich | 2012-02-18 | 1 | -1/+6 |
| | |||||
* | 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 |
| |