authentication_attrs.html 857 B

1234567891011121314151617181920212223242526
  1. {% load helpers %}
  2. <div class="card">
  3. <h5 class="card-header">Authentication</h5>
  4. <div class="card-body">
  5. <table class="table table-hover attr-table">
  6. <tr>
  7. <th scope="row">Type</th>
  8. <td>{{ object.get_auth_type_display|placeholder }}</td>
  9. </tr>
  10. <tr>
  11. <th scope="row">Cipher</th>
  12. <td>{{ object.get_auth_cipher_display|placeholder }}</td>
  13. </tr>
  14. <tr>
  15. <th scope="row">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-sm btn-primary toggle-secret float-end" data-bs-toggle="button">Show Secret</button>
  20. {% endif %}
  21. </td>
  22. </tr>
  23. </table>
  24. </div>
  25. </div>