Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 18 | <a href="#" class="btn btn-xs btn-secondary" data-cid="{{ key_info.cid }}" data-subject="{{ key_info.subject|base64_encode }}" data-bs-toggle="modal" data-bs-target="#fido2ChangeFn"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 19 | <i class="bi bi-pencil-fill"></i> {{ lang.fido2.rename }} |
| 20 | </a> |
| 21 | <a href="#" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";' class="btn btn-xs btn-danger"> |
| 22 | <i class="bi bi-trash"></i> {{ lang.admin.remove }} |
| 23 | </a> |
| 24 | </div> |
| 25 | </form> |
| 26 | </td> |
| 27 | </tr> |
| 28 | {% endfor %} |
| 29 | {% endif %} |