Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug creating invalid HTML in select options | Rusty Geldmacher | 2012-07-10 | 1 | -2/+2 |
| | | | | | | When a select tag is created for a field with errors, then the inserted options will errantly have a <div class="field_with_errors"> wrapping them. | ||||
* | Refactor date related helpers | Carlos Galdino | 2012-05-22 | 6 | -50/+26 |
| | |||||
* | Add several HTML5 input helpers | Carlos Galdino | 2012-05-21 | 4 | -0/+89 |
| | | | | | | | | | | | | The input types added are: - input[type="month"] - input[type="week"] - input[type="datetime"] - input[type="datetime-local"] | ||||
* | Add HTML5 input[type="color"] helper | Carlos Galdino | 2012-05-21 | 1 | -0/+25 |
| | |||||
* | Add HTML5 input[type="time"] helper | Alex Soulim | 2012-05-18 | 1 | -0/+14 |
| | |||||
* | Don't need to force size to nil | Rafael Mendonça França | 2012-05-16 | 4 | -10/+0 |
| | |||||
* | Make :prompt work as documented | Rafael Mendonça França | 2012-05-16 | 1 | -2/+1 |
| | |||||
* | Do not add `:include_blank` option if prompt is present | Rafael Mendonça França | 2012-05-13 | 1 | -3/+3 |
| | |||||
* | Only set `:include_blank` if the value of this options is not present | Rafael Mendonça França | 2012-05-13 | 1 | -1/+1 |
| | |||||
* | `:include_blank` should be true if the size option is nil | Rafael Mendonça França | 2012-05-13 | 1 | -2/+2 |
| | |||||
* | Always include the options :include_blank if the select has a required attribute | angelo giovanni capilleri | 2012-05-13 | 1 | -0/+5 |
| | | | | and display size 1 and not multiple attribute, Fixes #5908 | ||||
* | check checkboxes with array of strings as :checked option | Vasiliy Ermolovich | 2012-05-05 | 1 | -1/+1 |
| | |||||
* | Change check_box to work inverting the checked and unchecked value | Rafael Mendonça França | 2012-04-29 | 1 | -4/+2 |
| | | | | | | | | | | This fixes: * Boolean with inverted logic * Integer with inverted logic * BigDecimal with inverted logic Fixes #3995 | ||||
* | pass default value as argument to fetch | Sergey Nartimov | 2012-04-06 | 1 | -1/+1 |
| | |||||
* | Small #label method refactoring, thanks @rafaelfranca | Alexey Vakhov | 2012-04-01 | 1 | -3/+2 |
| | |||||
* | Block version of label should wrapped in field_with_errors in case of error | Alexey Vakhov | 2012-04-01 | 1 | -1/+2 |
| | |||||
* | 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 |