blob: c74571b97859fef256cfc5e1cb0b3a8c33958f2b [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001<div id="tfa_keys">
2 {% if tfa_data.additional %}
3 {% for key_info in tfa_data.additional %}
4 <form style="display:inline;" method="post">
5 <input type="hidden" name="unset_tfa_key" value="{{ key_info.id }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01006 <div class="d-flex flex-column">
7 <span style="padding:4px;margin:4px" class="me-auto badge fs-6 bg-{% if tfa_id == key_info.id %}success{% else %}dark{% endif %}">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01008 {{ key_info.key_id }}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01009 <a href="#" class="btn p-0 text-white" style="font-size: 12px; line-height: 1rem;" onClick='return confirm("{{ lang.admin.ays }}")?$(this).closest("form").submit():"";'>[{{ lang.admin.remove }}]</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 </span>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011 </div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010012 </form>
13 {% endfor %}
14 {% endif %}
15</div>