diff options
author | ubq323 <ubq323> | 2021-05-21 17:14:30 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-05-21 17:14:30 +0000 |
commit | c82acee80f08090757575f343c0941563ac906db (patch) | |
tree | 856d5c556f793fcf47932159b241146e0928a037 /apioforum/templates | |
parent | bab4893709e736e30f208a810b46d21aed6cef0e (diff) |
some auth
Diffstat (limited to 'apioforum/templates')
-rw-r--r-- | apioforum/templates/auth/login.html | 14 | ||||
-rw-r--r-- | apioforum/templates/base.html | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/apioforum/templates/auth/login.html b/apioforum/templates/auth/login.html new file mode 100644 index 0000000..f7da0d3 --- /dev/null +++ b/apioforum/templates/auth/login.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} +{% block header %} + <h1>{% block title %}login{% endblock %}</h1> +{% endblock %} + +{% block content %} +<form method="post"> + <label for="username">Username</label> + <input name="username" id="username" required> + <label for="password">Password</label> + <input name="password" id="password" required> + <input type="submit" value="yes"> +</form> +{% endblock %} diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html new file mode 100644 index 0000000..01339c1 --- /dev/null +++ b/apioforum/templates/base.html @@ -0,0 +1,16 @@ +{# BASED? BASED ON WHAT? #} +<!DOCTYPE html> +<html> + <head> + <title>{%block title %}{% endblock %}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + </head> + <body> + {% block header %}{% endblock %} + {% for msg in get_flashed_messages() %} + <div class="flash">{{ msg }}</div> + {% endfor %} + {%block content %}{% endblock %} + </body> +</html> + |