{% extends 'registration/register_base.html' %} {% block reg_content %} {% if success %} <p id="titleLogin">Thanks for your message.</p> {% else %} <p id="titleLogin">Write to us</p> <form action="" method="POST" id="formItf"> {% csrf_token %} <table> {{ form.as_table }} <tr> <td> </td> <td> <input type="submit" value="Submit" /> </td> </table> </form> {% endif %} {% endblock %}