1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Email Quote displays wrong language strings #1499

This commit is contained in:
Hillel Coren 2017-05-22 12:33:33 +03:00
parent 90f9247362
commit 20accda2f0
2 changed files with 5 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="emailModalLabel">{{ trans('texts.email_invoice') }}</h4>
<h4 class="modal-title" id="emailModalLabel">{{ trans($invoice->isQuote() ? 'texts.email_quote' : 'texts.email_invoice') }}</h4>
</div>
<div class="container" style="width: 100%; padding-bottom: 0px !important">
@ -225,7 +225,7 @@
NINJA.formIsChanged = true;
});
@if (Utils::isPro())
@if (Utils::isPro() && $invoice->isStandard())
if (window.defaultTemplate) {
$('#template_type').val(window.defaultTemplate);
}

View File

@ -28,7 +28,9 @@
'password': passwordHtml,
'documents': documentsHtml,
'viewLink': '{{ link_to('#', url('/view/...')) }}$password',
'viewButton': '{!! Form::flatButton('view_invoice', '#0b4d78') !!}$password',
'viewButton': invoice && invoice.invoice_type_id == {{ INVOICE_TYPE_QUOTE }} ?
'{!! Form::flatButton('view_quote', '#0b4d78') !!}$password' :
'{!! Form::flatButton('view_invoice', '#0b4d78') !!}$password',
'paymentLink': '{{ link_to('#', url('/payment/...')) }}$password',
'paymentButton': '{!! Form::flatButton('pay_now', '#36c157') !!}$password',
'autoBill': '{{ trans('texts.auto_bill_notification_placeholder') }}',