diff --git a/Resources/doc/tips/form_prototype.md b/Resources/doc/tips/form_prototype.md index c4898c0f..f6ca3d94 100644 --- a/Resources/doc/tips/form_prototype.md +++ b/Resources/doc/tips/form_prototype.md @@ -1,6 +1,7 @@ # Prototype usage within form collections -WARNING : This is currently only available for chosen, select2 and uploadify. +WARNING : This is currently not available for all types, please open an issue or +a PR if it doesn't work for your type. If you dynamically add one of our field in your template using the Symfony protoype feature, you'd probably notify that it doesn't show up correctly. Indeed, most of our types require some javascript, diff --git a/Resources/views/Form/jquery_layout.html.twig b/Resources/views/Form/jquery_layout.html.twig index 851153dc..9adf86e3 100644 --- a/Resources/views/Form/jquery_layout.html.twig +++ b/Resources/views/Form/jquery_layout.html.twig @@ -73,18 +73,23 @@ {% block genemu_jquerydate_javascript %} {% spaceless %} - {% if configs.buttonImage is defined %} - {% set configs = configs|merge({ - "buttonImage": asset(configs.buttonImage) - }) %} - {% endif %} - - {% if culture == "en" %} - {% set culture = "en-GB" %} - {% endif %} {% endspaceless %} -{% endblock genemu_jquerydate_javascript %} +{% endblock %} {% block genemu_jqueryslider_javascript %} {% spaceless %}