We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2ffa02 + a7d0700 commit 0486004Copy full SHA for 0486004
django_ledger/templates/django_ledger/includes/nav.html
@@ -28,11 +28,15 @@
28
<div class="navbar-item">CE TO: {{ tx_digest_context.IO_RESULT.ce_to_date | date }}</div>
29
{% endif %}
30
<div class="navbar-item">
31
- <a href="{% url 'django_ledger:logout' %}"
32
- id="djl-el=logout-button-nav"
33
- class="button is-small is-danger is-outlined">
34
- {% trans 'Logout' %}
35
- </a>
+ <form action="{% url 'django_ledger:logout' %}" method="POST">
+ {% csrf_token %}
+ <button
+ id="djl-el=logout-button-nav"
+ class="button is-small is-danger is-outlined"
36
+ type="submit">
37
+ {% trans 'Logout' %}
38
+ </button>
39
+ </form>
40
</div>
41
<div class="navbar-item">{% feedback_button %}</div>
42
<div class="navbar-item">v{% current_version %}</div>
0 commit comments