Skip to content
Snippets Groups Projects
Commit 601a9130 authored by Andreas Valder's avatar Andreas Valder
Browse files

made login/out look better

parent 77c1e2cb
No related branches found
No related tags found
No related merge requests found
......@@ -56,17 +56,24 @@
</li>
{% endfor %}
<li class="navbar-right">
{% if not session.userid is defined %}
<a id="loginpopover" data-container="body" data-toggle="popover" data-placement="bottom">
<span class="glyphicon glyphicon-user"></span> <span class="glyphicon glyphicon-menu-down"></span>
<span class="glyphicon glyphicon-log-in"></span>
</a>
<script>
$('#loginpopover').popover(
{
html:true,
content:'<form method="post" action="login"><span>User: <input name="user" type="text"></span><br><span>Password: <input name="password" type="password"></span><input type="hidden" name="ref" value="{{ request.url|e }}"><input type="submit"></form>'
title:'Login für Moderatoren',
content:'<form method="post" action="login"><input placeholder="User" name="user" type="text"><br><input placeholder="Password" name="password" type="password"><br><input type="hidden" name="ref" value="{{ request.url|e }}"><input type="submit" value="Login"></form>'
}
)
</script>
{% else %}
<a herf="/logout">
<span class="glyphicon glyphicon-log-out"></span>
</a>
{% endif %}
</li>
</ul>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment