Thanks for the work put in this nice and effective module. I wish to contribute by reporting one bug and four related suggestions for improvement.

We set up Partial Date fields for writing down and showing the daily opening hours of various places. However, the label of the field doesn't show up on the Create Node page. The user is presented with only the following information:

0 0
Hour Minute

to

0 0
Hour Minute

[ ] Remove date

Without the label, users have no means of figuring out what is the desired input to these fields. All other fields on the Create Node page display labels normally.

The four related suggestions for improvement are:

1. Would it be possible to have the date range displayed inline? Possibly per a setting.
2. What does the Remove date checkbox do both Create Node and on the Edit field page, and would it be possible to not have it displayed on the Create Node page?
3. Would it be possible to display the numbers with leading zeros?
4. Would it be possible to adjust the display format, also on Create Node page? To decide whether Hour and Minute are shown, whether they're inline or below, and whether there is text before, after or between the starting and ending fields and their parts.

When these five improvements are done, our Partial Date field entries will be set to look like this:

Open on Saturdays
09:00 - 23:00

Open on Sundays
12:00 - 21:30

Bolded parts are labels for two different Partial Date fields. This example uses no text before the beginning and after the ending date, but uses " - " between them and ":" between the hour and minute, which are both displayed with leading zeros. Both the hours and minutes are user selectable from a dropdown list, which is about the only thing that is exactly the same as in alpha5.

If Partial Date will be made to support these configuration options, it will be simply awesome.

CommentFileSizeAuthor
partial_date_label_bug_2011-11-26.png874 bytesDaedalon

Comments

alan d.’s picture

Status: Active » Fixed

Regarding the label: Fixed in alpha6.

1: Will look at this again. Currently there are 6 approxs / 6 fields and a timezone setting per date item (twice that with a range) so inline is not a default I can use. However, our use case is year approx, year, month, day for both, so inline would be much nicer.

2: This is the way to remove a date without clearing all of the fields. By default, each and every field has to be cleared before the field is considered empty, hard to do with multiple fields like this one. If someone wants to write a bit of JQuery to hide / show this, I will be happy to consider adding this to the module.

3: In the widget / form fields? This is added to the latest GIT commit. (Done while adding support to time increments). These are the only options for the formatter view, so guessing that this is not what you mean.

4: I've added a configurable range separator into the other component separators in the format settings. This should default to " to " if left empty.

alan d.’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.