1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

profile picture update view is working

This commit is contained in:
Pierre-antoine Comby
2020-03-04 16:34:12 +01:00
parent c4198a64af
commit fd74080ce3
6 changed files with 103 additions and 13 deletions

View File

@ -6,7 +6,9 @@
<div class="col-md-3 mb-4">
<div class="card bg-light shadow">
<div class="card-top text-center">
<img src="{{ object.note.display_image.url }}" class="img-thumbnail mt-2" >
<a href="{% url 'member:user_update_pic' object.pk %}">
<img src="{{ object.note.display_image.url }}" class="img-thumbnail mt-2" >
</a>
</div>
<div class="card-body">
<dl class="row">
@ -46,7 +48,6 @@
{%if request.get_full_path != user_profile_url %}
<a class="btn btn-primary btn-sm" href="{{ user_profile_url }}">{% trans 'View Profile' %}</a>
{% endif %}
<a class="btn btn-primary btn-sm" href="{% url 'member:user_update_pic' object.pk %}">{% trans 'Change Avatar' %}</a>
</div>
</div>
</div>