CakePHP-Bootstrap / cakephp3-bootstrap-helpers

CakePHP 3.x Helpers for Bootstrap 3 and 4.
https://holt59.github.io/cakephp3-bootstrap-helpers/
MIT License
130 stars 79 forks source link

Add Class to Input-Group & Incorporate bootstrap-datetimepicker #155

Open stosh15x opened 6 years ago

stosh15x commented 6 years ago

This is a (multiple allowed):

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

Holt59 commented 6 years ago

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.