Commit Graph

28 Commits

Author SHA1 Message Date
José Valim 4391685bfd Make html5 a wrapper option. 2011-12-04 16:15:32 +01:00
José Valim 05cf7a24df Small cleanup on implementation. 2011-12-04 15:56:05 +01:00
José Valim 10f2e67708 Make pattern a component. 2011-12-04 13:40:04 +01:00
José Valim e8749ae07e Add class default options to avoid has_*? checks. 2011-12-04 13:29:59 +01:00
José Valim ce19f2b898 Make maxlength a component. 2011-12-04 13:14:39 +01:00
José Valim 6bf59dd508 Get rid of the enabled/disabled in favor of has_*? syntax. 2011-12-04 12:29:53 +01:00
José Valim a4655ba845 Refactor Inputs::Base into helpers and make :on based on the resource status. 2011-09-03 12:00:23 +02:00
José Valim 5d6d977fc8 Break up mapping input and also provide an enable API. 2011-09-03 11:13:29 +02:00
José Valim 6dfdbae374 Create PasswordInput. 2011-09-03 11:02:58 +02:00
Vinicius Baggio aca5fe06bf Implementing patterns in text input. Closes #193 2011-08-30 21:26:47 -03:00
Rafael Mendonça França 4a4c99f7fa Add support for maxlenght to text area inputs. Closes #232 2011-08-30 20:52:31 -03:00
Stephen Bartlett 51a849744c incorporated feedback from rafaelfranca 2011-07-21 12:17:17 +10:00
Stephen Bartlett 43677ef053 support for maxlength on string inputs infered from validation which takes presedence over database column metadata 2011-07-17 21:15:36 +10:00
Carlos Antonio da Silva da649740c9 Change use_html5 option to html5 2011-05-16 06:42:58 -03:00
Rafael Mendonça França 12cae98a62 Remove unnecessary code 2011-04-07 21:41:12 -03:00
Wolfram Arnold 25803824eb Add configuration option to explicitly turn off HTML5 extensions.
This includes the new field types such as email, number, search, url,
tel, and the new attributes such as required, autofocus, maxlength, min, max, step.
None of these are technically allowed in the HTML4 or XHTML1.0 doc types.
Test coverage and updated README.

Update config file generator with new HTML5 option.
2011-04-07 21:25:27 -03:00
Alexander Zubkov cb1c8ffa57 Move 'input_method' to Base, map 'text_field' and 'password_field' in 'StringInput' 2011-03-25 10:11:05 -03:00
Carlos Antonio da Silva c0e196e575 Refactor string input a bit 2010-11-21 15:12:50 -02:00
José Valim ebde237bf2 Move placeholders to a component.
This commit changes Inputs::Base to handle input_html_options on initialization and allows components to return nil.
2010-11-07 10:43:20 +01:00
Rafael Mendonça França 8a85618022 Adding placeholder option to the numeric input 2010-10-13 03:20:49 +08:00
Carlos Antonio da Silva e143376f8f Use placeholders instead of placeholder for I18n, following the conventions 2010-09-24 00:51:57 -03:00
Carlos Antonio da Silva 6a7841d9e3 Ensure placeholders are not generated with blank values 2010-09-24 00:44:13 -03:00
Jonathan Hicks 85922612fc Adding the placeholder=false option 2010-09-24 11:33:00 +08:00
Jonathan Hicks f42f09a743 Removing useless 'if' conditional 2010-09-24 11:32:59 +08:00
Jonathan Hicks 22d05e65ab Adding a placeholder option to the string input and have it use
i18n translation, when possible.
2010-09-24 11:32:58 +08:00
José Valim 1ef232cf6d Numberic type inputs now have type=number for HTML5. 2010-06-01 23:40:12 +02:00
José Valim fcf06a5c76 Ensure type is text unless for url and email types. 2010-03-06 00:40:46 +01:00
José Valim 433f5a7603 Add support for both email and url input types from HTML 5. 2010-02-06 22:21:26 +01:00