Problem/Motivation

Is there any easy way to add jquery timepicker to replace tons of ugly dropdowns to something better looking and more user friendly?

Proposed resolution

For D8, a separate issue is created: #2625714: Alternative timepicker for Office hours (D8).
For D7, see these alternatives, as listed in #1240930: Alternatives to jQuery timepicker [meta/list] :

#3: http://jonthornton.github.io/jquery-timepicker/ "A jQuery timepicker plugin inspired by Google Calendar."
This is just a (sometimes very long) list of times.

#4: http://trentrichardson.com/examples/timepicker/ "Timepicker addon to jQuery UI Datepicker"
This includes a datepicker.

#5: http://fgelinas.com/code/timepicker/, as used in Lence-s sandbox: Field Timepicker.
Looks fine, but supports less options then #6: Timefield .

#6: http://fgelinas.com/code/timepicker/ , as used in The Time field module
Looks fine, the jquery supports #1647822: Widget Usability – Set default end time after entering start time , as well.

#7: https://www.drupal.org/sandbox/phoehne/2329615 Adds a complete Jquery widget.

Comments

Ozeuss’s picture

Category: support » feature

jquery datepicker uses a single text field, so no.
A patch with a totally new widget is welcomed.

johnv’s picture

I Searched for some alternatives, and added the ones I found to this list: #1240930: Alternatives to jQuery timepicker [meta/list] .
I have updated the summary with all these alternatives, with a qualification for our use case.

johnv’s picture

Title: jquery timepicker » Alternative jquery timepicker for Office hours
johnv’s picture

Issue summary: View changes

Updated summary with several options.

johnv’s picture

Issue summary: View changes

Updated issue summary.

johnv’s picture

Title: Alternative jquery timepicker for Office hours » Alternative jquery timepicker for Office hours (D7)
Issue summary: View changes
Related issues: +#2625714: Alternative timepicker for Office hours (D8)

For D8, a separate issue is created: #2625714: Alternative timepicker for Office hours (D8)

phoehne’s picture

Issue summary: View changes
phoehne’s picture

Issue summary: View changes

If you want to get #7 out of it's sandbox status please review.
https://www.drupal.org/node/2598572

johnv’s picture

Component: User interface » Code - widget
johnv’s picture

Status: Active » Closed (outdated)

Let's forget about this.

The widget has some improvements using JS, and given the life cycle of D7, we should spend our time on other stuff.