Clarify JSON import/export help

This commit is contained in:
Hillel Coren 2016-11-27 15:46:45 +02:00
parent e9a5d60d7f
commit 547a8e80b9
2 changed files with 5 additions and 2 deletions

View File

@ -2227,6 +2227,8 @@ $LANG = array(
'entity_state' => 'State', 'entity_state' => 'State',
'payment_status_name' => 'Status', 'payment_status_name' => 'Status',
'client_created_at' => 'Date Created', 'client_created_at' => 'Date Created',
'json_import_help' => 'We recommend importing into an empty account.'
); );
return $LANG; return $LANG;

View File

@ -32,7 +32,8 @@
@foreach (\App\Services\ImportService::$entityTypes as $entityType) @foreach (\App\Services\ImportService::$entityTypes as $entityType)
{!! Former::file("{$entityType}_file") {!! Former::file("{$entityType}_file")
->addGroupClass("import-file {$entityType}-file") !!} ->addGroupClass("import-file {$entityType}-file")
->help($entityType == IMPORT_JSON ? '<br/>' . trans('texts.json_import_help') : false) !!}
@endforeach @endforeach
{!! Former::actions( Button::info(trans('texts.upload'))->submit()->large()->appendIcon(Icon::create('open'))) !!} {!! Former::actions( Button::info(trans('texts.upload'))->submit()->large()->appendIcon(Icon::create('open'))) !!}
@ -54,7 +55,7 @@
->addOption('XLS', 'XLS') ->addOption('XLS', 'XLS')
->addOption('JSON', 'JSON') ->addOption('JSON', 'JSON')
->style('max-width: 200px') ->style('max-width: 200px')
->inlineHelp('export_help') !!} ->help('<br/>' . trans('texts.export_help')) !!}
{!! Former::inline_radios('include_radio') {!! Former::inline_radios('include_radio')