2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-birthdayfield

An inline birthday field for SilverStripe

image

vulcandigital/silverstripe-birthdayfield

An inline birthday field for SilverStripe

  • Thursday, February 1, 2018
  • by vulcandigital
  • Repository
  • 2 Watchers
  • 3 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 15 % Grown

The README.md

silverstripe-birthdayfield

Requirements

  • silverstripe/silverstripe-framework: ^4.0

Install

composer require vulcandigital/silverstripe-birthdayfield

Usage

class BirthdayForm extends Form
{
    public function __construct(RequestHandler $controller = null, $name = self::DEFAULT_NAME)
    {
        $fields = FieldList::create([
            $birthday = BirthdayField::create('Birthday', 'Birthday')
        ]);

        $actions =  FieldList::create([
            FormAction::create('process', 'Submit Birthday')
        ]);

        $validator = RequiredFields::create([
            'Birthday'
        ]);

        parent::__construct($controller, $name, $fields, $actions, $validator);
    }
}

If you wish for it to render inline with columns (Bootstrap v3 required) you can then, (*1)

$birthday->setBootstrapRender(true);

If you want to disable the individual labels for each of the fields and leave only the main one:, (*2)

$birthday->disableTitles();

Configuration

Vulcan\BirthdayField\Forms\BirthdayField:
    # Change the output/read-only format display of the field
    format: 'Y-m-d'

License

BSD 3-Clause © Vulcan Digital Ltd, (*3)

The Versions

01/02 2018

dev-master

9999999-dev https://github.com/vulcandigital/silverstripe-birthdayfield

An inline birthday field for SilverStripe

  Sources   Download

BSD-3-Clause BSD-3 Clause

The Requires

 

The Development Requires

01/02 2018

1.1.1

1.1.1.0 https://github.com/vulcandigital/silverstripe-birthdayfield

An inline birthday field for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

01/02 2018

1.1.0

1.1.0.0 https://github.com/vulcandigital/silverstripe-birthdayfield

An inline birthday field for SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

09/12 2017

1.0

1.0.0.0 https://github.com/vulcandigital/silverstripe-birthdayfield

An inline birthday field for SilverStripe

  Sources   Download

BSD-3 Clause

The Requires

 

The Development Requires