Hello everyone,
I am trying to use datetime picker from django.contrib.admin
I am succesful, but my picker has no style. I see only numbers, but no
border, background..
html(shortened)
<head>
<title>Find parking</title>
{% block stylesheet_extra %}{% endblock %}
<link rel="stylesheet" href="/_media/css/screen.css" type="text/css" /
>
<script type="text/javascript" src="/admin/jsi18n/"></script>
<script type="text/javascript" src="/media/js/core.js"></
script>
<script type="text/javascript" src="/media/js/admin/
RelatedObjectLookups.js"></script>
<link rel="stylesheet" type="text/css" href="/media/admin/css/
forms.css"/>
<link rel="stylesheet" type="text/css" href="/media/admin/css/
base.css"/>
<link rel="stylesheet" type="text/css" href="/media/admin/css/
global.css"/>
<link rel="stylesheet" type="text/css" href="/media/admin/css/
widgets.css"/>
{{ form.media }}
</head>
{% for f in form %}
<th{% if f.field.required %} class="required"{% endif %}>
<label for="id_{{ f.name }}">{{ f.label }}</label>
</th>
<td>{{ f }}</td>
</tr>
{% if f.errors %}
<tr>
<td colspan="2">{{ f.errors }}</td>
</tr>
{% endif %}
{% endfor %}
Forms.py
class DateForm(forms.Form):
departure_date =
forms.DateTimeField(widget=adminwidgets.AdminSplitDateTime, required =
'True')
Can anyone give me some advice?
Thanks so much.
Alex
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.