Code

Opened 8 years ago

Closed 4 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 8 years ago.
Provides a last/next year link in the popup calendar
cal_patch.png (7.6 KB) - added by robert bunting 8 years ago.
view of the calendar patch in action
cal_prev_and_next_year.2.diff (5.0 KB) - added by Robert Bunting 8 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 8 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 8 years ago by robert bunting

Provides a last/next year link in the popup calendar

Changed 8 years ago by robert bunting

view of the calendar patch in action

comment:2 Changed 8 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 8 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 8 years ago by anonymous

  • Summary changed from Calendar widget has limited usefulness for past years to [patch] Calendar widget has limited usefulness for past years

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

  • Keywords calendar widget javascript admin added
  • Triage Stage changed from Unreviewed to Design decision needed

comment:5 Changed 6 years ago by jacob

  • Triage Stage changed from Design decision needed to Someday/Maybe

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

comment:6 Changed 4 years ago by ramiro

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

comment:7 Changed 4 years ago by rctay

  • Resolution set to duplicate
  • Status changed from new to closed

#9388 has made some progress.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.