form.as_table in django -


form = emailform() return render_to_response('books/send_mail.html', {'email_form': form}) 

when using form.as_table in template, fields getting rendered in same line : (email: subject: message: ).

how can render these form fields in seperate lines using as_table. dont want use as_p or as_ul, because not have proper alignment.

did wrap form in table tags?

you can use form.as_table output table rows (you'll need provide own tags)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -