blob: 6157aef79e8afe82962528b839e4a394c0317365 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% if fido2_data %}
2 {% for key_info in fido2_data %}
3 <tr>
4 <td>
5 {% if fido2_cid == key_info.cid %}
6 <i class="bi bi-unlock-fill"></i>
7 {% endif %}
8 {% if key_info.fn %}
9 {{ key_info.fn }}
10 {% else %}
11 {{ key_info.subject }}
12 {% endif %}
13 </td>
14 <td style="min-width:240px;text-align: right">
15 <form style="display:inline;" method="post">
16 <input type="hidden" name="unset_fido2_key" value="{{ key_info.cid }}">
17 <div class="btn-group">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010018 <a href="#" class="btn btn-sm btn-xs-lg btn-secondary" data-cid="{{ key_info.cid }}" data-subject="{{ key_info.subject|base64_encode }}" data-bs-toggle="modal" data-bs-target="#fido2ChangeFn">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010019 <i class="bi bi-pencil-fill"></i> {{ lang.fido2.rename }}
20 </a>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010021 <a href="#" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";' class="btn btn-sm btn-xs-lg btn-danger">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010022 <i class="bi bi-trash"></i> {{ lang.admin.remove }}
23 </a>
24 </div>
25 </form>
26 </td>
27 </tr>
28 {% endfor %}
29{% endif %}