1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Fixes for proposals

This commit is contained in:
Hillel Coren 2018-03-19 21:18:04 +02:00
parent 57e2c93e85
commit 622de49c64
3 changed files with 8 additions and 7 deletions

View File

@ -201,6 +201,7 @@ class ContactMailer extends Mailer
'notes' => $reminder,
'bccEmail' => $isFirst ? $account->getBccEmail() : false,
'fromEmail' => $account->getFromEmail(),
'proposal' => $proposal,
];
if (! $proposal) {

View File

@ -2656,7 +2656,7 @@ $LANG = array(
'tax_amount' => 'Tax Amount',
'tax_paid' => 'Tax Paid',
'none' => 'None',
'proposal_message_button' => 'To view your proposal for :amount, click the button below.',
'proposal' => 'Proposal',
'proposals' => 'Proposals',
'list_proposals' => 'List Proposals',

View File

@ -4,8 +4,8 @@ $(function() {
window.grapesjsEditor = grapesjs.init({
container : '#gjs',
components: '{!! $entity ? $entity->html : '' !!}',
style: '{!! $entity ? $entity->css : '' !!}',
components: {!! json_encode($entity ? $entity->html : '') !!},
style: {!! json_encode($entity ? $entity->css : '') !!},
showDevices: false,
plugins: ['gjs-preset-newsletter'],
pluginsOpts: {
@ -42,11 +42,11 @@ $(function() {
blockManager.add("h{{ ($loop->index + 1) }}-block", {
label: '{{ $snippet->name }}',
category: '{{ $snippet->proposal_category ? $snippet->proposal_category->name : trans('texts.custom') }}',
content: '{!! $snippet->html !!}',
style: '{!! $snippet->css !!}',
content: {!! json_encode($snippet->html) !!},
style: {!! json_encode($snippet->css) !!},
attributes: {
title: '{!! $snippet->private_notes !!}',
class:'fa fa-{!! $snippet->icon ?: 'font' !!}'
title: {!! json_encode($snippet->private_notes) !!},
class:'fa fa-{{ $snippet->icon ?: 'font' }}'
}
});
@endforeach