From c05c6e72c0e2e80f80705510c461aa559f4a1ea8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 30 Apr 2016 16:36:58 +0200 Subject: [PATCH] Display budget and category if relevant. --- resources/views/transactions/show.twig | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig index a15a52aafe..c139094dde 100644 --- a/resources/views/transactions/show.twig +++ b/resources/views/transactions/show.twig @@ -160,9 +160,9 @@

{{ t.account.name }}

- +
- + @@ -179,10 +179,26 @@ {% if t.description %} - + {% endif %} + {% if t.categories[0] %} + + + + + {% endif %} + {% if t.budgets[0] %} + + + + + {% endif %}
{{ 'account'|_ }}{{ 'account'|_ }} {{ t.account.name }}
Description{{ trans('form.description') }} {{ t.description }}
{{ 'category'|_ }} + {{ t.categories[0].name }} +
{{ 'budget'|_ }} + {{ t.budgets[0].name }} +
{% endfor %}