Opened 10 years ago

Closed 7 years ago

#2889 closed defect (duplicate)

[patch] Calendar widget has limited usefulness for past years

Reported by: Robert Bunting Owned by: nobody
Component: contrib.admin Version:
Severity: minor Keywords: calendar widget javascript admin
Cc: Triage Stage: Someday/Maybe
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The calendar widget in the admin interface is nice enough, but is not very useful for choosing dates which are far from today. For instance, for entering date of birth, it can't sensibly be used. You can only skip back one month at a time, which is a lot of clicks to get back to my date of birth (before unix epoch :()

I'd very much like the widget to have arrows to go back/forward a year at a time as well. Something like '<<' '>>' added to the existing '<' '>' buttons.

I'm just submitting to see if anyone has this already as we could patch it in, or if this is a duplicate of another request. If not, I'll have a go at a patch myself, and submit it here.

[I'm currently running the POP branch at r3753 which has trunk as far as r3731]

Attachments (3)

cal_prev_and_next_year.diff (5.1 KB) - added by robert bunting 10 years ago.
Provides a last/next year link in the popup calendar
cal_patch.png (7.6 KB) - added by robert bunting 10 years ago.
view of the calendar patch in action
cal_prev_and_next_year.2.diff (5.0 KB) - added by Robert Bunting 10 years ago.
Provides a last/next year link in the popup calendar (second version of patch rooted in proper django root dir; please ignore the first version)

Download all attachments as: .zip

Change History (10)

comment:1 Changed 10 years ago by hugh@…

I hate the calendar widget. It would be much better to replace it with simple drop down lists or have the widget modify drop down lists insted of a text box.

Changed 10 years ago by robert bunting

Attachment: cal_prev_and_next_year.diff added

Provides a last/next year link in the popup calendar

Changed 10 years ago by robert bunting

Attachment: cal_patch.png added

view of the calendar patch in action

comment:2 Changed 10 years ago by anonymous

I'm slightly inclined to agree wih you about the date box.

In the meantime, I've added a patch to modify the calendar date chooser, so it has '<<' and '>>' links to go back and forward one year.

I'd change the summary with [patch] if akismet would let me.

Changed 10 years ago by Robert Bunting

Provides a last/next year link in the popup calendar (second version of patch rooted in proper django root dir; please ignore the first version)

comment:3 Changed 10 years ago by anonymous

Summary: Calendar widget has limited usefulness for past years[patch] Calendar widget has limited usefulness for past years

comment:4 Changed 10 years ago by Simon G. <dev@…>

Keywords: calendar widget javascript admin added
Triage Stage: UnreviewedDesign decision needed

comment:5 Changed 9 years ago by Jacob

Triage Stage: Design decision neededSomeday/Maybe

At some point we'll be reworking the admin interface; this is one ticket we should look at then.

comment:6 Changed 7 years ago by Ramiro Morales

See also #9388 that is younger but has a more up to date patch.

comment:7 Changed 7 years ago by Tay Ray Chuan

Resolution: duplicate
Status: newclosed

#9388 has made some progress.

Note: See TracTickets for help on using tickets.
Back to Top