From 3ddad385a38b94c636eb676cad7163e8ce946c92 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 6 May 2016 15:05:28 +0300 Subject: [PATCH] Fix for setting default HTML email template --- .../views/accounts/templates_and_reminders.blade.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/views/accounts/templates_and_reminders.blade.php b/resources/views/accounts/templates_and_reminders.blade.php index c5eebd78d658..87453e80dae6 100644 --- a/resources/views/accounts/templates_and_reminders.blade.php +++ b/resources/views/accounts/templates_and_reminders.blade.php @@ -25,11 +25,16 @@ {!! Former::vertical_open()->addClass('warn-on-exit') !!} - {!! Former::populate($account) !!} @foreach ([ENTITY_INVOICE, ENTITY_QUOTE, ENTITY_PAYMENT, REMINDER1, REMINDER2, REMINDER3] as $type) @foreach (['subject', 'template'] as $field) - {!! Former::populateField("email_{$field}_{$type}", $templates[$type][$field]) !!} + {{ Former::populateField("email_{$field}_{$type}", $templates[$type][$field]) }} + @endforeach + @endforeach + + @foreach ([REMINDER1, REMINDER2, REMINDER3] as $type) + @foreach (['enable', 'num_days', 'direction', 'field'] as $field) + {{ Former::populateField("{$field}_{$type}", $account->{"{$field}_{$type}"}) }} @endforeach @endforeach