aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2024-01-27 18:06:05 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2024-01-27 18:06:05 +0100
commit63874cf9820ee82050d3d11ba12212c197821fcd (patch)
tree676ad52e31e5dc3d3ca17ab09e9712a34ed7a1af /templates
parentupdate group of docs when type changes (diff)
downloadscout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.tar.gz
scout-subs-63874cf9820ee82050d3d11ba12212c197821fcd.zip
add impersonation
Diffstat (limited to 'templates')
-rw-r--r--templates/registration/base_client.html4
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>