Download the PHP package alexvasilyev/datetimepicker-bundle without Composer
On this page you can find all versions of the php package alexvasilyev/datetimepicker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexvasilyev/datetimepicker-bundle
More information about alexvasilyev/datetimepicker-bundle
Files in alexvasilyev/datetimepicker-bundle
Package datetimepicker-bundle
Short Description Symfony bundle for Bootstrap DateTime picker
License MIT
Informations about the package datetimepicker-bundle
DatetimepickerBundle
This bundle implements the Bootstrap DateTime Picker in a Form Type for Symfony 3.* and ^4.0. The bundle structure is inspired by GenemuFormBundle.
Demo : http://www.malot.fr/bootstrap-datetimepicker/demo.php
Please feel free to contribute, to fork, to send merge request and to create ticket.
Installation
Step 1: Install DatetimepickerBundle
Add the following dependency to your composer.json file:
and then run
Step 2: Enable the bundle
Symfony 3
Symfony 4
Symfony 3
Symfony 4
Step 3: Initialize assets
Symfony 3
Symfony 4
Usages
Add form_javascript and form_stylesheet
The principle is to separate the javascript, stylesheet and html. This allows better integration of web pages.
Example:
Documentation
The documentation of the datetime picker is here : http://www.malot.fr/bootstrap-datetimepicker/#options
Notes
The date format from is used to set automatically the date format of Symfony in order to make compatible Symfony and JavaScript output. But there are some problems for example with which display "décembre" in PHP intl translation and "Decembre" in Bootstrap translation. That is why I edited js/locales/bootstrap-datetimepicker.fr.js
All versions of datetimepicker-bundle with dependencies
symfony/framework-bundle Version ~3.4|~4.0
symfony/twig-bundle Version ~3.4|~4.0
symfony/form Version ~4.0