2017 © Pedro Peláez
 

library forms-datetime

Date/DateTime control for Nette Forms.

image

nella/forms-datetime

Date/DateTime control for Nette Forms.

  • Saturday, July 16, 2016
  • by vrtak-cz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,487 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 19 Versions
  • 2 % Grown

The README.md

Date/DateTime control for Nette Framework

Build Status Code Coverage SensioLabsInsight Status Latest Stable Version Composer Downloads Dependency Status, (*1)

Requirements

  • Nette >=2.3.0 (2.3.x support will be removed on 31 Jan 2017)
  • PHP >=5.5.0 (5.5.x support will be removed on 10 Jul 2016)

Installation

composer require nella/forms-datetime

Usage


$form = new \Nette\Forms\Form; $form->addComponent(new \Nella\Forms\DateTime\DateInput('Date'), 'date'); $form->addComponent(new \Nella\Forms\DateTime\DateTimeInput('DateTime'), 'datetime'); // or \Nella\Forms\DateTime\DateInput::register(); $form->addDate('date', 'Date', 'Y-m-d'); \Nella\Forms\DateTime\DateTimeInput::register(); $form->addDateTime('datetime', 'DateTime', 'Y-m-d', 'G:i'); // Optional date[time] validation $form['date'] ->addCondition(\Nette\Application\UI\Form::FILLED) ->addRule([$form['date'], 'validateDate'], 'Date is invalid'); $form['datetime'] ->addCondition(\Nette\Application\UI\Form::FILLED) ->addRule([$form['datetime'], 'validateDateTime'], 'Date time is invalid');

Manual rendering

{form myForm}
    {label date /}
    {input date}

    {label datetime /}
    {input datetime:date}
    {input datetime:time}
{/form}

License

Date/DateTime control for Nette Framework is licensed under the MIT License - see the LICENSE file for details, (*2)

The Versions

16/07 2016

dev-master

9999999-dev http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

16/07 2016

v2.4.3

2.4.3.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

08/07 2016

v2.4.2

2.4.2.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

08/07 2016

v2.4.1

2.4.1.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

20/05 2016

v2.4.0

2.4.0.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

05/10 2014

dev-nette

dev-nette http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

05/10 2014

v0.9.3

0.9.3.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

05/10 2014

v1.0.3

1.0.3.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

03/07 2014

v1.0.2

1.0.2.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

03/07 2014

v0.9.2

0.9.2.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

19/06 2014

v0.9.1

0.9.1.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

19/06 2014

v1.0.1

1.0.1.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

18/06 2014

v1.0.0

1.0.0.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime

18/06 2014

v0.9.0

0.9.0.0 http://doc.nellafw.org/forms/datetime

Date/DateTime control for Nette Forms.

  Sources   Download

MIT

The Requires

 

The Development Requires

date forms input control nette datetime