monopyly 1.5.2__py3-none-any.whl → 1.6.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- monopyly/CHANGELOG.md +22 -0
- monopyly/README.md +1 -1
- monopyly/__init__.py +1 -1
- monopyly/_version.py +2 -2
- monopyly/auth/blueprint.py +2 -0
- monopyly/auth/routes.py +1 -2
- monopyly/banking/accounts.py +4 -4
- monopyly/banking/actions.py +20 -17
- monopyly/banking/blueprint.py +2 -0
- monopyly/banking/filters.py +6 -6
- monopyly/banking/forms.py +7 -5
- monopyly/banking/routes.py +71 -9
- monopyly/banking/transactions.py +2 -3
- monopyly/common/forms/__init__.py +8 -0
- monopyly/common/forms/_forms.py +6 -16
- monopyly/common/forms/fields.py +0 -11
- monopyly/common/forms/utils.py +4 -4
- monopyly/common/transactions.py +72 -7
- monopyly/core/actions.py +2 -1
- monopyly/core/blueprint.py +2 -0
- monopyly/core/context_processors.py +3 -21
- monopyly/core/filters.py +0 -2
- monopyly/core/routes.py +1 -1
- monopyly/credit/actions.py +4 -5
- monopyly/credit/blueprint.py +2 -0
- monopyly/credit/cards.py +1 -1
- monopyly/credit/forms.py +9 -7
- monopyly/credit/routes.py +37 -62
- monopyly/credit/transactions/__init__.py +2 -0
- monopyly/credit/transactions/_transactions.py +1 -4
- monopyly/credit/transactions/activity/__init__.py +6 -0
- monopyly/credit/transactions/activity/parser.py +0 -1
- monopyly/credit/transactions/activity/reconciliation.py +5 -3
- monopyly/database/__init__.py +0 -3
- monopyly/database/models.py +63 -49
- monopyly/database/preloads.sql +6 -1
- monopyly/scripts/screenshot_application.py +100 -0
- monopyly/static/chartist-1.5.0.min.js +8 -0
- monopyly/static/css/style.css +39 -14
- monopyly/static/img/about/bank-account-details.png +0 -0
- monopyly/static/img/about/bank-account-summaries.png +0 -0
- monopyly/static/img/about/bank-accounts.png +0 -0
- monopyly/static/img/about/credit-account-details.png +0 -0
- monopyly/static/img/about/credit-statement-details.png +0 -0
- monopyly/static/img/about/credit-transactions.png +0 -0
- monopyly/static/img/about/homepage-user.png +0 -0
- monopyly/static/img/about/homepage.png +0 -0
- monopyly/static/jquery-3.7.1.min.js +2 -0
- monopyly/static/js/add-transfer.js +8 -9
- monopyly/static/js/bind-tag-actions.js +6 -0
- monopyly/static/js/create-balance-chart.js +1 -1
- monopyly/static/js/create-category-chart.js +1 -1
- monopyly/static/js/load-more-transactions.js +27 -0
- monopyly/static/js/modules/expand-transaction.js +7 -6
- monopyly/static/js/modules/update-display-ajax.js +20 -1
- monopyly/static/js/update-transactions-display.js +8 -2
- monopyly/templates/banking/account_form/account_form_page_new.html +10 -8
- monopyly/templates/banking/account_page.html +32 -33
- monopyly/templates/banking/account_summaries.html +2 -2
- monopyly/templates/banking/account_summary.html +1 -1
- monopyly/templates/banking/accounts_page.html +10 -8
- monopyly/templates/banking/transactions_table/table.html +3 -0
- monopyly/templates/banking/transactions_table/transactions.html +0 -1
- monopyly/templates/common/tag_tree.html +25 -0
- monopyly/templates/{credit → common}/tags_page.html +17 -13
- monopyly/templates/common/transactions_table/linked_bank_transaction.html +2 -2
- monopyly/templates/common/transactions_table/table.html +6 -0
- monopyly/templates/common/transactions_table/transactions.html +9 -15
- monopyly/templates/core/index.html +124 -109
- monopyly/templates/core/profile.html +19 -20
- monopyly/templates/credit/account_page.html +17 -17
- monopyly/templates/credit/card_form/card_form_page_new.html +8 -5
- monopyly/templates/credit/statement_page.html +45 -46
- monopyly/templates/credit/statement_reconciliation/statement_reconciliation_page.html +22 -22
- monopyly/templates/credit/statement_summary.html +2 -2
- monopyly/templates/credit/statements_page.html +13 -13
- monopyly/templates/credit/transaction_form/transaction_form_page_update.html +9 -9
- monopyly/templates/credit/transaction_submission_page.html +3 -3
- monopyly/templates/credit/transactions_page.html +38 -22
- monopyly/templates/credit/transactions_table/condensed_row_content.html +2 -2
- monopyly/templates/credit/transactions_table/expanded_row_content.html +5 -5
- monopyly/templates/credit/transactions_table/table.html +3 -0
- monopyly/templates/credit/transactions_table/transactions.html +0 -1
- monopyly/templates/layout.html +16 -9
- {monopyly-1.5.2.dist-info → monopyly-1.6.1.dist-info}/METADATA +8 -8
- {monopyly-1.5.2.dist-info → monopyly-1.6.1.dist-info}/RECORD +90 -84
- monopyly-1.6.1.dist-info/entry_points.txt +3 -0
- monopyly/static/jquery-3.7.0.min.js +0 -2
- monopyly/templates/credit/tag_tree/subtag_tree.html +0 -22
- monopyly/templates/credit/tag_tree/tag_tree.html +0 -13
- monopyly-1.5.2.dist-info/entry_points.txt +0 -2
- {monopyly-1.5.2.dist-info → monopyly-1.6.1.dist-info}/WHEEL +0 -0
- {monopyly-1.5.2.dist-info → monopyly-1.6.1.dist-info}/licenses/COPYING +0 -0
- {monopyly-1.5.2.dist-info → monopyly-1.6.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{% for tag in tags_hierarchy recursive %}
|
|
2
|
+
<li class="tag-container">
|
|
3
|
+
<div class="tag-area">
|
|
4
|
+
<div class="tag">{{ tag.tag_name }}</div>
|
|
5
|
+
<div class="buttons">
|
|
6
|
+
<img class="new-tag button" src="{{ url_for('static', filename='img/icons/plus-thick.png') }}" />
|
|
7
|
+
{% if tag.user_id != 0 %}
|
|
8
|
+
<a class="action button delete">
|
|
9
|
+
{% endif %}
|
|
10
|
+
</a>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<ul class="tags subtags">
|
|
15
|
+
{{ loop(tags_hierarchy[tag]) }}
|
|
16
|
+
</ul>
|
|
17
|
+
|
|
18
|
+
</li>
|
|
19
|
+
|
|
20
|
+
{% if loop.last %}
|
|
21
|
+
<input class="new-tag" type="text" />
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% else %}
|
|
24
|
+
<input class="new-tag" type="text" />
|
|
25
|
+
{% endfor %}
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{% extends 'layout.html' %}
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
const ADD_TAG_ENDPOINT = "{{ url_for('banking.add_tag') }}";
|
|
8
|
+
const REMOVE_TAG_ENDPOINT = "{{ url_for('banking.delete_tag') }}";
|
|
9
|
+
</script>
|
|
10
|
+
<script type="module" src="{{ url_for('static', filename='js/bind-tag-actions.js') }}">
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
{% endblock %}
|
|
14
|
+
|
|
15
|
+
|
|
4
16
|
{% block header %}
|
|
5
17
|
|
|
6
18
|
<h1>
|
|
@@ -20,22 +32,14 @@
|
|
|
20
32
|
|
|
21
33
|
<div id="tags-container" class="tag-container">
|
|
22
34
|
|
|
23
|
-
|
|
35
|
+
<ul class="tags">
|
|
36
|
+
{% include 'common/tag_tree.html' %}
|
|
37
|
+
</ul>
|
|
38
|
+
|
|
39
|
+
<img class="root new-tag button" src="{{ url_for('static', filename='img/icons/plus-thick.png') }}" />
|
|
24
40
|
|
|
25
41
|
</div>
|
|
26
42
|
|
|
27
43
|
</div>
|
|
28
44
|
|
|
29
45
|
{% endblock %}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{% block javascript %}
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
const ADD_TAG_ENDPOINT = "{{ url_for('credit.add_tag') }}";
|
|
36
|
-
const REMOVE_TAG_ENDPOINT = "{{ url_for('credit.delete_tag') }}";
|
|
37
|
-
</script>
|
|
38
|
-
<script type="module" src="{{ url_for('static', filename='js/bind-tag-actions.js') }}">
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
{% endblock %}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
<div class="description-header">
|
|
6
6
|
<div class="account">
|
|
7
|
-
{{ transaction.
|
|
7
|
+
{{ transaction.account_view.bank.bank_name }} ({{ transaction.account_view.last_four_digits }})
|
|
8
8
|
<div class="account-type">
|
|
9
|
-
{{ transaction.
|
|
9
|
+
{{ transaction.account_view.account_type_view.type_common_name }}
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="total">
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
{% for transaction in transactions %}
|
|
2
2
|
|
|
3
|
-
{%
|
|
3
|
+
{% if transaction.transaction_date > date_today %}
|
|
4
|
+
{% set future = ' future' %}
|
|
5
|
+
{% endif %}
|
|
4
6
|
|
|
5
|
-
{
|
|
7
|
+
<div id="transaction-{{ transaction.id }}" class="transaction{{ future }} row" data-transaction-id="{{ transaction.id }}">
|
|
8
|
+
{% include 'common/transactions_table/transaction_condensed.html' %}
|
|
9
|
+
{% include 'common/transactions_table/transaction_expanded.html' %}
|
|
10
|
+
</div>
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
{% set future = ' future' %}
|
|
9
|
-
{% endif %}
|
|
10
|
-
|
|
11
|
-
<div id="transaction-{{ transaction.id }}" class="transaction{{ future }} row" data-transaction-id="{{ transaction.id }}">
|
|
12
|
-
{% include 'common/transactions_table/transaction_condensed.html' %}
|
|
13
|
-
{% include 'common/transactions_table/transaction_expanded.html' %}
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
{% endfor %}
|
|
17
|
-
|
|
18
|
-
</div>
|
|
12
|
+
{% endfor %}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
{% extends "layout.html" %}
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
const HIDE_HOMEPAGE_BLOCK_ENDPOINT = "{{ url_for('core.hide_homepage_block') }}";
|
|
8
|
+
</script>
|
|
9
|
+
<script type="module" src="{{ url_for('static', filename='js/hide-homepage-block.js') }}">
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{% endblock %}
|
|
13
|
+
|
|
14
|
+
|
|
3
15
|
{% block content %}
|
|
4
16
|
|
|
5
17
|
{% if session["show_homepage_block"] %}
|
|
@@ -17,134 +29,145 @@
|
|
|
17
29
|
{% if g.user %}
|
|
18
30
|
<div id="homepage-panels">
|
|
19
31
|
|
|
20
|
-
<div
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
<ul class="category">
|
|
25
|
-
<h4>Profile</h4>
|
|
26
|
-
<li>
|
|
27
|
-
<a href="{{ url_for('banking.load_accounts') }}">
|
|
28
|
-
Manage accounts
|
|
29
|
-
</a>
|
|
30
|
-
</li>
|
|
31
|
-
<li>
|
|
32
|
-
<a href="{{ url_for('banking.add_account') }}">
|
|
33
|
-
Add a new account
|
|
34
|
-
</a>
|
|
35
|
-
</li>
|
|
36
|
-
<li>
|
|
37
|
-
<a href="{{ url_for('credit.load_tags') }}">
|
|
38
|
-
Manage transaction tags
|
|
39
|
-
</a>
|
|
40
|
-
</li>
|
|
41
|
-
</ul>
|
|
42
|
-
|
|
43
|
-
<h3>Banks</h3>
|
|
44
|
-
|
|
45
|
-
{% for bank in bank_accounts %}
|
|
46
|
-
<ul class="category">
|
|
32
|
+
<div class="panel-column">
|
|
33
|
+
|
|
34
|
+
<div id="banking" class="panel">
|
|
47
35
|
|
|
48
|
-
|
|
36
|
+
<h2>Bank Accounts</h2>
|
|
37
|
+
|
|
38
|
+
<ul class="category">
|
|
39
|
+
<h4>Profile</h4>
|
|
49
40
|
<li>
|
|
50
|
-
<a href="{{ url_for('banking.
|
|
51
|
-
|
|
41
|
+
<a href="{{ url_for('banking.load_accounts') }}">
|
|
42
|
+
Manage accounts
|
|
52
43
|
</a>
|
|
53
|
-
<ul>
|
|
54
|
-
{% for account in bank_accounts[bank]|sort(attribute='account_type.type_common_name,last_four_digits') %}
|
|
55
|
-
<li>
|
|
56
|
-
<a href="{{ url_for('banking.load_account_details', account_id=account.id) }}">
|
|
57
|
-
{{ account.account_type.type_common_name }} {{ account.last_four_digits }}
|
|
58
|
-
</a>
|
|
59
|
-
</li>
|
|
60
|
-
{% endfor %}
|
|
61
|
-
</ul>
|
|
62
44
|
</li>
|
|
63
45
|
<li>
|
|
64
|
-
<a href="{{ url_for('banking.
|
|
65
|
-
|
|
46
|
+
<a href="{{ url_for('banking.add_account') }}">
|
|
47
|
+
Add a new account
|
|
48
|
+
</a>
|
|
49
|
+
</li>
|
|
50
|
+
<li>
|
|
51
|
+
<a href="{{ url_for('banking.load_tags') }}">
|
|
52
|
+
Manage transaction tags
|
|
66
53
|
</a>
|
|
67
54
|
</li>
|
|
68
|
-
|
|
69
55
|
</ul>
|
|
70
|
-
{% endfor %}
|
|
71
56
|
|
|
72
|
-
|
|
57
|
+
<h3>Banks</h3>
|
|
73
58
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<h2>Credit Cards</h2>
|
|
77
|
-
|
|
78
|
-
<ul class="category">
|
|
79
|
-
<h4>Profile</h4>
|
|
80
|
-
<li>
|
|
81
|
-
<a href="{{ url_for('credit.load_cards') }}">
|
|
82
|
-
Manage cards
|
|
83
|
-
</a>
|
|
84
|
-
</li>
|
|
85
|
-
<li>
|
|
86
|
-
<a href="{{ url_for('credit.add_card') }}">
|
|
87
|
-
Add a new card
|
|
88
|
-
</a>
|
|
89
|
-
</li>
|
|
90
|
-
<li>
|
|
91
|
-
<a href="{{ url_for('credit.load_tags') }}">
|
|
92
|
-
Manage transaction tags
|
|
93
|
-
</a>
|
|
94
|
-
</li>
|
|
95
|
-
</ul>
|
|
96
|
-
|
|
97
|
-
<ul class="category">
|
|
98
|
-
<h4>History</h4>
|
|
99
|
-
<li>
|
|
100
|
-
<a href="{{ url_for('credit.load_statements') }}">
|
|
101
|
-
See statement history
|
|
102
|
-
</a>
|
|
103
|
-
</li>
|
|
104
|
-
<li>
|
|
105
|
-
<a href="{{ url_for('credit.load_transactions') }}">
|
|
106
|
-
See transaction history
|
|
107
|
-
</a>
|
|
108
|
-
</li>
|
|
109
|
-
<li>
|
|
110
|
-
<a href="{{ url_for('credit.add_transaction') }}">
|
|
111
|
-
Create a new transaction
|
|
112
|
-
</a>
|
|
113
|
-
</li>
|
|
114
|
-
</ul>
|
|
115
|
-
|
|
116
|
-
<h3>Cards</h3>
|
|
117
|
-
|
|
118
|
-
{% for card in cards %}
|
|
119
|
-
<ul class="category">
|
|
59
|
+
{% for bank in bank_accounts %}
|
|
60
|
+
<ul class="category">
|
|
120
61
|
|
|
121
|
-
|
|
122
|
-
{% if card.last_statement_id %}
|
|
62
|
+
<h4>{{ bank.bank_name }}</h4>
|
|
123
63
|
<li>
|
|
124
|
-
<a href="{{ url_for('
|
|
125
|
-
See
|
|
64
|
+
<a href="{{ url_for('banking.load_account_summaries', bank_id=bank.id) }}">
|
|
65
|
+
See account summaries
|
|
126
66
|
</a>
|
|
67
|
+
<ul>
|
|
68
|
+
{% for account in bank_accounts[bank]|sort(attribute='account_type_view.type_common_name,last_four_digits') %}
|
|
69
|
+
<li>
|
|
70
|
+
<a href="{{ url_for('banking.load_account_details', account_id=account.id) }}">
|
|
71
|
+
{{ account.account_type_view.type_common_name }} {{ account.last_four_digits }}
|
|
72
|
+
</a>
|
|
73
|
+
</li>
|
|
74
|
+
{% endfor %}
|
|
75
|
+
</ul>
|
|
127
76
|
</li>
|
|
128
|
-
|
|
77
|
+
<li>
|
|
78
|
+
<a href="{{ url_for('banking.add_transaction', bank_id=bank.id) }}">
|
|
79
|
+
Create a new transaction
|
|
80
|
+
</a>
|
|
81
|
+
</li>
|
|
82
|
+
|
|
83
|
+
</ul>
|
|
84
|
+
{% endfor %}
|
|
85
|
+
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div class="panel-column">
|
|
91
|
+
|
|
92
|
+
<div id="credit" class="panel">
|
|
93
|
+
|
|
94
|
+
<h2>Credit Cards</h2>
|
|
95
|
+
|
|
96
|
+
<ul class="category">
|
|
97
|
+
<h4>Profile</h4>
|
|
129
98
|
<li>
|
|
130
|
-
<a href="{{ url_for('credit.
|
|
99
|
+
<a href="{{ url_for('credit.load_cards') }}">
|
|
100
|
+
Manage cards
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
<a href="{{ url_for('credit.add_card') }}">
|
|
105
|
+
Add a new card
|
|
106
|
+
</a>
|
|
107
|
+
</li>
|
|
108
|
+
<li>
|
|
109
|
+
<a href="{{ url_for('banking.load_tags') }}">
|
|
110
|
+
Manage transaction tags
|
|
111
|
+
</a>
|
|
112
|
+
</li>
|
|
113
|
+
</ul>
|
|
114
|
+
|
|
115
|
+
<ul class="category">
|
|
116
|
+
<h4>History</h4>
|
|
117
|
+
<li>
|
|
118
|
+
<a href="{{ url_for('credit.load_statements') }}">
|
|
119
|
+
See statement history
|
|
120
|
+
</a>
|
|
121
|
+
</li>
|
|
122
|
+
<li>
|
|
123
|
+
<a href="{{ url_for('credit.load_transactions') }}">
|
|
131
124
|
See transaction history
|
|
132
125
|
</a>
|
|
133
126
|
</li>
|
|
134
127
|
<li>
|
|
135
|
-
<a href="{{ url_for('credit.add_transaction'
|
|
128
|
+
<a href="{{ url_for('credit.add_transaction') }}">
|
|
136
129
|
Create a new transaction
|
|
137
130
|
</a>
|
|
138
131
|
</li>
|
|
139
|
-
|
|
140
132
|
</ul>
|
|
141
|
-
{% endfor %}
|
|
142
133
|
|
|
134
|
+
<h3>Cards</h3>
|
|
135
|
+
|
|
136
|
+
{% for card in cards %}
|
|
137
|
+
<ul class="category">
|
|
138
|
+
|
|
139
|
+
<h4>{{ card.account.bank.bank_name }} {{ card.last_four_digits }}</h4>
|
|
140
|
+
{% if card.last_statement_id %}
|
|
141
|
+
<li>
|
|
142
|
+
<a href="{{ url_for('credit.load_statement_details', statement_id=card.last_statement_id) }}">
|
|
143
|
+
See most recent statement
|
|
144
|
+
</a>
|
|
145
|
+
</li>
|
|
146
|
+
{% endif %}
|
|
147
|
+
<li>
|
|
148
|
+
<a href="{{ url_for('credit.load_transactions', card_id=card.id) }}">
|
|
149
|
+
See transaction history
|
|
150
|
+
</a>
|
|
151
|
+
</li>
|
|
152
|
+
<li>
|
|
153
|
+
<a href="{{ url_for('credit.add_transaction', card_id=card.id) }}">
|
|
154
|
+
Create a new transaction
|
|
155
|
+
</a>
|
|
156
|
+
</li>
|
|
157
|
+
|
|
158
|
+
</ul>
|
|
159
|
+
{% endfor %}
|
|
160
|
+
|
|
161
|
+
</div>
|
|
143
162
|
|
|
144
163
|
</div>
|
|
145
164
|
|
|
146
|
-
<div
|
|
147
|
-
|
|
165
|
+
<div class="panel-column">
|
|
166
|
+
|
|
167
|
+
<div id="investments" class="panel">
|
|
168
|
+
<h2>Coming soon!</h2>
|
|
169
|
+
</div>
|
|
170
|
+
|
|
148
171
|
</div>
|
|
149
172
|
|
|
150
173
|
</div>
|
|
@@ -159,11 +182,3 @@
|
|
|
159
182
|
{% endif %}
|
|
160
183
|
|
|
161
184
|
{% endblock %}
|
|
162
|
-
|
|
163
|
-
{% block javascript %}
|
|
164
|
-
<script>
|
|
165
|
-
const HIDE_HOMEPAGE_BLOCK_ENDPOINT = "{{ url_for('core.hide_homepage_block') }}";
|
|
166
|
-
</script>
|
|
167
|
-
<script type="module" src="{{ url_for('static', filename='js/hide-homepage-block.js') }}">
|
|
168
|
-
</script>
|
|
169
|
-
{% endblock %}
|
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
{% extends "layout.html" %}
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
const UPDATE_BANK_NAME_ENDPOINTS = {
|
|
8
|
+
{% for bank in banks %}
|
|
9
|
+
{{ bank.id }}: "{{ url_for('banking.update_bank_name', bank_id=bank.id) }}",
|
|
10
|
+
{% endfor %}
|
|
11
|
+
};
|
|
12
|
+
</script>
|
|
13
|
+
<script type="module" src="{{ url_for('static', filename='js/expand-bank.js') }}">
|
|
14
|
+
</script>
|
|
15
|
+
<script type="module" src="{{ url_for('static', filename='js/update-bank-name.js') }}">
|
|
16
|
+
</script>
|
|
17
|
+
|
|
5
18
|
{% endblock %}
|
|
6
19
|
|
|
20
|
+
|
|
7
21
|
{% block header %}
|
|
8
|
-
<h1>Profile</h1>
|
|
22
|
+
<h1>{% block title %}Profile{% endblock %}</h1>
|
|
9
23
|
{% endblock %}
|
|
10
24
|
|
|
25
|
+
|
|
11
26
|
{% block content %}
|
|
12
27
|
|
|
13
28
|
<div id="profile">
|
|
@@ -67,7 +82,7 @@
|
|
|
67
82
|
|
|
68
83
|
<h2>Transactions</h2>
|
|
69
84
|
|
|
70
|
-
<a href="{{ url_for('
|
|
85
|
+
<a href="{{ url_for('banking.load_tags') }}">Manage transaction tags</a>
|
|
71
86
|
|
|
72
87
|
</div>
|
|
73
88
|
|
|
@@ -76,19 +91,3 @@
|
|
|
76
91
|
</div>
|
|
77
92
|
|
|
78
93
|
{% endblock %}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{% block javascript %}
|
|
82
|
-
<script>
|
|
83
|
-
|
|
84
|
-
const UPDATE_BANK_NAME_ENDPOINTS = {
|
|
85
|
-
{% for bank in banks %}
|
|
86
|
-
{{ bank.id }}: "{{ url_for('banking.update_bank_name', bank_id=bank.id) }}",
|
|
87
|
-
{% endfor %}
|
|
88
|
-
};
|
|
89
|
-
</script>
|
|
90
|
-
<script type="module" src="{{ url_for('static', filename='js/expand-bank.js') }}">
|
|
91
|
-
</script>
|
|
92
|
-
<script type="module" src="{{ url_for('static', filename='js/update-bank-name.js') }}">
|
|
93
|
-
</script>
|
|
94
|
-
{% endblock %}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
{% extends 'layout.html' %}
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
const UPDATE_CARD_STATUS_ENDPOINT = "{{ url_for('credit.update_card_status') }}";
|
|
8
|
+
const UPDATE_ACCOUNT_STATEMENT_ISSUE_DAY_ENDPOINT = "{{ url_for('credit.update_account_statement_issue_day', account_id=account.id) }}";
|
|
9
|
+
const UPDATE_ACCOUNT_STATEMENT_DUE_DAY_ENDPOINT = "{{ url_for('credit.update_account_statement_due_day', account_id=account.id) }}";
|
|
10
|
+
</script>
|
|
11
|
+
<script src="{{ url_for('static', filename='js/flip-card.js') }}" defer>
|
|
12
|
+
</script>
|
|
13
|
+
<script type="module" src="{{ url_for('static', filename='js/update-card-status.js') }}">
|
|
14
|
+
</script>
|
|
15
|
+
<script type="module" src="{{ url_for('static', filename='js/update-account-statement-parameters.js') }}">
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
{% endblock %}
|
|
19
|
+
|
|
20
|
+
|
|
4
21
|
{% block header %}
|
|
5
22
|
|
|
6
23
|
<h1>
|
|
@@ -100,20 +117,3 @@
|
|
|
100
117
|
</div>
|
|
101
118
|
|
|
102
119
|
{% endblock %}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
{% block javascript %}
|
|
106
|
-
|
|
107
|
-
<script>
|
|
108
|
-
const UPDATE_CARD_STATUS_ENDPOINT = "{{ url_for('credit.update_card_status') }}";
|
|
109
|
-
const UPDATE_ACCOUNT_STATEMENT_ISSUE_DAY_ENDPOINT = "{{ url_for('credit.update_account_statement_issue_day', account_id=account.id) }}";
|
|
110
|
-
const UPDATE_ACCOUNT_STATEMENT_DUE_DAY_ENDPOINT = "{{ url_for('credit.update_account_statement_due_day', account_id=account.id) }}";
|
|
111
|
-
</script>
|
|
112
|
-
<script src="{{ url_for('static', filename='js/flip-card.js') }}">
|
|
113
|
-
</script>
|
|
114
|
-
<script type="module" src="{{ url_for('static', filename='js/update-card-status.js') }}">
|
|
115
|
-
</script>
|
|
116
|
-
<script type="module" src="{{ url_for('static', filename='js/update-account-statement-parameters.js') }}">
|
|
117
|
-
</script>
|
|
118
|
-
|
|
119
|
-
{% endblock %}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{% extends "common/form_page.html" %}
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script type="module" src="{{ url_for('static', filename='js/display-new-credit-account-inputs.js') }}">
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
{% endblock %}
|
|
10
|
+
|
|
11
|
+
|
|
4
12
|
{% block title %}
|
|
5
13
|
New Card
|
|
6
14
|
{% endblock %}
|
|
@@ -17,8 +25,3 @@
|
|
|
17
25
|
{% endif %}
|
|
18
26
|
|
|
19
27
|
{% endblock %}
|
|
20
|
-
|
|
21
|
-
{% block javascript %}
|
|
22
|
-
<script type="module" src="{{ url_for('static', filename='js/display-new-credit-account-inputs.js') }}">
|
|
23
|
-
</script>
|
|
24
|
-
{% endblock %}
|
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
{% extends 'layout.html' %}
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
{% block javascript %}
|
|
5
|
+
|
|
6
|
+
<script>
|
|
7
|
+
const CREDIT_ACTIVITY_RECONCILIATION_ENDPOINT = "{{ url_for('credit.reconcile_activity', statement_id=statement.id) }}";
|
|
8
|
+
const UPDATE_STATEMENT_DUE_DATE_ENDPOINT = "{{ url_for('credit.update_statement_due_date', statement_id=statement.id) }}";
|
|
9
|
+
const MAKE_PAYMENT_ENDPOINT = "{{ url_for('credit.pay_credit_card', card_id=statement.card_id, statement_id=statement.id) }}";
|
|
10
|
+
const EXPAND_TRANSACTION_ENDPOINT = "{{ url_for('credit.expand_transaction') }}";
|
|
11
|
+
const LINKED_TRANSACTION_ENDPOINT = "{{ url_for('credit.show_linked_transaction') }}";
|
|
12
|
+
</script>
|
|
13
|
+
<script>
|
|
14
|
+
const CATEGORY_CHART_DATA = {
|
|
15
|
+
labels: [
|
|
16
|
+
{% for label in chart_data['labels'] %}
|
|
17
|
+
{% if label == '' %}
|
|
18
|
+
"Other",
|
|
19
|
+
{% else %}
|
|
20
|
+
"{{ label }}",
|
|
21
|
+
{% endif %}
|
|
22
|
+
{% endfor %}
|
|
23
|
+
],
|
|
24
|
+
series: [
|
|
25
|
+
{% for subtotal in chart_data['subtotals'] %}
|
|
26
|
+
{{ subtotal }},
|
|
27
|
+
{% endfor %}
|
|
28
|
+
],
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
31
|
+
<script type="module" src="{{ url_for('static', filename='js/show-credit-activity-loader.js') }}">
|
|
32
|
+
</script>
|
|
33
|
+
<script type="module" src="{{ url_for('static', filename='js/update-statement-parameters.js') }}">
|
|
34
|
+
</script>
|
|
35
|
+
<script type="module" src="{{ url_for('static', filename='js/make-payment.js') }}">
|
|
36
|
+
</script>
|
|
37
|
+
<script type="module" src="{{ url_for('static', filename='js/expand-transaction.js') }}">
|
|
38
|
+
</script>
|
|
39
|
+
<script type="module" src="{{ url_for('static', filename='js/show-linked-transaction.js') }}">
|
|
40
|
+
</script>
|
|
41
|
+
<script type="module" src="{{ url_for('static', filename='js/create-category-chart.js') }}">
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
{% endblock %}
|
|
45
|
+
|
|
46
|
+
|
|
4
47
|
{% block header %}
|
|
5
48
|
|
|
6
49
|
<h1>
|
|
@@ -23,8 +66,8 @@
|
|
|
23
66
|
</div>
|
|
24
67
|
|
|
25
68
|
<div id="statement-transactions-container" class="transactions-container">
|
|
26
|
-
{% with
|
|
27
|
-
{% include 'credit/transactions_table/
|
|
69
|
+
{% with full_view = False %}
|
|
70
|
+
{% include 'credit/transactions_table/table.html' %}
|
|
28
71
|
{% endwith %}
|
|
29
72
|
</div>
|
|
30
73
|
|
|
@@ -58,47 +101,3 @@
|
|
|
58
101
|
</div>
|
|
59
102
|
|
|
60
103
|
{% endblock %}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{% block javascript %}
|
|
64
|
-
|
|
65
|
-
<script>
|
|
66
|
-
const CREDIT_ACTIVITY_RECONCILIATION_ENDPOINT = "{{ url_for('credit.reconcile_activity', statement_id=statement.id) }}";
|
|
67
|
-
const UPDATE_STATEMENT_DUE_DATE_ENDPOINT = "{{ url_for('credit.update_statement_due_date', statement_id=statement.id) }}";
|
|
68
|
-
const MAKE_PAYMENT_ENDPOINT = "{{ url_for('credit.pay_credit_card', card_id=statement.card_id, statement_id=statement.id) }}";
|
|
69
|
-
const EXPAND_TRANSACTION_ENDPOINT = "{{ url_for('credit.expand_transaction') }}";
|
|
70
|
-
const LINKED_TRANSACTION_ENDPOINT = "{{ url_for('credit.show_linked_transaction') }}";
|
|
71
|
-
</script>
|
|
72
|
-
<script>
|
|
73
|
-
const CATEGORY_CHART_DATA = {
|
|
74
|
-
labels: [
|
|
75
|
-
{% for label in chart_data['labels'] %}
|
|
76
|
-
{% if label == '' %}
|
|
77
|
-
"Other",
|
|
78
|
-
{% else %}
|
|
79
|
-
"{{ label }}",
|
|
80
|
-
{% endif %}
|
|
81
|
-
{% endfor %}
|
|
82
|
-
],
|
|
83
|
-
series: [
|
|
84
|
-
{% for subtotal in chart_data['subtotals'] %}
|
|
85
|
-
{{ subtotal }},
|
|
86
|
-
{% endfor %}
|
|
87
|
-
],
|
|
88
|
-
};
|
|
89
|
-
</script>
|
|
90
|
-
<script type="module" src="{{ url_for('static', filename='js/show-credit-activity-loader.js') }}">
|
|
91
|
-
</script>
|
|
92
|
-
<script type="module" src="{{ url_for('static', filename='js/update-statement-parameters.js') }}">
|
|
93
|
-
</script>
|
|
94
|
-
<script type="module" src="{{ url_for('static', filename='js/make-payment.js') }}">
|
|
95
|
-
</script>
|
|
96
|
-
<script type="module" src="{{ url_for('static', filename='js/expand-transaction.js') }}">
|
|
97
|
-
</script>
|
|
98
|
-
<script type="module" src="{{ url_for('static', filename='js/show-linked-transaction.js') }}">
|
|
99
|
-
</script>
|
|
100
|
-
<script type="module" src="{{ url_for('static', filename='js/create-category-chart.js') }}">
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
{% endblock %}
|
|
104
|
-
|