<!DOCTYPE html>

<html lang="en-US">
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>
    <body>
        <h1>Submit customer information with the custom form:</h1>

        <form action="{% url 'modelfp:custom_customerform' %}" method="POST">
            {% csrf_token %}
            <label for="first_name">First name:</label>
            <input type="text" required maxlength="200" id="first_name" value=""/>
            <br/>
            <label for="last_name">Last name:</label>
            <input type="text" required maxlength="200" id="last_name" value=""/>
            <br/>
            <label for="birthdate">Birth date:</label>
            <input type="text" required id="birthdate" value="{{current_date}}"/>
            <br/>

            <input type="submit" value="Submit user info"/>
        </form>
        
        {% if messages %}
            {% for message in messages %}
                <p {% if message.tags %} class=" {{ message.tags }} " {% endif %}> 
                    {{ message }}
                </p>
            {% endfor %}
        {% endif %}

    </body>
</html>