diff --git a/docs/reference/form_types.rst b/docs/reference/form_types.rst index 18176d15..7104f81e 100644 --- a/docs/reference/form_types.rst +++ b/docs/reference/form_types.rst @@ -276,32 +276,7 @@ They will allow you to have a JS date picker onto your form fields as follows: .. image:: ../images/datepicker.png -In order to use them, you'll need to perform a bit of setup: - -.. code-block:: yaml - - # config/packages/twig.yaml - - twig: - form_themes: - - '@SonataForm/Form/datepicker.html.twig' - -In your layout, you'll need to add the assets dependencies (feel free to -adapt this to your needs, for instance, to use with assetic): - -.. code-block:: html - -
- - - - - - - - - -Finally, in your form, you may use the form type as follows:: +In your form, you may use the form type as follows:: // src/Admin/PageAdmin.php