diff --git a/README.md b/README.md index 251770e..0b8079b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This bundle implements the [Bootstrap DateTime Picker](https://github.com/smalot/bootstrap-datetimepicker) in a Form Type for Symfony 2.*. The bundle structure is inspired by GenemuFormBundle. -Demo : http://www.malot.fr/bootstrap-datetimepicker/demo.php +Demo: http://www.malot.fr/bootstrap-datetimepicker/demo.php Please feel free to contribute, to fork, to send merge request and to create ticket. @@ -10,21 +10,10 @@ Please feel free to contribute, to fork, to send merge request and to create tic ### Step 1: Install DatetimepickerBundle -Add the following dependency to your composer.json file: - -``` json -{ - "require": { - - "stephanecollot/datetimepicker-bundle": "dev-master" - } -} -``` - -and then run +Add the bundle to your composer.json file: ```bash -php composer.phar update stephanecollot/datetimepicker-bundle +php composer.phar require stephanecollot/datetimepicker-bundle ``` ### Step 2: Enable the bundle @@ -51,7 +40,29 @@ sc_datetimepicker: ### Step 3: Initialize assets ``` bash -$ php app/console assets:install web/ +php app/console assets:install +``` + +###Step 4: Add CSS an JS to your main template + +Probably somewhere inside
.. +``` twig + {% stylesheets + "@SCDatetimepickerBundle/Resources/public/css/datetimepicker.css" + %} + + {% endstylesheets %} +``` + +Probably shortly before ..