From 54e0fd546ea426a8c8b5f25b1aee8f42e743ab81 Mon Sep 17 00:00:00 2001
From: Felix Albrigtsen
Date: Sat, 27 Aug 2022 19:12:15 +0200
Subject: [PATCH] Various minor changes
---
worblehat/blueprints/main.py | 6 ++++-
worblehat/models/Language.py | 2 +-
worblehat/templates/main/index.html | 2 +-
worblehat/templates/main/login.html | 40 +++++++++++++++++++++++++++++
4 files changed, 47 insertions(+), 3 deletions(-)
create mode 100644 worblehat/templates/main/login.html
diff --git a/worblehat/blueprints/main.py b/worblehat/blueprints/main.py
index 999d0cb..800d369 100644
--- a/worblehat/blueprints/main.py
+++ b/worblehat/blueprints/main.py
@@ -4,4 +4,8 @@ main = Blueprint("main", __name__, template_folder="main")
@main.route('/')
def index():
- return render_template("main/index.html")
\ No newline at end of file
+ return render_template("main/index.html")
+
+@main.route("/login")
+def login():
+ return render_template("main/login.html")
\ No newline at end of file
diff --git a/worblehat/models/Language.py b/worblehat/models/Language.py
index 05d53bf..f4c23b9 100644
--- a/worblehat/models/Language.py
+++ b/worblehat/models/Language.py
@@ -8,7 +8,7 @@ class Language(Base):
name = Column(String(32), nullable=False)
shortname = Column(String(2), nullable=False)
- flag = Column(String(2))
+ flag = Column(String(3))
items = relationship('Item', back_populates='language')
diff --git a/worblehat/templates/main/index.html b/worblehat/templates/main/index.html
index cb5189c..70d9833 100644
--- a/worblehat/templates/main/index.html
+++ b/worblehat/templates/main/index.html
@@ -12,7 +12,7 @@
PVV Library
-
+ Demo
diff --git a/worblehat/templates/main/login.html b/worblehat/templates/main/login.html
new file mode 100644
index 0000000..6969d8a
--- /dev/null
+++ b/worblehat/templates/main/login.html
@@ -0,0 +1,40 @@
+{% extends 'base.html' %}
+
+{% block main %}
+
+ {% endblock %}
\ No newline at end of file