From 823447135cb55f05f9be83d9f31fa009b55f161e Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 4 Apr 2024 19:36:30 +1100 Subject: [PATCH] Convert statement import and import preview to Tailwind CSS --- drcr/templates/statements/import.html | 54 +++++++++++-------- drcr/templates/statements/import_preview.html | 34 ++++++------ 2 files changed, 48 insertions(+), 40 deletions(-) diff --git a/drcr/templates/statements/import.html b/drcr/templates/statements/import.html index 6ae6a98..726b749 100644 --- a/drcr/templates/statements/import.html +++ b/drcr/templates/statements/import.html @@ -1,5 +1,5 @@ {# DrCr: Web-based double-entry bookkeeping framework - Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo) + Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -15,48 +15,56 @@ along with this program. If not, see . #} -{% extends 'base.html' %} +{% extends 'base_tailwind.html' %} {% block title %}Import statement{% endblock %} {% block content %} -

Import statement

+

+ Import statement +

-

OFX 1.x

+

OFX 1.x

-
-
- +
+
+
-
- +
+
+
+ + +
+
+
- -
-
- +
-

OFX 2.x

+

OFX 2.x

-
-
- +
+
+
-
- +
+
+
+ + +
+
+
- -
-
- +
diff --git a/drcr/templates/statements/import_preview.html b/drcr/templates/statements/import_preview.html index 167a42c..60b5052 100644 --- a/drcr/templates/statements/import_preview.html +++ b/drcr/templates/statements/import_preview.html @@ -1,5 +1,5 @@ {# DrCr: Web-based double-entry bookkeeping framework - Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo) + Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -15,32 +15,32 @@ along with this program. If not, see . #} -{% extends 'base.html' %} +{% extends 'base_tailwind.html' %} {% block title %}Import statement preview{% endblock %} {% block content %} -

Import statement preview

+

+ Import statement preview +

-

Imported statement lines

- - +
- - - - - - + + + + + + {% for line in statement_lines %} - - - - - + + + + + {% endfor %}
DateDescriptionDrCrBalance
DateDescriptionDrCrBalance
{{ line.dt.strftime('%Y-%m-%d') }}{{ line.description }}{{ line.amount().format() if line.quantity >= 0 else '' }}{{ (line.amount()|abs).format() if line.quantity < 0 else '' }}{{ line.balance or '' }}{{ line.dt.strftime('%Y-%m-%d') }}{{ line.description }}{{ line.amount().format() if line.quantity >= 0 else '' }}{{ (line.amount()|abs).format() if line.quantity < 0 else '' }}{{ line.balance or '' }}