cakephp3-bootstrap-helpers icon indicating copy to clipboard operation
cakephp3-bootstrap-helpers copied to clipboard

Add Class to Input-Group & Incorporate bootstrap-datetimepicker

Open stosh15x opened this issue 7 years ago • 1 comments

This is a (multiple allowed):

  • [ ] bug

  • [x] enhancement

  • [ ] question

  • CakePHP Version: 3.6

What you did

While using bootstrap-datetimepicker I had to append to my date input and I needed to add a class of "date" to the input-group that is created. So I had no choice but to use some jquery to add the class.

What happened

No option to add the class to appended input-group

What you expected to happen

The option to add classes to appended input-group

Better Solution

Incorporate http://eonasdan.github.io/bootstrap-datetimepicker/ into these form helpers

stosh15x avatar May 01 '18 01:05 stosh15x

I may add a way to customize classes of the input group.

There are tons of date(time) pickers for Bootstrap out there, each one with their own configuration, I cannot incorporate all of theses in the helpers.

I may, however, add a specific template for custom datetime pickers that user would be allowed to customize. I would, however, have to check how CakePHP deals with date/time inputs at a request level.

Holt59 avatar May 01 '18 13:05 Holt59