kimai / Paid-plugins

Support for paid Kimai plugins: Discussions and feature requests
https://www.kimai.org/store/
11 stars 1 forks source link

add time as input #41

Closed j0hannesr0th closed 1 year ago

j0hannesr0th commented 4 years ago

currently it's only possible to add datetime values, but only the time (like in Begin and End) is not possible.

grafik

kevinpapst commented 3 years ago

We need a good javascript library for that. Could be used in Kimai core then as well, but this topic is still open. Each one I investigated had one problem or another. Any idea?

j0hannesr0th commented 3 years ago

Unfortutantely not supported by Safari: https://www.w3schools.com/tags/att_input_type_time.asp

https://getdatepicker.com/4/#time-only

https://timepicker.co

kevinpapst commented 3 years ago

Hm, I know all of them. https://timepicker.co is the best, but last commit was 5 years ago ... I don't want to use dead code. Seems we should probably wait for the next release of https://github.com/Eonasdan/tempus-dominus

alqu commented 3 years ago

Or these two: https://github.com/Pikaday/Pikaday (no dependencies) https://github.com/flatpickr/flatpickr (jQuery dependency)

kevinpapst commented 3 years ago

Pikaday does not work as Tim input, does it? https://flatpickr.js.org/examples/#time-picker looks okay, but there is something about it that I don't fully like. Probably better though than the current system^^

But this whole discussion belongs actually to https://github.com/kevinpapst/kimai2/issues/571

alqu commented 3 years ago

Hm, regarding pikaday: true, there is no time input option... then it is not working for this use case.

I looked up all sorts of time pickers for a (Vue-) project some time ago, and Flatpickr worked pretty good.