This commit is contained in:
Hillel Coren 2017-02-06 11:51:40 +02:00
parent 58c50edff7
commit 865c379116
4 changed files with 28 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -459,7 +459,7 @@ if (window.ko) {
function getContactDisplayName(contact) function getContactDisplayName(contact)
{ {
if (contact.first_name || contact.last_name) { if (contact.first_name || contact.last_name) {
return (contact.first_name || '') + ' ' + (contact.last_name || ''); return $.trim((contact.first_name || '') + ' ' + (contact.last_name || ''));
} else { } else {
return contact.email; return contact.email;
} }

View File

@ -135,6 +135,29 @@
<div class="modal-body"> <div class="modal-body">
<p>{{ trans('texts.template_help_1') }}</p> <p>{{ trans('texts.template_help_1') }}</p>
<ul> <ul>
@foreach([
'footer',
'account',
'dueDate',
'invoiceDate',
'client',
'amount',
'contact',
'firstName',
'invoice',
'quote',
'password',
'documents',
'viewLink',
'viewButton',
'paymentLink',
'paymentButton',
'autoBill',
'portalLink',
'portalButton',
] as $field)
<li>${{ $field }}</li>
@endforeach
@if ($account->custom_client_label1) @if ($account->custom_client_label1)
<li>$customClient1</li> <li>$customClient1</li>
@endif @endif