why my button render on top of the form?

18 views
Skip to first unread message

dk

unread,
Jun 24, 2015, 3:12:23 PM6/24/15
to django...@googlegroups.com
<form action={{ action }} method="post">
    {% csrf_token %}
    {{ form }}
    <p></p>
    <input type="submit" value="{{ button_text }}"/>

I expected since the form  its first than the input type submit,   I should get my form, and below the button right?

but instead I get the button on the top,  and then the form. I am missing something?



dk

unread,
Jun 24, 2015, 4:23:32 PM6/24/15
to django...@googlegroups.com
I found that if the form is inside a table. then it acts funky =(....

dk

unread,
Jun 24, 2015, 4:33:57 PM6/24/15
to django...@googlegroups.com


found the answer, 
if its inside a table does the funcky thing...  if its pass   as_p  works fine.

{{ form.as_p }} did the trick =)  

sorry for all the posts....
Reply all
Reply to author
Forward
0 new messages