Closed pvgnd closed 10 years ago
@pierrick-vignand You are welcome to contribute! I'll write down a draft of what has to be done to add a new type:
***Type.php
class in Form\Types
or new ***Extension.php
class in Form\Extensions
xxx_widget
template in Resources\views\Form\form_widgets.html.twig
xxx_stylesheet
template in Resources\views\Form\form_stylesheets.html.twig
xxx_javascript
template in Resources\views\Form\form_javascripts.html.twig
Resources/public/xxx
and include them in base templates:
Resources\views\javascripts.html.twig
(add yui compressor filter)Resources\views\javascripts_assetic_less.html.twig
(minified versions)Resources\views\stylesheets.html.twig
(add yui compressor filter)Resources\views\stylesheets_less.html.twig
(minified versions)Note: you can easily create the minified versions on http://refresh-sf.com/yui/
OK, I work on it and I will submit a pull request as soon as possible.
@pierrick-vignand updated the draft -> added info about assets
@loostro And the job is done ! I'm available to correct code if necessary.
An autogrowed texterea is often usefull, so it would be wonderfull to have a ready to use type.
Using jQuery Elastic for example : http://unwrongest.com/projects/elastic/
I could contribute if you want.