From: Christian Heller Date: Sun, 13 Oct 2024 05:13:22 +0000 (+0200) Subject: Add forgotten files. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/tasks?a=commitdiff_plain;p=misc Add forgotten files. --- diff --git a/ledger_templates/balance.html b/ledger_templates/balance.html new file mode 100644 index 0000000..abb34f5 --- /dev/null +++ b/ledger_templates/balance.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} +{% block css %} +table { margin: 0; padding: 0; } +td.amount { text-align: right; padding-right: 1em; } +{% endblock %} +{% block content %} + +{% for node in nodes %} + + + + + +{% endfor %} +
{% if '€' in node.moneys.keys() %}{{ node.moneys['€']}}€{% endif %}{{node.name}} +{% for currency, amount in node.moneys.items() %} +{% if currency != '€' %} +{{amount}} {{currency}}{% if not loop.last %},{% endif %} +{% endif %} +{% endfor %} +
+{% endblock %} diff --git a/ledger_templates/base.html b/ledger_templates/base.html new file mode 100644 index 0000000..bf6bdc2 --- /dev/null +++ b/ledger_templates/base.html @@ -0,0 +1,16 @@ + + +ledger +balance +add +
+{% block content %} +{% endblock %} + diff --git a/ledger_templates/edit.html b/ledger_templates/edit.html new file mode 100644 index 0000000..ecad900 --- /dev/null +++ b/ledger_templates/edit.html @@ -0,0 +1,64 @@ +{% extends 'base.html' %} +{% block css %} +textarea.booking { width: 100%; } +div.savers { float: right; } +input[type=number] { text-align: right; font-family: monospace; } +div.edit_mode_switch { width: 8em; margin-right: 0.5em; border-right: 1px solid #888888; float: left; } +{% endblock %} +{% block content %} +{% if error_msg %}{{error_msg}}{% endif %} +
+
+{% if adding %} + +{% else %} + +{% endif %} +
+
+
+{% if edit_mode == 'textarea' %} + +{% else %} + +{% endif %} +
+ + + + + + + +
+{% if edit_mode == 'textarea' %} + +{% else %} + + +; +
+{% for line in content.transfer_lines %} + + + +;
+{% endfor %} +{% for i in range(10) %} + + + +;
+{% endfor %} + +{% for acc in accounts %} + +{% endfor %} + +{% endif %} + + +
+{% endblock %} + diff --git a/ledger_templates/ledger.html b/ledger_templates/ledger.html new file mode 100644 index 0000000..0696e09 --- /dev/null +++ b/ledger_templates/ledger.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} +{% block css %} +table { margin: 0; padding: 0; } +table tr { vertical-align: top; } +td.amount { text-align: right; } +td.booking_header { padding-top: 1.5em; } +td.first_booking_header { padding-top: 0; } +button[type=submit] { padding: 0; } +{% endblock %} +{% block content %} +
+ +{% for b in bookings %} + + +{% for line in b.transfer_lines %} + + + + + +{% endfor %} + +{% endfor %} +
+[B] + + +{{b.date}} +[C] +{{b.description}}{% if b.top_comment %} ; {{b.top_comment}}{% endif %} +
{{line.amount_fmt}}{% if line.currency %}{{line.currency|truncate(4,true,'…')}}{% endif %}{{line.account}}{% if line.comment %} ; {{line.comment}}{% endif %}
+
+{% endblock %} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8ce973e --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Jinja2