aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:10:12 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-18 14:10:12 +0000
commit2158c8e86ff4417973dd7ca650fab91e32c4e56a (patch)
treee26d9e43f712e6f140dc744287431e6e46c9b143 /app/templates
downloadAnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.tar.gz
AnnotateChange-2158c8e86ff4417973dd7ca650fab91e32c4e56a.zip
initial commit
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/base.html27
-rw-r--r--app/templates/index.html5
-rw-r--r--app/templates/login.html24
3 files changed, 56 insertions, 0 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
new file mode 100644
index 0000000..c40482d
--- /dev/null
+++ b/app/templates/base.html
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ {% if title %}
+ <title>{{ title }} - Annotate Change</title>
+ {% else %}
+ <title>Welcome to Annotate Change</title>
+ {% endif %}
+ </head>
+ <body>
+ <div>Annotate Change:
+ <a href="{{ url_for('index') }}">Home</a>
+ <a href="{{ url_for('login') }}">Login</a>
+ </div>
+ <hr>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul>
+ {% for message in messages %}
+ <li>{{ message}}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% endwith %}
+ {% block content %}
+ {% endblock %}
+ </body>
+</html>
diff --git a/app/templates/index.html b/app/templates/index.html
new file mode 100644
index 0000000..f111cd6
--- /dev/null
+++ b/app/templates/index.html
@@ -0,0 +1,5 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1>Hi, {{ user.username }}!</h1>
+{% endblock %}
diff --git a/app/templates/login.html b/app/templates/login.html
new file mode 100644
index 0000000..21e0161
--- /dev/null
+++ b/app/templates/login.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <h1>Sign In</h1>
+ <form action="" method="post" novalidate>
+ {{ form.hidden_tag() }}
+ <p>
+ {{ form.username.label }}<br>
+ {{ form.username(size=32) }}
+ {% for error in form.username.errors %}
+ <span style="color: red;">[{{ error }}]</span>
+ {% endfor %}
+ </p>
+ <p>
+ {{ form.password.label }}<br>
+ {{ form.password(size=32) }}
+ {% for error in form.username.errors %}
+ <span style="color: red;">[{{ error }}]</span>
+ {% endfor %}
+ </p>
+ <p>{{ form.remember_me() }} {{ form.remember_me.label }}</p>
+ <p>{{ form.submit() }}</p>
+ </form>
+{% endblock %}