aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/base.html36
-rw-r--r--app/templates/index.html5
-rw-r--r--app/templates/login.html14
-rw-r--r--app/templates/register.html5
4 files changed, 60 insertions, 0 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
new file mode 100644
index 0000000..d905156
--- /dev/null
+++ b/app/templates/base.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>nccd</title>
+ {% assets "scss" %}
+ <link rel="stylesheet" type="text/css" href="{{ ASSET_URL }}">
+ {% endassets %}
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+
+ <body>
+ <div class="container">
+ <div class="navbar">
+ <ul>
+ <li class="navbar-item"><a href="/">Home</a></li>
+ </ul>
+ </div>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul class="flashes">
+ {% for m in messages %}
+ <li class="message">{{m}}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% endwith %}
+
+ {% block content %}
+
+ Whoops! This page is still being worked on.
+
+ {% endblock %}
+ </div>
+ </body>
+</html>
diff --git a/app/templates/index.html b/app/templates/index.html
new file mode 100644
index 0000000..3c69e80
--- /dev/null
+++ b/app/templates/index.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/templates/login.html b/app/templates/login.html
new file mode 100644
index 0000000..21ce281
--- /dev/null
+++ b/app/templates/login.html
@@ -0,0 +1,14 @@
+{% extends 'base.html' %}
+
+{% block content %}
+<form method="POST">
+ {{ form.csrf_token }}
+ <div>
+ {{form.username.label }}{{form.username}}
+ </div>
+ <div>
+ {{form.password.label}}{{form.password}}
+ </div>
+ {{form.submit}}
+</form>
+{% endblock %}
diff --git a/app/templates/register.html b/app/templates/register.html
new file mode 100644
index 0000000..56d9855
--- /dev/null
+++ b/app/templates/register.html
@@ -0,0 +1,5 @@
+{% extends 'base.html' %}
+
+{% block content %}
+
+{% endblock %}