+
+ {% if ocr_enabled %}
+
+
Load Details Via OCR
+
- {% if ocr_enabled %}
-
-
Load Details Via OCR
-
- {% endif %}
- {% if text_input_enabled %}
-
-
Load Details Via Text
-
-
-
-
- {% endif %}
-
-
-
-
+ {% endif %}
+ {% if text_input_enabled %}
+
+
Load Details Via Text
+
+
+
+
+ {% endif %}
+{% endblock %}
+
+{% block scripts %}
-
-
+{% endblock %}
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..e6de348
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
{% block title %}KTVManager{% endblock %}
+
+
+
+
+
+
+
+
+ {% block head_content %}{% endblock %}
+
+
+
+
+
+
+ {% block sub_nav %}{% endblock %}
+
+
+
+ {% block content %}{% endblock %}
+
+
+
+
+
+
+
+ {% block scripts %}{% endblock %}
+
+
\ No newline at end of file
diff --git a/templates/home.html b/templates/home.html
index 0ef6c7c..2cd254e 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -1,98 +1,61 @@
-
-
-
-
-
-
KTVManager
-
-
-
-
-
-
-
-
+{% extends "base.html" %}
-
-
- Welcome {{ username }}!
-
- You have {{ accounts }} active accounts
-
-
- {% if current_month_accounts %}
- Accounts Expiring Within 30 Days
-
-
+{% block title %}KTVManager{% endblock %}
+
+{% block content %}
+ Welcome {{ username }}!
+
+ You have {{ accounts }} active accounts
+
+
+ {% if current_month_accounts %}
+ Accounts Expiring Within 30 Days
+
+
+
+ Stream Name |
+ Username |
+ Expiry Date |
+
+
+
+ {% for account in current_month_accounts %}
- Stream Name |
- Username |
- Expiry Date |
+ {{ account.stream }} |
+ {{ account.username }} |
+ {{ account.expiaryDate_rendered }} |
-
-
- {% for account in current_month_accounts %}
-
- {{ account.stream }} |
- {{ account.username }} |
- {{ account.expiaryDate_rendered }} |
-
- {% endfor %}
-
-
- {% endif %}
- {% if expired_accounts %}
- Expired Accounts
-
+ {% endif %}
+ {% if expired_accounts %}
+ Expired Accounts
+
+
+
+ Stream Name |
+ Username |
+ Expiry Date |
+
+
+
+ {% for account in expired_accounts %}
- Stream Name |
- Username |
- Expiry Date |
+ {{ account.stream }} |
+ {{ account.username }} |
+ {{ account.expiaryDate_rendered }} |
-
-
- {% for account in expired_accounts %}
-
- {{ account.stream }} |
- {{ account.username }} |
- {{ account.expiaryDate_rendered }} |
-
- {% endfor %}
-
-
- {% endif %}
-
+ {% endfor %}
+
+
+ {% endif %}
+{% endblock %}
-
-
-
-
-
-
-
-
+{% block scripts %}
+
+{% endblock %}
diff --git a/templates/index.html b/templates/index.html
index 2b9aec1..415e7d7 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,80 +1,36 @@
-
-
-
-
-
-
- KTVManager
-
-
-
-
-
-
-
-
-
-
+{% extends "base.html" %}
-
-
-
-
-
-
-
-
-
-
-
+{% block scripts %}
+
+{% endblock %}
diff --git a/templates/urls.html b/templates/urls.html
index 4f4a198..df7f4d2 100644
--- a/templates/urls.html
+++ b/templates/urls.html
@@ -1,65 +1,23 @@
-
-
-
-
-
-
-
KTVManager
-
-
-
-
+{% extends "base.html" %}
-
-
+{% block title %}URLs - KTVManager{% endblock %}
-
-
-
- URLs
-
-
-
- # |
- URL |
-
-
-
- {% for url in urls %}
-
- {{ loop.index }} |
- {{ url }} |
-
- {% endfor %}
-
-
-
-
-
-