style login and logout after other pages

This commit is contained in:
Ville Rantanen
2018-02-18 11:34:43 +02:00
parent 2ef411ced9
commit f9fda4c917
3 changed files with 17 additions and 6 deletions

View File

@@ -1,8 +1,14 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div id=index_menu>
authenticate to {{ name|safe }} authenticate to {{ name|safe }}
<form action={{ url_for('authenticate',name=name) }} method=post enctype=multipart/form-data> <div id=index_enter>
<form action={{ url_for('authenticate',name=name) }} method=post enctype=multipart/form-data>
<p><input type=password name=password autofocus> <p><input type=password name=password autofocus>
<input type=submit value=Login> <input type=submit value=Login>
</form> </form>
</div>
</div>
{% endblock %} {% endblock %}

View File

@@ -4,7 +4,7 @@
<div id=index_menu> <div id=index_menu>
<div id=index_enter> <div id=index_enter>
<input id="index_form_name" type=text name=name title="Hidden share name" <input id="index_form_name" type=text name=name title="Hidden share name"
onkeydown="index_form_enter(event)"> onkeydown="index_form_enter(event)" autofocus>
<input type=submit value=Go onclick="index_form_submit()"> <input type=submit value=Go onclick="index_form_submit()">
</div> </div>
</div> </div>

View File

@@ -1,5 +1,10 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<p>You are logged out from <a href="{{ url_for('list_view',name=name) }}">{{ name|safe }}</a></p> <div id=index_menu>
<p>You logged out from share <a href="{{ url_for('list_view',name=name) }}">{{ name|safe }}</a></p>
<p>Continue to <a href="{{ url_for('index') }}">index</a></p> <p>Continue to <a href="{{ url_for('index') }}">index</a></p>
</div>
{% endblock %} {% endblock %}