﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9604	"a patch to the docs regarding ""how a complete example form could look like"""	vak <khamenya@…>	nobody	"there is an example of a complete form in the section ""RENDERING A CUSTOM COMMENT FOR"" on this page: http://docs.djangoproject.com/en/dev/ref/contrib/comments/

it is not fully correct, because:

 1. the example results in a list of tr elements not surrounded by table element.
 2. the button below the form is a mess between ""preview"" and ""post"".

the example might be like:

{{{
<h2>Post a comment</h2>
{% get_comment_form for blog.entry 1 as form %}
<div id=""myform"">
    <form action=""{% comment_form_target %}"" method=""POST"">
      <table>
        {{ form }}
        <tr id=""action_buttons"">
          <th/>
          <td>
            <input type=""submit"" name=""submit"" class=""preview-post"" value=""Preview"">
            <input type=""submit"" name=""submit"" class=""submit-post"" value=""Post"">
          </td>
        </tr>
      </table>
    </form>
</div>
}}}

and a few lines of the following stylesheet
{{{
<style type=""text/css"">
#myform label[for=""id_honeypot""], #myform input#id_honeypot {
  display:none
}

#myform table th, #myform #action_buttons {
  text-align:right
}
</style>
}}}

will help to all newbies like I am.

regards,
Valer"		closed	contrib.comments	dev		duplicate	doc patch		Accepted	0	0	0	0	0	0
