Added InvoicePlane import text

This commit is contained in:
Hillel Coren 2017-05-22 10:46:37 +03:00
parent ad9035772d
commit d71b073504
4 changed files with 15 additions and 1 deletions

View File

@ -162,6 +162,7 @@ if (! defined('APP_NAME')) {
define('IMPORT_ZOHO', 'Zoho'); define('IMPORT_ZOHO', 'Zoho');
define('IMPORT_NUTCACHE', 'Nutcache'); define('IMPORT_NUTCACHE', 'Nutcache');
define('IMPORT_INVOICEABLE', 'Invoiceable'); define('IMPORT_INVOICEABLE', 'Invoiceable');
define('IMPORT_INVOICEPLANE', 'InvoicePlane');
define('IMPORT_HARVEST', 'Harvest'); define('IMPORT_HARVEST', 'Harvest');
define('MAX_NUM_CLIENTS', 100); define('MAX_NUM_CLIENTS', 100);
@ -330,6 +331,7 @@ if (! defined('APP_NAME')) {
define('MSBOT_LUIS_URL', 'https://westus.api.cognitive.microsoft.com/luis/v2.0/apps'); define('MSBOT_LUIS_URL', 'https://westus.api.cognitive.microsoft.com/luis/v2.0/apps');
define('SKYPE_API_URL', 'https://apis.skype.com/v3'); define('SKYPE_API_URL', 'https://apis.skype.com/v3');
define('MSBOT_STATE_URL', 'https://state.botframework.com/v3'); define('MSBOT_STATE_URL', 'https://state.botframework.com/v3');
define('INVOICEPLANE_IMPORT', 'https://github.com/turbo124/Plane2Ninja');
define('BOT_PLATFORM_WEB_APP', 'WebApp'); define('BOT_PLATFORM_WEB_APP', 'WebApp');
define('BOT_PLATFORM_SKYPE', 'Skype'); define('BOT_PLATFORM_SKYPE', 'Skype');

View File

@ -99,6 +99,7 @@ class ImportService
IMPORT_FRESHBOOKS, IMPORT_FRESHBOOKS,
IMPORT_HIVEAGE, IMPORT_HIVEAGE,
IMPORT_INVOICEABLE, IMPORT_INVOICEABLE,
IMPORT_INVOICEPLANE,
IMPORT_NUTCACHE, IMPORT_NUTCACHE,
IMPORT_RONIN, IMPORT_RONIN,
IMPORT_WAVE, IMPORT_WAVE,

View File

@ -2249,7 +2249,8 @@ $LANG = array(
'emailed_payment' => 'Successfully emailed payment', 'emailed_payment' => 'Successfully emailed payment',
'email_payment' => 'Email Payment', 'email_payment' => 'Email Payment',
'sent' => 'Sent', 'sent' => 'Sent',
'inoviceplane_import' => 'Use :link to migrate your data from InvoicePlane.',
); );
return $LANG; return $LANG;

View File

@ -45,6 +45,9 @@
trans('texts.settings') => 'settings', trans('texts.settings') => 'settings',
]) !!} ]) !!}
</div> </div>
<div id="inovicePlaneImport" style="display:none"><center>
{!! trans('texts.inoviceplane_import', ['link' => link_to(INVOICEPLANE_IMPORT, 'turbo124/Plane2Ninja', ['target' => '_blank'])]) !!}
</center></div>
<br/> <br/>
{!! Former::actions( Button::info(trans('texts.upload'))->withAttributes(['id' => 'uploadButton'])->submit()->large()->appendIcon(Icon::create('open'))) !!} {!! Former::actions( Button::info(trans('texts.upload'))->withAttributes(['id' => 'uploadButton'])->submit()->large()->appendIcon(Icon::create('open'))) !!}
@ -160,6 +163,13 @@
$('.JSON-file').show(); $('.JSON-file').show();
} }
@endif @endif
if (val === '{{ IMPORT_INVOICEPLANE }}') {
$('#uploadButton').hide();
$('#inovicePlaneImport').show();
} else {
$('#uploadButton').show();
$('#inovicePlaneImport').hide();
}
@endforeach @endforeach
} }