{% extends "base.html" %}

{% block title %}
    Create User
{% endblock %}

{% block content %}

     <div class="login">

         {% if messages %}
            <p>
                {% for message in messages %}
                <span class="primary label">{{ message }}</span>
                {% endfor %}
            </p>
        {% endif %}

        <h1>Create account</h1>

         <form method="post" >
             {% csrf_token %}
             <table>
                {{ form.as_p }}
                 <tr>
                    <td></td>
                    <td><button class="primary_button" type="submit" name="submit">Register</button></td>
                </tr>
             </table>
         </form>
     </div>

{% endblock %}
