{% extends 'base.html' %}

{% block title %}Log In | ServerMonitor{% endblock %}

{% block content %}
<div class="mx-auto container shadow-sm bg-white rounded">
    <div class="content-section card-body">
        <form method="POST", action="">
            {{ form.hidden_tag() }}
            <fieldset class="form-group">
                <legend class="border-bottom mb-4">Reset your Password</legend>
                <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 form-control") }}
                    {% endif %}     

                </div>
                <div class="form-group">
                    {{ form.password_confirm.label(class="form-control-label") }}

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

                </div>
            </fieldset>
            <div class="form-group">
                {{ form.submit(class="btn btn-outline-info") }}
            </div>
        </form>
    </div>
</div>
{% endblock %}
