diff --git a/templates/add_account.html b/templates/add_account.html index a9293f3..f20e056 100644 --- a/templates/add_account.html +++ b/templates/add_account.html @@ -1,13 +1,8 @@ - - - - - - - Add Account - KTVManager - - - +{% extends "base.html" %} + +{% block title %}Add Account - KTVManager{% endblock %} + +{% block head_content %} - - - - +{% endblock %} +{% block sub_nav %}
@@ -52,57 +27,54 @@
+{% endblock %} - -
-

Add Account

-
-
+{% block content %} +

Add Account

+
+ +
+ + +
+
+ + +
+
+ + +
+ + + {% 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

+
+ + + + + + + + + {% for account in current_month_accounts %} - - - + + + - - - {% for account in current_month_accounts %} - - - - - - {% endfor %} - -
Stream NameUsernameExpiry Date
Stream NameUsernameExpiry Date{{ account.stream }}{{ account.username }}{{ account.expiaryDate_rendered }}
{{ account.stream }}{{ account.username }}{{ account.expiaryDate_rendered }}
- {% endif %} - {% if expired_accounts %} -

Expired Accounts

- - + {% endfor %} + +
+ {% endif %} + {% if expired_accounts %} +

Expired Accounts

+ + + + + + + + + + {% for account in expired_accounts %} - - - + + + - - - {% for account in expired_accounts %} - - - - - - {% endfor %} - -
Stream NameUsernameExpiry Date
Stream NameUsernameExpiry Date{{ account.stream }}{{ account.username }}{{ account.expiaryDate_rendered }}
{{ account.stream }}{{ account.username }}{{ account.expiaryDate_rendered }}
- {% 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" %} - - +
+ + +
+ + {% if error %} +
{{ error }}
+ {% endif %} + +{% endblock %} - -
-

Welcome to KTV Manager

- - -
-
- - -
-
- - -
- - {% if error %} -
{{ error }}
- {% endif %} -
- -
- - - - - - - - - +{% 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

- - - - - - - - - {% for url in urls %} - - - - - {% endfor %} - -
#URL
{{ loop.index }}{{ url }}
- -
- - - - - - - - +{% block content %} +

URLs

+ + + + + + + + + {% for url in urls %} + + + + + {% endfor %} + +
#URL
{{ loop.index }}{{ url }}
+{% endblock %} diff --git a/templates/user_accounts.html b/templates/user_accounts.html index ed0e300..da617b0 100644 --- a/templates/user_accounts.html +++ b/templates/user_accounts.html @@ -1,30 +1,13 @@ - - - - - - KTVManager - +{% extends "base.html" %} + +{% block title %}Accounts - KTVManager{% endblock %} + +{% block head_content %} - - - - - +{% endblock %} +{% block sub_nav %}
@@ -38,56 +21,49 @@
+{% endblock %} - -
-

{{ username }}'s Accounts

-
- - - - - - - - - - - - - - {% for account in user_accounts %} - - - - - - - - - - {% endfor %} - -
UsernameStreamStream URLExpiry DatePasswordActions
{{ account.username }}{{ account.stream }}{{ account.streamURL }}{{ account.expiaryDate_rendered }}{{ account.password }} -
- - - -
-
-
+{% block content %} +

{{ username }}'s Accounts

+
+ + + + + + + + + + + + + + {% for account in user_accounts %} + + + + + + + + + + {% endfor %} + +
UsernameStreamStream URLExpiry DatePasswordActions
{{ account.username }}{{ account.stream }}{{ account.streamURL }}{{ account.expiaryDate_rendered }}{{ account.password }} +
+ + + +
+
-
+{% endblock %} - - - - - +{% block scripts %} - - - - +{% endblock %}