{% load i18n %}
<form id="logoutform" method="POST" action="{% url 'logout' %}">
  {% csrf_token %}
  <input type="hidden"/>
</form>
<a href="#" onClick="document.getElementById('logoutform').submit()"><i class="fa-solid fa-fw fa-right-from-bracket" aria-hidden="true"></i> {% trans 'Logout' %}</a>
