From 0345f90a7baceae507f417abe30736cc95cdc0cf Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 9 Oct 2020 22:42:56 -0500 Subject: Begin refactor to use server side templates --- src/templates/index.html | 210 +++++++++++++++++++++++++++++++++++++++++++++ src/templates/login.html | 49 +++++++++++ src/templates/summary.html | 45 ++++++++++ 3 files changed, 304 insertions(+) create mode 100644 src/templates/index.html create mode 100644 src/templates/login.html create mode 100644 src/templates/summary.html (limited to 'src/templates') diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..525f8fe --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,210 @@ + + + + + Budget + + + + + + + + + + +
+

{{summary.username}}'s budget

+
+ + + + +
+ + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
DateWhereAmountCategorySubcategory
{{i+1}}{{transaction.when.substring(0,10)}}{{transaction.where}}{{transaction.amount}}{{transaction.category}}{{transaction.subcategory}} + + +
+
+ + + + + + + + + + + + + + + + + + + +
DateWhereAmountCategorySubcategory
+ + + + + + + + + +
+ + +
+
+

Weekly

+ + + + + + + + + + + + + + + +
YearWeekInOutNet
{{data.y}}{{data.w}}{{data.in}}{{data.out}}{{data.net}} +
+
+
+

Monthly

+ + + + + + + + + + + + + + + +
YearMonthInOutNet
{{data.y}}{{data.m}}{{data.in}}{{data.out}}{{data.net}} +
+
+
+

Yearly

+ + + + + + + + + + + + + +
YearInOutNet
{{data.y}}{{data.in}}{{data.out}}{{data.net}} +
+
+
+ + +
+
+
+ New Goal + + + +
+
+ Allocate funds + + out of {{total_to_allocate}} + + +
+ + + + + + + + + +
NameAmountTotalRemaining
{{i+1}}{{goal.name}}{{goal.amount}}{{goal.total}}{{goal.total - goal.amount}}
+
+
+ + +
+
+
+ New Expected + + + + +
+ + + + + + + + +
NameTotalPeriod
{{i+1}}{{e.name}}{{e.total}}{{e.days}}
+
+
+
+ + + \ No newline at end of file diff --git a/src/templates/login.html b/src/templates/login.html new file mode 100644 index 0000000..ec41762 --- /dev/null +++ b/src/templates/login.html @@ -0,0 +1,49 @@ + + + + + Mark's Database - Login + + + + + + + +
+

Login

+
+ + + +
+
+ + + \ No newline at end of file diff --git a/src/templates/summary.html b/src/templates/summary.html new file mode 100644 index 0000000..5bf828e --- /dev/null +++ b/src/templates/summary.html @@ -0,0 +1,45 @@ + + + + + {{name}}'s Budget + + + + + +

{{name}}'s Budget

+
+ + + + + + +
+ + + + + + + + + + {{#each ledger}} + + + + + + + + + {{/each}} +
WhenWhereAmountCategoryTags
{{this.index}}{{this.when}}{{this.where}}{{this.amount}}{{this.category}}{{this.subcategory}}
+ + + + -- cgit v1.2.3