Local Pdf generation

This commit is contained in:
Hillel Coren 2017-01-02 20:56:06 +02:00
parent 68340905b9
commit 318dfd83e1
2 changed files with 3 additions and 2 deletions

View File

@ -2296,6 +2296,7 @@ $LANG = array(
'exclusive' => 'Exclusive',
'postal_city_state' => 'Postal/City/State',
'phantomjs_help' => 'In certain cases the app uses :link_phantom to generate the PDF, install :link_docs to generate it locally.',
'phantomjs_local' => 'Using local PhantomJS',
);

View File

@ -30,10 +30,10 @@
{!! Former::checkbox('pdf_email_attachment')
->text(trans('texts.enable'))
->help( Utils::isNinja() && ! env('PHANTOMJS_BIN_PATH') ? trans('texts.phantomjs_help', [
->help( ! Utils::isNinja() ? (env('PHANTOMJS_BIN_PATH') ? 'phantomjs_local' : trans('texts.phantomjs_help', [
'link_phantom' => link_to('https://phantomjscloud.com/', 'phantomjscloud.com', ['target' => '_blank']),
'link_docs' => link_to('https://www.invoiceninja.com/self-host/#phantomjs', 'PhantomJS', ['target' => '_blank'])
]) : false) !!}
])) : false) !!}
{!! Former::checkbox('document_email_attachment')
->text(trans('texts.enable')) !!}