From d73535dc86d48e995562cee6171624b0b2c2eb4b Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 4 Apr 2024 15:39:32 +1100 Subject: [PATCH] Convert account transactions with commodity detail view to Tailwind CSS --- .../transactions_commodity_detail.html | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/drcr/templates/transactions_commodity_detail.html b/drcr/templates/transactions_commodity_detail.html index 65eeb12..48a7417 100644 --- a/drcr/templates/transactions_commodity_detail.html +++ b/drcr/templates/transactions_commodity_detail.html @@ -15,34 +15,50 @@ along with this program. If not, see . #} -{% extends 'base.html' %} +{% extends 'base_tailwind.html' %} {% block title %}Account transactions{% endblock %} {% block content %} -

Account transactions

+

+ Account transactions +

-
- Hide commodity detail + - +
- - + + - - + + {% for transaction in transactions %} - - - + + @@ -55,10 +71,10 @@ - - - - + + + + {% else %} @@ -66,8 +82,8 @@ - - + + {% endfor %} {% endfor %}
DateDescriptionDateDescription AmountBalanceAmountBalance
{{ transaction.dt.strftime('%Y-%m-%d') }} +
{{ transaction.dt.strftime('%Y-%m-%d') }} {{ transaction.description }} - {% if transaction.id %}{% endif %} + {% if transaction.id %} + + + + + + {% endif %}
{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ (posting.amount()|abs).format('force') }}{{ (amount|abs).format('force') }}{{ 'Dr' if amount.quantity >= 0 else 'Cr' }}{{ 'Dr' if posting.quantity >= 0 else 'Cr' }}{{ (posting.amount()|abs).format('force') }}{{ (amount|abs).format('force') }}{{ 'Dr' if amount.quantity >= 0 else 'Cr' }}
{{ (amount|abs).format('force') }}{{ 'Dr' if amount.quantity >= 0 else 'Cr' }}{{ (amount|abs).format('force') }}{{ 'Dr' if amount.quantity >= 0 else 'Cr' }}