From e6468b012d5b33dd16992652da57f11dd5a6e82f Mon Sep 17 00:00:00 2001 From: Jokler Date: Sun, 21 Jun 2020 06:37:46 +0200 Subject: Initial commit --- templates/admin.htm | 22 ++++++++++++++++++++++ templates/base.htm | 18 ++++++++++++++++++ templates/login.htm | 19 +++++++++++++++++++ templates/settings.htm | 31 +++++++++++++++++++++++++++++++ templates/transactions.htm | 40 ++++++++++++++++++++++++++++++++++++++++ templates/transfer.htm | 31 +++++++++++++++++++++++++++++++ 6 files changed, 161 insertions(+) create mode 100644 templates/admin.htm create mode 100644 templates/base.htm create mode 100644 templates/login.htm create mode 100644 templates/settings.htm create mode 100644 templates/transactions.htm create mode 100644 templates/transfer.htm (limited to 'templates') diff --git a/templates/admin.htm b/templates/admin.htm new file mode 100644 index 0000000..db4aa03 --- /dev/null +++ b/templates/admin.htm @@ -0,0 +1,22 @@ +{% extends "base.htm" %} + +{% block title %}Administration{% endblock %} + +{% block content %} +

User Creation

+
+ + + + + + + + + + +
+{% endblock %} + + diff --git a/templates/base.htm b/templates/base.htm new file mode 100644 index 0000000..b55244d --- /dev/null +++ b/templates/base.htm @@ -0,0 +1,18 @@ + + + + + + + + {% block title %}{{ title }} - xyz {% endblock %} + + +
+ {% block content %}{% endblock %} +
+ + + + diff --git a/templates/login.htm b/templates/login.htm new file mode 100644 index 0000000..e107aeb --- /dev/null +++ b/templates/login.htm @@ -0,0 +1,19 @@ +{% extends "base.htm" %} + +{% block title %}Login{% endblock %} + +{% block content %} +

Login

+{% if failed -%} +
Invalid Login Data
+{% endif -%} +
+ + + + +
+{% endblock %} + + diff --git a/templates/settings.htm b/templates/settings.htm new file mode 100644 index 0000000..5b53a64 --- /dev/null +++ b/templates/settings.htm @@ -0,0 +1,31 @@ +{% extends "base.htm" %} + +{% block title %}Settings{% endblock %} + +{% block content %} +

User Settings

+ +

Change Password

+Go Back + +{% match result %} + {% when PasswordResult::Success %} +
Password change was successful
+ {% when PasswordResult::InvalidOld -%} +
Old password was incorrect
+ {% when PasswordResult::Missmatch -%} +
New passwords were not the same
+ {% when PasswordResult::Empty -%} +{% endmatch %} + +
+ + + + + +
+{% endblock %} + + diff --git a/templates/transactions.htm b/templates/transactions.htm new file mode 100644 index 0000000..f2b93ba --- /dev/null +++ b/templates/transactions.htm @@ -0,0 +1,40 @@ +{% extends "base.htm" %} + +{% block title %}Transactions{% endblock %} + +{% block content %} +

{{ name }}'s Transactions

+

{{ amount|fmt_points }}

+
+ Transfer Points + Settings + Logout +
+ + + + + + + + + {% for transaction in transactions %} + + + {% if name == transaction.sender -%} + + + + {% else -%} + + + + {% endif -%} + + + {% endfor %} +
TimeAmountBalanceOtherPurpose
{{ transaction.date }}-{{ transaction.amount }}{{ transaction.sender_balance }}{{ transaction.receiver }}{{ transaction.amount }}{{ transaction.receiver_balance }}{{ transaction.sender }}{{ transaction.purpose }}
+{% endblock %} + + diff --git a/templates/transfer.htm b/templates/transfer.htm new file mode 100644 index 0000000..1c484db --- /dev/null +++ b/templates/transfer.htm @@ -0,0 +1,31 @@ +{% extends "base.htm" %} + +{% block title %}Transfer Points{% endblock %} + +{% block content %} +

Transfer Points

+

{{ balance|fmt_points }}

+Go Back + +{% match error %} + {% when TransferResult::ZeroPoints %} +
You have to send at least 1 JKP
+ {% when TransferResult::SelfSend %} +
You can not send points to yourself
+ {% when TransferResult::TransferError %} +
An error occured during the transfer
+ {% when TransferResult::Empty %} +{% endmatch %} + +
+ + + + + +
+{% endblock %} + + -- cgit v1.2.3-70-g09d2