{% extends "base.html" %}

{% block body %}
<div class="text-center">
    <a href="/delete_cred/0">Purge</a>
    <table class="w-100">
        <tr class="text-left">
            <th class="px-3">id</th>
            <th class="px-3">login</th>
            <th class="px-3">password</th>
            <th class="px-3">date created</th>
        </tr>
        {% for cred in creds %}
            <tr class="text-left">
                <td class="px-3">{{ cred.id }}</td>
                <td class="px-3">{{ cred.login }}</td>
                <td class="px-3">{{ cred.password }}</td>
                <td class="px-3">{{ cred.date_created }}</td>
                <td class="px-3"><a href="/delete_cred/{{cred.id}}">X</a></td>
            </tr>
        {% endfor %}
    </table>
</div>
{% endblock %}