{% extends "base.html" %}
{% block content %}
<!--main-->
<div class="container" id="main">
    <div class="row">
        <div class="col-lg-12">
            {% with messages = get_flashed_messages() %}
            {% if messages %}
                <div class="alert alert-danger">
                    {% for message in messages %}
                    {{ message }}<br>
                    {% endfor %}
                </div>
            {% endif %}
            {% endwith %}
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <h3>Register an account </h3>
            <hr>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-3">
            <form class="form-horizontal" action="" method=post>
                <div class="form-group">
                    <input type="text" id="username" name="username" class="form-control mb-2 mr-sm-2 mb-sm-0"
                           placeholder="Enter Username" value="{{ request.form.username }}"
                           required>
                </div>

                <div class="form-group">
                        <input type="password" id="password" name="password" class="form-control mb-2 mr-sm-2 mb-sm-0"
                               placeholder="Enter Password" value="{{ request.form.password }}"
                               required>
                </div>

                <div class="form-group">
                        <input type="email" id="email" name="email" class="form-control mb-2 mr-sm-2 mb-sm-0"
                               placeholder="Enter Email" value="{{ request.form.username }}"
                               required>
                </div>

                <div class="form-group">
                        <button type="submit" class="btn btn-success">Signup</button>
                </div>
            </form>
        </div>
    </div>
</div>
<br>
<!--/main-->
{% endblock %}
