commit 160719a57531535659c00d6a1c9901341b8fe783 Author: Herculino Trotta Date: Sun Sep 22 15:38:06 2024 -0300 item diff --git a/app/templates/transactions/fragments/item.html b/app/templates/transactions/fragments/item.html new file mode 100644 index 0000000..dc06a41 --- /dev/null +++ b/app/templates/transactions/fragments/item.html @@ -0,0 +1,38 @@ +
+ +
+ {{ transaction.date|date:"SHORT_DATE_FORMAT" }} +
+
+ {{ transaction.description }} +
+
+ {{ transaction.account.name }} +
+
+ {{ transaction.account.currency.prefix }} + {{ transaction.amount | floatformat:transaction.account.currency.decimal_places }} + {{ transaction.account.currency.suffix }} +
+
diff --git a/app/templates/transactions/fragments/list.html b/app/templates/transactions/fragments/list.html new file mode 100644 index 0000000..e48ed5b --- /dev/null +++ b/app/templates/transactions/fragments/list.html @@ -0,0 +1,3 @@ +{% for trans in transactions %} + {% include 'transactions/fragments/item.html' with transaction=trans %} +{% endfor %} \ No newline at end of file