Skip to content

Commit

Permalink
add logout button in profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
IonMich committed Sep 7, 2023
1 parent b4162d3 commit 6a09a95
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion profiles/templates/profiles/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
</ol>
</nav>

<h1 class="mb-4">My Profile</h1>
<h1 class="mb-4">My Profile
<form action="{% url 'logout' %}" method="POST">
{% csrf_token %}
<button type="submit" class="btn btn-warning">Logout</button>
</form>
</h1>
{% comment %} Editable list of user's information {% endcomment %}
<div class="information-grid">
<div class="avatar">
Expand Down Expand Up @@ -102,6 +107,7 @@ <h1 class="mb-4">My Profile</h1>
Save
</button>
</form>



</div>
Expand Down

0 comments on commit 6a09a95

Please sign in to comment.