functional logout button
This commit is contained in:
parent
3531a47b68
commit
838794f321
@ -1,7 +1,7 @@
|
||||
{% load static %}
|
||||
|
||||
<div class="container">
|
||||
<div class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<div class="navbar navbar-expand-lg bg-body-secondary">
|
||||
<div class="container">
|
||||
<a href="#" class="navbar-brand">
|
||||
<img src="{% static '/images/pyrss_logo.webp' %}" alt="Logo" width="50" class="d-inline-block">
|
||||
@ -29,7 +29,11 @@
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a class="dropdown-item">Logout</a>
|
||||
{% comment %}<!-- Logout can only be post to -->{% endcomment %}
|
||||
<form action="/logout/" method="post" class="m-0">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="dropdown-item">Logout</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user