Seperate fields for SelectDateWidget in template
I have Googled a lot but I can't find an answer. I want to use
SelectDateWidget in one of my forms but I want the select boxes in
separate divs so I can use them with Zurb Foundation. With all the other
widgets it is easy. For example I can do
<div class="small-5 large-5 large-offset-1 small-offset-1 columns">
{{ form.username.label_tag }}{{ form.username }}{{
form.username.errors }}
</div>
but with SelectDateWidget I want to do something like
{{ form.birth_date.label_tag }}
<div>
{{ form.birth_date_month }}
</div>
<div>
{{ form.birth_date_day }}
</div>
<div>
{{ form.birth_date_year }}
</div>
{{ form.birth_date.errors }}
so I can use it with Foundation's grid system. I even looked at
SelectDateWidget source but I couldn't understand how to do it.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/52CAD82F.1090906%40yahoo.gr.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home