lenticular_cloud2/lenticular_cloud/template/frontend/passkey_list.html.j2

33 lines
823 B
Plaintext
Raw Permalink Normal View History

2023-12-25 16:28:09 +00:00
{% extends 'frontend/base.html.j2' %}
{% block content %}
<div class="users">
<h1>Passkey Credentials list</h1>
<table class="table">
<thead>
<tr>
<th>name</th>
<th>id</th>
<th>last used</th>
<th>created at</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for credential in credentials %}
<tr>
<td>{{ credential.name }}</td>
<td>{{ credential.credential_id[0:8].hex() }}...</td>
<td>{{ credential.last_used }}</td>
<td>{{ credential.created_at }}...</td>
2023-12-25 18:44:38 +00:00
<td>
{{ render_form(button_form, action_url=url_for('.passkey_delete', id=credential.id), action_text='delete', btn_class='btn btn-danger') }}</td>
2023-12-25 16:28:09 +00:00
</tr>
{% endfor %}
</tbody>
</table>
2023-12-25 18:44:38 +00:00
<a class="btn btn-primary" href="{{ url_for('.passkey_new')}}">Add new Passkey</a>
2023-12-25 16:28:09 +00:00
</div>
{% endblock %}