Opened 17 years ago
Closed 11 years ago
#4574 closed Cleanup/optimization (fixed)
add CSS classes to rendered calendar
Reported by: | Owned by: | berto | |
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Normal | Keywords: | nfa-someday javascript admin |
Cc: | Flavio Curella, Silver_Ghost | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | yes |
Description
The current calendar does not add any CSS classes to the rendered table. This patch adds "today" for the current date, "selected" for the selected date (which is added as new function argument), and "noday" for the empty cells. The old style definitions are removed.
Attachments (3)
Change History (19)
by , 17 years ago
Attachment: | django_cal_css_classes.diff added |
---|
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Component: | Uncategorized → Admin interface |
---|---|
Owner: | changed from | to
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 17 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Ready for checkin → Accepted |
Version: | SVN → newforms-admin |
We're not adding any patches like this to existing admin, since it's going to be replaced with newforms-admin shortly, so new features aren't so useful. If the patch can be redone against the newforms-admin branch, it can probably be applied there.
comment:5 by , 17 years ago
Keywords: | nfa-someday added |
---|
This ticket isn't critical to merge newforms-admin into trunk. Tagging with nfa-someday.
comment:6 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Cleanup/optimization |
comment:7 by , 13 years ago
UI/UX: | set |
---|
by , 13 years ago
patch with updated js code. No tests yet, since I have no idea on how to write tests for js code
comment:8 by , 13 years ago
Cc: | added |
---|---|
Easy pickings: | unset |
Needs tests: | set |
by , 13 years ago
Attachment: | calendar_css_today_and_selected.diff added |
---|
add selected
and today
CSS classes to calendar cells (previous patch completely does not work)
comment:9 by , 13 years ago
Cc: | added |
---|---|
Easy pickings: | set |
Keywords: | javascript admin added |
Needs tests: | unset |
Patch needs improvement: | unset |
fcurella, your patch completely does not work for me. I've attached working one.
Also there is no way to testing Javacript since it need special instruments such as Selenium. Django has only server-side tests at the moment.
comment:10 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:11 by , 13 years ago
Needs tests: | set |
---|
comment:13 by , 12 years ago
Status: | reopened → new |
---|
comment:14 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:15 by , 11 years ago
I've created a pull request on Github at: https://github.com/django/django/pull/1608
comment:16 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Correction: the CSS class is "nonday", not "noday".