Monday, May 4, 2015

How to show forms of formset as table

Hi,
I have a model in models.py - using which I have created a form in forms.py.
I am using formset in views.py
But all the fields of these forms of formset are shown vertically one after another like:

form1-field1
form1-field2
form1-field3
form2-field1
form2-field2
form2-field3
form3-field1
form3-field2
form3-field3

I want to show the forms as table like:

form1-field1    form1-field2   form1-field3
form2-field1    form2-field2   form2-field3
form3-field1    form3-field2   form3-field3

Can anyone help me to do this?

With thanks & regards,
Himika.

--
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/b13b737a-bd8d-43c9-90cb-603841634825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment