namesco / ZTal

ZTal makes integrating the PHP templating system PHPTAL into Zend Framework easy.
Other
21 stars 3 forks source link

html5 placeholder attribute #15

Open john-07 opened 12 years ago

john-07 commented 12 years ago

add line: placeholder Ztal_Tales_Form.getAttrib:element,string:placeholder for support this attribute

<!-- Will display an <input> element -->
<input metal:define-macro="inputElement"
       tal:attributes="type Ztal_Tales_Form.inputType:element;
                       name name | element/getFullyQualifiedName;
                       id element/getId;
                       class Ztal_Tales_Form.getAttrib:element,string:class;
                       value value | nothing;
                       maxlength Ztal_Tales_Form.getAttrib:element,string:maxlength;
                       checked checked | nothing;
                       autocomplete Ztal_Tales_Form.getAttrib:element,string:autocomplete;
                       disabled Ztal_Tales_Form.isDisabled:element;
                       placeholder Ztal_Tales_Form.getAttrib:element,string:placeholder"
/>
ChrisAnstey commented 12 years ago

This has been added on the 'develop' branch now, so will be merged in to the master branch on the next release.