{% extends 'base.html' %}
{% block content %}
    <form method="post">
    {% csrf_token %}
        <table class="table">
            <thead><tr><th colspan="2">Change password for {{ user }}</th></tr></thead>
        <tbody>
        {% for field in form %}
            <tr>
            <td>{{ field.label_tag }}</td>
                <td>
                    <div class="input-control password">
                        {{ field }}
                        <button class="btn-reveal"></button>
                    </div>
                    <div style="color: red;">{{ field.errors }}</div>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    <tfoot>
    <tr>
        <td colspan="2">
            <button type="submit" class="button primary">Done</button>
        </td>
    </tr>
    </tfoot>
    </table>
    </form>
{% endblock content %}