GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mablae/DatetimepickerBundle: A bootstrap DateTimePicker for symfony forms

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENCE
LICENCE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

DatetimepickerBundle

Warning: This is abadoned and incomplete! Uses at your own rik.

Packagist

This bundle implements the Bootstrap DateTime Picker v4 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

php composer.phar require mablae/datetimepicker-bundle

Step 2: Enable the bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Mablae\DatetimepickerBundle\MablaeDatetimepickerBundle(),
    );
}
# app/config/config.yml
mablae_datetimepicker:
    picker: ~

Step 3: Install moment.js and Bootstrap3 Datepicker

This bundle does not handle an asset minification or loading. Just use gulp or webpack.

http://eonasdan.github.io/bootstrap-datetimepicker/Installing/

Usages

<?php
// ...
use Mablae\DatetimepickerBundle\Form\Type\DateTimeType;

public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        // defaut options
        ->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:

...
{{ form_javascript(your.form.field) }}
...

About

A bootstrap DateTimePicker for symfony forms

Topics

bootstrapdatepickermomentjssymfony-bundle

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.