Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipublikuj-archive/form-datetime

Forms control for adding date, date&time and time fields for Nette Framework forms
https://github.com/ipublikuj-archive/form-datetime

Last synced: about 10 hours ago
JSON representation

Forms control for adding date, date&time and time fields for Nette Framework forms

Awesome Lists containing this project

README

        

# Form Date, Date&Time and Time control

[![Build Status](https://img.shields.io/travis/ipublikuj-ui/form-datetime.svg?style=flat-square)](https://travis-ci.org/ipublikuj-ui/form-datetime)
[![Latest Stable Version](https://img.shields.io/packagist/v/ipub/form-datetime.svg?style=flat-square)](https://packagist.org/packages/ipub/form-datetime)
[![Composer Downloads](https://img.shields.io/packagist/dt/ipub/form-datetime.svg?style=flat-square)](https://packagist.org/packages/ipub/form-datetime)

Forms control for adding date, date&time and time fields for [Nette Framework](http://nette.org/) forms

This extension is based on two datetime libraries. For [Bootstrap](http://getbootstrap.com) template is used [js library](http://www.malot.fr/bootstrap-datetimepicker/) from [Sebastien Malot](https://github.com/smalot) and for [UIkit](http://getuikit.com/) template is used their [datepicker](http://getuikit.com/docs/addons_datepicker.html) and [timepicker](http://getuikit.com/docs/addons_timepicker.html) extensions.

## Installation

The best way to install ipub/form-datetime is using [Composer](http://getcomposer.org/):

```json
{
"require": {
"ipub/form-datetime": "dev-master"
}
}
```

or

```sh
$ composer require ipub/form-datetime:@dev
```

After that you have to register extension in config.neon.

```neon
extensions:
formDateTime: IPub\FormDateTime\DI\FormDateTimeExtension
```

> In Nette 2.0, registration is done in `app/bootstrap.php`:
```php
$configurator->onCompile[] = function ($configurator, $compiler) {
$compiler->addExtension('formDateTime', new IPub\FormDateTime\DI\FormDateTimeExtension);
};
```

And you also need to include static files into your page:

```html