From 292048edaf0e2d4c4d591cfec1d923cb6d845991 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sun, 11 Oct 2020 21:47:02 -0500 Subject: Add edit ledger --- src/templates/index.html | 210 ----------------------------------------- src/templates/ledger-edit.html | 31 ++++++ src/templates/ledger.html | 5 + 3 files changed, 36 insertions(+), 210 deletions(-) delete mode 100644 src/templates/index.html create mode 100644 src/templates/ledger-edit.html (limited to 'src/templates') diff --git a/src/templates/index.html b/src/templates/index.html deleted file mode 100644 index 525f8fe..0000000 --- a/src/templates/index.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - 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/ledger-edit.html b/src/templates/ledger-edit.html new file mode 100644 index 0000000..2acc2c2 --- /dev/null +++ b/src/templates/ledger-edit.html @@ -0,0 +1,31 @@ + + + + + {{name}}'s Budget + + + + + +

{{name}}'s Budget

+
+ + + + +
+
+ + + + + + +
+ + + + diff --git a/src/templates/ledger.html b/src/templates/ledger.html index 0ac9b0e..f5c46de 100644 --- a/src/templates/ledger.html +++ b/src/templates/ledger.html @@ -5,6 +5,7 @@ {{name}}'s Budget + @@ -31,6 +32,8 @@ Amount Category Tags + + {{#each ledger}} @@ -40,6 +43,8 @@ {{this.amount}} {{this.category}} {{this.subcategory}} + + {{/each}} -- cgit v1.2.3