{% 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">Edit Expenses</legend>
                <div class="form-content">
                    
                            <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.submit(class="btn btn-outline-info") }}
                    </div>
                </div>
            </fieldset>
        
        </form>
    </div>

{% endblock %}