mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Fixes for proposals
This commit is contained in:
parent
57e2c93e85
commit
622de49c64
@ -201,6 +201,7 @@ class ContactMailer extends Mailer
|
|||||||
'notes' => $reminder,
|
'notes' => $reminder,
|
||||||
'bccEmail' => $isFirst ? $account->getBccEmail() : false,
|
'bccEmail' => $isFirst ? $account->getBccEmail() : false,
|
||||||
'fromEmail' => $account->getFromEmail(),
|
'fromEmail' => $account->getFromEmail(),
|
||||||
|
'proposal' => $proposal,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (! $proposal) {
|
if (! $proposal) {
|
||||||
|
@ -2656,7 +2656,7 @@ $LANG = array(
|
|||||||
'tax_amount' => 'Tax Amount',
|
'tax_amount' => 'Tax Amount',
|
||||||
'tax_paid' => 'Tax Paid',
|
'tax_paid' => 'Tax Paid',
|
||||||
'none' => 'None',
|
'none' => 'None',
|
||||||
|
'proposal_message_button' => 'To view your proposal for :amount, click the button below.',
|
||||||
'proposal' => 'Proposal',
|
'proposal' => 'Proposal',
|
||||||
'proposals' => 'Proposals',
|
'proposals' => 'Proposals',
|
||||||
'list_proposals' => 'List Proposals',
|
'list_proposals' => 'List Proposals',
|
||||||
|
@ -4,8 +4,8 @@ $(function() {
|
|||||||
|
|
||||||
window.grapesjsEditor = grapesjs.init({
|
window.grapesjsEditor = grapesjs.init({
|
||||||
container : '#gjs',
|
container : '#gjs',
|
||||||
components: '{!! $entity ? $entity->html : '' !!}',
|
components: {!! json_encode($entity ? $entity->html : '') !!},
|
||||||
style: '{!! $entity ? $entity->css : '' !!}',
|
style: {!! json_encode($entity ? $entity->css : '') !!},
|
||||||
showDevices: false,
|
showDevices: false,
|
||||||
plugins: ['gjs-preset-newsletter'],
|
plugins: ['gjs-preset-newsletter'],
|
||||||
pluginsOpts: {
|
pluginsOpts: {
|
||||||
@ -42,11 +42,11 @@ $(function() {
|
|||||||
blockManager.add("h{{ ($loop->index + 1) }}-block", {
|
blockManager.add("h{{ ($loop->index + 1) }}-block", {
|
||||||
label: '{{ $snippet->name }}',
|
label: '{{ $snippet->name }}',
|
||||||
category: '{{ $snippet->proposal_category ? $snippet->proposal_category->name : trans('texts.custom') }}',
|
category: '{{ $snippet->proposal_category ? $snippet->proposal_category->name : trans('texts.custom') }}',
|
||||||
content: '{!! $snippet->html !!}',
|
content: {!! json_encode($snippet->html) !!},
|
||||||
style: '{!! $snippet->css !!}',
|
style: {!! json_encode($snippet->css) !!},
|
||||||
attributes: {
|
attributes: {
|
||||||
title: '{!! $snippet->private_notes !!}',
|
title: {!! json_encode($snippet->private_notes) !!},
|
||||||
class:'fa fa-{!! $snippet->icon ?: 'font' !!}'
|
class:'fa fa-{{ $snippet->icon ?: 'font' }}'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@endforeach
|
@endforeach
|
||||||
|
Loading…
Reference in New Issue
Block a user