https://github.com/mablae/datetimepickerbundle
A bootstrap DateTimePicker for symfony forms
https://github.com/mablae/datetimepickerbundle
bootstrap datepicker momentjs symfony-bundle
Last synced: 8 months ago
JSON representation
A bootstrap DateTimePicker for symfony forms
- Host: GitHub
- URL: https://github.com/mablae/datetimepickerbundle
- Owner: mablae
- License: mit
- Created: 2016-02-15T19:55:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-05-13T21:28:48.000Z (about 8 years ago)
- Last Synced: 2025-06-15T20:41:05.863Z (about 1 year ago)
- Topics: bootstrap, datepicker, momentjs, symfony-bundle
- Language: PHP
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DatetimepickerBundle
Warning: This is abadoned and incomplete! Uses at your own rik.
[]()
This bundle implements the [Bootstrap DateTime Picker v4](http://eonasdan.github.io/bootstrap-datetimepicker/Installing/#bower-) in a Form Type for Symfony 2.*. The bundle structure is inspired by GenemuFormBundle.
Please feel free to contribute, to fork, to send merge request and to create ticket.
## Installation
### Step 1: Install DatetimepickerBundle
```bash
php composer.phar require mablae/datetimepicker-bundle
```
### Step 2: Enable the bundle
``` php
add('createdAt', DateTimeType::class)
// full options
->add('updatedAt', DateTimeType::class, array( 'pickerOptions' =>
array('format' => 'mm/dd/yyyy',
'viewMode' => 'days', // days, month, years, decades
)));
}
```
Include the javascript needed to initialize the widget:
``` jinja2
...
{{ form_javascript(your.form.field) }}
...
```