{% extends "index.html" %}
{% block body %}

    <div class="content-section">
        <form method="POST" action="">
            {{ form.hidden_tag() }}
            <fieldset class="form-group">
                <legend class="border-bottom mb-4">Create Account</legend>
                <div class="form-content">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                
                                {{ form.employee_number.label(class="form-control-label") }}

                                {% if form.employee_number.errors %}
                                    {{ form.employee_number(class="form-control is-invalid") }}
                                    <div class="invalid-feedback">
                                        {% for error in form.employee_number.errors %}
                                            <span>{{ error }}</span>
                                        {% endfor %}
                                    </div>
                                {% else %}
                                    {{ form.employee_number(class="form-control") }}
                                {% endif %}
                            </div>
                            <div class="form-group">
                                
                                {{ form.name.label(class="form-control-label") }}

                                {% if form.name.errors %}
                                    {{ form.name(class="form-control is-invalid") }}
                                        <div class="invalid-feedback">
                                            {% for error in form.name.errors %}
                                                <span>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                {% else %}
                                    {{ form.name(class="form-control") }}
                                {% endif %}
                                
                            </div>
                            <div class="form-group">
                                
                                {{ form.surname.label(class="form-control-label") }}

                                {% if form.surname.errors %}
                                    {{ form.surname(class="form-control is-invalid") }}
                                        <div class="invalid-feedback">
                                            {% for error in form.surname.errors %}
                                                <span>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                {% else %}
                                    {{ form.surname(class="form-control") }}
                                {% endif %}
                                
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                
                                {{ form.email.label(class="form-control-label") }}

                                {% if form.email.errors %}
                                    {{ form.email(class="form-control is-invalid") }}
                                        <div class="invalid-feedback">
                                            {% for error in form.email.errors %}
                                                <span>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                {% else %}
                                    {{ form.email(class="form-control") }}
                                {% endif %}
                                
                            </div>
                            <div class="form-group">
                                
                                {{ form.password.label(class="form-control-label") }}

                                {% if form.password.errors %}
                                    {{ form.password(class="form-control is-invalid") }}
                                        <div class="invalid-feedback">
                                            {% for error in form.password.errors %}
                                                <span>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                {% else %}
                                    {{ form.password(class="form-control") }}
                                {% endif %}
                                
                            </div>
                            <div class="form-group">
                                
                                {{ form.confirm_password.label(class="form-control-label") }}
                                
                                {% if form.confirm_password.errors %}
                                    {{ form.confirm_password(class="form-control is-invalid") }}
                                        <div class="invalid-feedback">
                                            {% for error in form.confirm_password.errors %}
                                                <span>{{ error }}</span>
                                            {% endfor %}
                                        </div>
                                {% else %}
                                    {{ form.confirm_password(class="form-control") }}
                                {% endif %}
                                
                            </div>
                            <div class="form-group">
                                
                                {{ form.role.label(class="form-control-label") }}
                                
                                {{ form.role(class="form-control") }}
                            </div>
                        </div>
                       
                    </div>
                    <div class="form-group">
                            {{ form.submit(class="btn btn-outline-info") }}
                    </div>
                </div>
            </fieldset>
           
        </form>
    </div>


{% endblock body%}