Задать вопрос

Тел: +7 965 3737 888

472

Просмотров

1

Ответов

More admin clock time increments

This is quite a hack (need to modify Django code), but relatively simple and stable. It displays various times in whichever increments and columns you specify, rather than just Midnight, Noon, Now & 6am. You can use it throughout your admin and newforms-admin code.

This is a (slightly updated) copy of the ticket #1848 which wasn't included in trunk. http://code.djangoproject.com/ticket/1848

Вопрос полезен? Да0/Нет0
file_5107.js(1.8Кб)
None

Ответы (1):

Ответrobharvey:17.04.2007
Ответ полезен? Да0/Нет0

CSS changes required to support columns:

.clockbox {
    width:              25em;
}

.clockbox h2 {
    text-align:         center;
}

ul.timelist {
    float:              left;
    padding-right:      5px;
    padding-left:       5px;
    border-right:       1px solid lightblue;
}

ul.timelist a:visited {
    color:              black;
}

ul#timelist-end {
    float:              none;
}