Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ipublikuj-archive/form-datetime
- Owner: ipublikuj-archive
- License: other
- Archived: true
- Created: 2015-01-12T16:17:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T18:55:11.000Z (over 5 years ago)
- Last Synced: 2024-09-22T20:30:56.858Z (5 days ago)
- Language: PHP
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
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