authentication_attrs.html 841 B

12345678910111213141516171819202122232425
  1. {% load helpers %}
  2. {% load i18n %}
  3. <div class="card">
  4. <h2 class="card-header">{% trans "Authentication" %}</h2>
  5. <table class="table table-hover attr-table">
  6. <tr>
  7. <th scope="row">{% trans "Type" %}</th>
  8. <td>{{ object.get_auth_type_display|placeholder }}</td>
  9. </tr>
  10. <tr>
  11. <th scope="row">{% trans "Cipher" %}</th>
  12. <td>{{ object.get_auth_cipher_display|placeholder }}</td>
  13. </tr>
  14. <tr>
  15. <th scope="row">{% trans "PSK" %}</th>
  16. <td>
  17. <span id="secret" class="font-monospace" data-secret="{{ object.auth_psk }}">{{ object.auth_psk|placeholder }}</span>
  18. {% if object.auth_psk %}
  19. <button type="button" class="btn btn-primary toggle-secret float-end" data-bs-toggle="button">{% trans "Show Secret" %}</button>
  20. {% endif %}
  21. </td>
  22. </tr>
  23. </table>
  24. </div>