Success

User tests: Successful: Unsuccessful:

avatar Achal-Aggarwal
Achal-Aggarwal
17 Aug 2013

...ields and unit tests.

Other one was #1758

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31347

Instructions
Just merge that code branch and use HTML5 attribute.
For attribute

  1. placeholder : use hint=”Placeholder text” to set placeholder
  2. required : use required=”true” or required=”required” or required=”1” to make field required
  3. autocomplete : use autocomplete=”false” or autocomplete=”off” or autocomplete=”0” to disable autocomplete.
  4. autofocus : use autofocus=”true” or autofocus=”on” or autofocus=”1” to set focus automatically to the field.
  5. spellcheck : use spellcheck =”false” or spellcheck =”off” or spellcheck =”0” to disable spellcheck.
  6. multiple : use multiple=”true” or multiple=”required” so that field can accept multiple values of its type.
    There is little bit refactoring with respect to boolean attributes (disabled, readonly), so everything should work as it does previously.

For the non-supported browsers, fallback js is automatically loaded to support it
Usage of some common attributes are on http://docs.joomla.org/Text_form_field_type/3.2

Install this component and test new field attributes.
https://docs.google.com/file/d/0B3rA3UKTXpVsV2ttNUE5MGNqWkU/edit?usp=sharing

Note only attributes work with this component as this PR is for only New Attributes

avatar Achal-Aggarwal Achal-Aggarwal - open - 17 Aug 2013
avatar Achal-Aggarwal
Achal-Aggarwal - comment - 17 Aug 2013

replacing #1758

avatar nicksavov
nicksavov - comment - 25 Aug 2013

Hi Achal,

Looks like this is out-of-sync. Could you update it to master?

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 25 Aug 2013

Sorry for that. It is in sync with master now.

avatar wilsonge
wilsonge - comment - 26 Aug 2013

I'm not going to envy the person who's going to solve the merge conflicts between field.php in repeatable form elements and this :P

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 27 Aug 2013

Install this component and test new field attributes.
https://docs.google.com/file/d/0B3rA3UKTXpVsV2ttNUE5MGNqWkU/edit?usp=sharing

Note only attributes work with this component as this PR is for only New Attributes

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 28 Aug 2013

For both new attributes and types see PR #1842

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 28 Aug 2013

Closing this one. Now I will maintain only one PR for the whole project i.e. #1842

Add a Comment

Login with GitHub to post a comment