I wish i could see the html output of your program. But you have to
use either divs or ul&li elemnts to wrap that list and make it look
nice in template.

But i think the problem is that your widget output is just a list of
checkboxes, that you cant iterate in a template, so wrapping them is
impossible?

In any case. post the markup your script returns and lets see if we
can make it nice with just css.

Alan

On Apr 21, 8:20 pm, Konstantin S <ktechli...@gmail.com> wrote:
> Hello!
>
> In my model I have dynamically generated checkbox fields that look like this:
>
> boxes = forms.ModelMultipleChoiceField(queryset=Box.objects.all(),
> widget=forms.CheckboxSelectMultiple)
>
> The problem is that in the web-interface I've got a long flat list of
> checkboxes and it doesn't look very nice from a design point of view.
> What I want is to split it into two or more columns, but I am not a
> web developer and my knowledge in html and css is very limited. I'd
> try to find a solution for this problem if I were given some hints
> where to start. Please give me such hints.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to