aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/layout.html2
-rw-r--r--templates/login_form.html16
2 files changed, 18 insertions, 0 deletions
diff --git a/templates/layout.html b/templates/layout.html
index 3c6d8ab..3620a3a 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -9,6 +9,8 @@
<div class=page>
<ul class=nav>
<li><a href="{{ url_for('new_paste') }}">New Paste</a>
+ {% if g.user and g.user == "admin" %}<li><a href="{{ url_for('admin') }}">admin</a></li>{% endif %}
+ {% if g.user %}<li><a href="{{ url_for('logout') }}">Sign out</a></li>{% endif %}
{#
{% if g.user %}
<li><a href="{{ url_for('my_pastes') }}">My Pastes</a>
diff --git a/templates/login_form.html b/templates/login_form.html
new file mode 100644
index 0000000..b179732
--- /dev/null
+++ b/templates/login_form.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+<title>Login Form</title>
+<meta name="viewport" content="width=device-width, initial-scale=1">
+</head>
+<body>
+<center>
+<h1>Login Form</h1>
+<form action="{{ login_url }}" method="post">
+<p>Username <input type="text" value="" name="username" required/></p>
+<p>Password <input type="password" name="password" required/></p>
+<p><input accesskey="s" type="submit" value="Submit"/></p>
+</form>
+</center>
+</body>
+</html>
bgstack15