Add a button to view the user's profile from their edit page

This commit is contained in:
UncleReaton 2022-10-10 20:27:31 +02:00
parent 73cf94515d
commit e304f7cd15
1 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,13 @@
{% endif %}
<li class="list-group-item">{% trans "Registered since" %} {{ user.date_joined|date:"Y-m-d" }}</li>
</ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:profile' user.userprofileinfo.user %}">
<li class="list-group-item">
<input class="form-control" type="submit" value="{% trans " View my profile" %}">
</li>
</form>
</ul>
<ul class="list-group">
<form method='GET' action="{% url 'accounts:delete_account' %}">
{%csrf_token%}