Add impersonate button

This commit is contained in:
Yohann D'ANELLO 2020-10-19 16:12:21 +02:00
parent 28e2fa10c3
commit 95fd8a066f
2 changed files with 12 additions and 5 deletions

View File

@ -62,6 +62,9 @@
{% if user.pk == user_object.pk or user.registration.is_admin %}
<div class="card-footer text-center">
<button class="btn btn-primary" data-toggle="modal" data-target="#updateUserModal">{% trans "Update" %}</button>
{% if user.registration.is_admin %}
<a class="btn btn-info" href="{% url "registration:user_impersonate" pk=user_object.pk %}">{% trans "Impersonate" %}</a>
{% endif %}
</div>
{% endif %}
</div>

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Corres2math\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-15 20:47+0200\n"
"POT-Creation-Date: 2020-10-19 16:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -267,7 +267,7 @@ msgstr "Lien de la vidéo :"
#: apps/participation/templates/participation/participation_detail.html:41
#: apps/participation/templates/participation/upload_video.html:11
#: apps/registration/templates/registration/upload_photo_authorization.html:18
#: apps/registration/templates/registration/user_detail.html:75
#: apps/registration/templates/registration/user_detail.html:78
msgid "Upload"
msgstr "Téléverser"
@ -316,7 +316,7 @@ msgstr "Pas encore envoyée"
#: apps/participation/templates/participation/update_team.html:12
#: apps/registration/templates/registration/update_user.html:12
#: apps/registration/templates/registration/user_detail.html:64
#: apps/registration/templates/registration/user_detail.html:70
#: apps/registration/templates/registration/user_detail.html:73
msgid "Update"
msgstr "Modifier"
@ -752,11 +752,15 @@ msgstr "Rôle :"
msgid "Grant Animath to contact me in the future about other actions:"
msgstr "Autorise Animath à recontacter à propos d'autres actions :"
#: apps/registration/templates/registration/user_detail.html:69
#: apps/registration/templates/registration/user_detail.html:66
msgid "Impersonate"
msgstr "Impersonifier"
#: apps/registration/templates/registration/user_detail.html:72
msgid "Update user"
msgstr "Modifier l'utilisateur"
#: apps/registration/templates/registration/user_detail.html:74
#: apps/registration/templates/registration/user_detail.html:77
msgid "Upload photo authorization"
msgstr "Téléverser l'autorisation de droit à l'image"