<form xmlns="http://www.w3.org/1999/xhtml"
     xmlns:py="http://genshi.edgewall.org/"
     method="post"
     action="$action">
  <ol>
    <li py:if="show_subject">
      <label for="subject">Topic:</label>
      <input name="subject" style="width: 500px;" value="${value and (value.subject or '(no subject)')}"/>
    </li>
    <li>
      <label for="text">Post:</label>
      <textarea name="text" style="width: 500px; height: 150px">${(value and 'text' in value) and value['text'] or ''}</textarea>
    </li>
    <li>
      <label>&nbsp;</label>
      <input type="submit" value="$submit_text"/>
    </li>
  </ol>
</form>
