diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2024-01-27 18:06:05 +0100 |
commit | 63874cf9820ee82050d3d11ba12212c197821fcd (patch) | |
tree | 676ad52e31e5dc3d3ca17ab09e9712a34ed7a1af /templates/registration/base_client.html | |
parent | update group of docs when type changes (diff) | |
download | scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.tar.gz scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.zip |
add impersonation
Diffstat (limited to '')
-rw-r--r-- | templates/registration/base_client.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/registration/base_client.html b/templates/registration/base_client.html index 357197a..2518988 100644 --- a/templates/registration/base_client.html +++ b/templates/registration/base_client.html @@ -134,7 +134,7 @@ <li><a class="modal-trigger" href="#modal_capi"><i class="material-icons">list</i>Lista documenti</a></li> {% endif %} - <li><a onclick="switcher_submit('logout')"><i class="material-icons">exit_to_app</i>Logout</a></li> + <li><a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i>Logout</a></li> <!-- <li class="divider" tabindex="-1"></li> <li class="divider" tabindex="-1"></li> @@ -176,12 +176,14 @@ var elems = document.querySelectorAll('.userswitcher'); var instances = M.Dropdown.init(elems, {"coverTrigger": false, "constrainWidth": false}); }); + /* function switcher_submit(id) { var form = document.getElementById('user_form') var action = document.getElementById('metadata') action.setAttribute('value', id); form.submit() } + */ {% block script %} {% endblock%} </script> |