From cd0585c7c407f1fe59fc4a777ea266e03be0339c Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 12 Mar 2016 07:37:36 +0100 Subject: [PATCH] Views will show new dates #122 --- resources/views/transactions/create.twig | 8 ++++++++ resources/views/transactions/edit.twig | 9 +++++++++ resources/views/transactions/show.twig | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/resources/views/transactions/create.twig b/resources/views/transactions/create.twig index 05d169e044..d93560c4d5 100644 --- a/resources/views/transactions/create.twig +++ b/resources/views/transactions/create.twig @@ -67,6 +67,14 @@ {{ ExpandedForm.text('category') }} + + {{ ExpandedForm.date('interest_date') }} + + {{ ExpandedForm.date('book_date') }} + + {{ ExpandedForm.date('process_date') }} + + {{ ExpandedForm.text('tags') }} diff --git a/resources/views/transactions/edit.twig b/resources/views/transactions/edit.twig index 1353f3c440..4ae4ce0b47 100644 --- a/resources/views/transactions/edit.twig +++ b/resources/views/transactions/edit.twig @@ -67,6 +67,15 @@ {{ ExpandedForm.text('category',data['category']) }} + + {{ ExpandedForm.date('interest_date',data['interest_date']) }} + + {{ ExpandedForm.date('book_date',data['book_date']) }} + + {{ ExpandedForm.date('process_date',data['process_date']) }} + + + {{ ExpandedForm.text('tags') }} diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig index ec5913a81b..ee510c2381 100644 --- a/resources/views/transactions/show.twig +++ b/resources/views/transactions/show.twig @@ -17,6 +17,25 @@ {{ trans('list.date') }} {{ journal.date.formatLocalized(monthAndDayFormat) }} + {% if journal.interest_date %} + + {{ trans('list.interest_date') }} + {{ journal.interest_date.formatLocalized(monthAndDayFormat) }} + + {% endif %} + {% if journal.book_date %} + + {{ trans('list.book_date') }} + {{ journal.book_date.formatLocalized(monthAndDayFormat) }} + + {% endif %} + {% if journal.process_date %} + + {{ trans('list.process_date') }} + {{ journal.process_date.formatLocalized(monthAndDayFormat) }} + + {% endif %} + {{ trans('list.type') }} {{ journal.transactiontype.type|_ }}