monim67 / django-bootstrap-datepicker-plus

Bootstrap3/Bootstrap4/Bootstrap5 DatePickerInput, TimePickerInput, DateTimePickerInput, MonthPickerInput, YearPickerInput with date-range-picker functionality for django >= 2.0
https://pypi.python.org/pypi/django-bootstrap-datepicker-plus
MIT License
223 stars 61 forks source link

widget breaks submit button #40

Closed dchallsworth closed 1 year ago

dchallsworth commented 4 years ago

Hi - not sure if this is an issue or not - probably my implemenation (I'm a beginner).

When I include the widget in my forms.py the submit button on my template no longer works - works fine when I remove datetimepicker. I wondered if there's a clash with the javascript somewhere? Could you take a look? I've added you as a colab for the project

Also, is there any way of making todays date autopopulate the field?

Thank you - it's a great app

David

dchallsworth commented 4 years ago

Hey

First problem was just that the default date for django was different to the formatted date for datepicker

Still can’t get a default though.

Thanks

David

monim67 commented 1 year ago

There's a defaultDate option which can be used to set the dates to today.