Opened 17 years ago

Last modified 8 months ago

#6489 new New feature

Add selected and enabled_from for JS calendar

Reported by: Bastian Kleineidam <calvin@…> 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)

0017-Add-selected-and-enabled_from-for-JS-calendar.patch (5.1 KB ) - added by Bastian Kleineidam <calvin@…> 17 years ago.

Download all attachments as: .zip

Change History (14)

by Bastian Kleineidam <calvin@…>, 17 years ago

comment:1 by Alex Gaynor, 17 years ago

Component: UncategorizedAdmin interface

comment:2 by Jacob, 17 years ago

Triage Stage: UnreviewedSomeday/Maybe

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.

comment:3 by Julien Phalip, 14 years ago

Type: New feature

comment:4 by Julien Phalip, 14 years ago

Severity: Normal

comment:5 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:6 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:7 by Markus Amalthea Magnuson, 9 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 Markus Amalthea Magnuson, 9 years ago

Cc: markus.magnuson@… added

comment:9 by Tim Graham, 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 Markus Amalthea Magnuson, 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.

Last edited 9 years ago by Markus Amalthea Magnuson (previous) (diff)

comment:11 by Tim Graham, 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 Collin Anderson, 6 years ago

Patch needs improvement: set

comment:13 by Ülgen Sarıkavak, 8 months ago

Cc: Ülgen Sarıkavak added
Note: See TracTickets for help on using tickets.
Back to Top