Hi,

You have to look on MultiWidget and use it as base to create your own one.

- Dmitry


On Monday, January 6, 2014 7:22:07 PM UTC+3, Voyager wrote:
>
> 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+unsubscr...@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/561063e3-a03b-4cbb-9522-9a8d4a3e6811%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to