Opened 17 years ago
Last modified 9 months ago
#6489 new New feature
Add selected and enabled_from for JS calendar
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | markus.magnuson@…, Ülgen Sarıkavak | Triage Stage: | Someday/Maybe |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Add two parameters to the JS calendar class: highlighting a
selected date, and disabling dates before a specified one.
Attachments (1)
Change History (14)
by , 17 years ago
Attachment: | 0017-Add-selected-and-enabled_from-for-JS-calendar.patch added |
---|
comment:1 by , 17 years ago
Component: | Uncategorized → Admin interface |
---|
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Someday/Maybe |
---|
comment:3 by , 14 years ago
Type: | → New feature |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|
comment:7 by , 10 years ago
So apparently the selected
part of this was already implemented at some point, would it make sense to implement the enabled_from
part as well?
comment:8 by , 10 years ago
Cc: | added |
---|
comment:9 by , 9 years ago
From a quick look at the patch, it's not obvious to me what the purpose of it is. Could someone explain?
comment:10 by , 9 years ago
It is about disabling all dates before the passed date in the calendar, so that you can only select that date or later.
comment:11 by , 9 years ago
I see. Maybe disableDatesBefore
would be a better name? How is it used from Django though? It seems like you need a custom calendar.js
file to pass the value for that field.
comment:12 by , 6 years ago
Patch needs improvement: | set |
---|
comment:13 by , 9 months ago
Cc: | added |
---|
We generally don't make incremental UI changes. At some point in the future we'll sit down and revisit the admin's UI, so we should look at this ticket then.