<%- include("partials/header"); -%>

<div class="container">
    <div class="row">
        <div class="col-1">

        </div>
        <div class="col-10">
            <div class="card mt-5 mb-2">
                <div class="card-header text-center">
                    <h3>Sign up</h3>
                </div>
                
                
                <div class="row">
                    <div class="col-6 offset-3 mt-2 mb-2">
                        <%if(message.length!=0) {%>
                            <div class="alert alert-info text-center" role="alert">
                                <%= message %>
                            </div>
                        <%}%>
                    </div>
                </div>

                <form action="/users/register" method="POST">
                    <div class="container">
                        <div class="row mb-3">
                            <div class="col-4 offset-4">
                                <label for="userName" class="form-label">Username</label>
                                <input type="text" class="form-control" id="userName" name="username">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4 offset-4 mb-3">
                                <label for="firstName" class="form-label">First name</label>
                                <input type="text" class="form-control" id="firstName" name="firstName">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4 offset-4 mb-3">
                                <label for="lastName" class="form-label">Last name</label>
                                <input type="text" class="form-control" id="lastName" name="lastName">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4 offset-4 mb-3">
                                <label for="password" class="form-label">Password</label>
                                <input type="password" class="form-control" id="password" name="password">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4 offset-4 mb-3">
                                <label for="email" class="form-label">Email</label>
                                <input type="email" class="form-control" id="email" name="email">
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-4 offset-4 mb-3">
                                <label for="contact" class="form-label">Contact</label>
                                <input type="tel" class="form-control" id="contact" name="contact">
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col-12 text-center">
                                <button class="btn btn-primary" type="submit" name="button">Register</button>
                            </div>
                        </div>

                    </div>
                </form>
            </div>
        </div>
        <div class="col-1">

        </div>
    </div>
</div>

<%- include("partials/footer"); -%>
