diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php
index f1042d984463..ca224373f276 100644
--- a/resources/lang/en/texts.php
+++ b/resources/lang/en/texts.php
@@ -2388,6 +2388,7 @@ $LANG = array(
'currency_myanmar_kyat' => 'Myanmar Kyat',
'currency_peruvian_sol' => 'Peruvian Sol',
+ 'use_english_version' => 'Make sure to use the English version of the files.
We use the column headers to match the fields.',
);
diff --git a/resources/views/accounts/import_export.blade.php b/resources/views/accounts/import_export.blade.php
index 2dc9e233e0e4..dbb640045dc3 100644
--- a/resources/views/accounts/import_export.blade.php
+++ b/resources/views/accounts/import_export.blade.php
@@ -45,9 +45,14 @@
trans('texts.settings') => 'settings',
]) !!}
-
- {!! trans('texts.invoiceplane_import', ['link' => link_to(INVOICEPLANE_IMPORT, 'turbo124/Plane2Ninja', ['target' => '_blank'])]) !!}
-
+
+
+ {!! Former::plaintext(' ')->help(trans('texts.use_english_version')) !!}
+
+
+ {!! Former::plaintext(' ')->help(trans('texts.invoiceplane_import', ['link' => link_to(INVOICEPLANE_IMPORT, 'turbo124/Plane2Ninja', ['target' => '_blank'])])) !!}
+
+
{!! Former::actions( Button::info(trans('texts.upload'))->withAttributes(['id' => 'uploadButton'])->submit()->large()->appendIcon(Icon::create('open'))) !!}
@@ -163,12 +168,18 @@
$('.JSON-file').show();
}
@endif
- if (val === '{{ IMPORT_INVOICEPLANE }}') {
+ if (val === '{{ IMPORT_JSON }}') {
+ $('#uploadButton').show();
+ $('#inovicePlaneImport').hide();
+ $('#notInovicePlaneImport').hide();
+ } else if (val === '{{ IMPORT_INVOICEPLANE }}') {
$('#uploadButton').hide();
$('#inovicePlaneImport').show();
+ $('#notInovicePlaneImport').hide();
} else {
$('#uploadButton').show();
$('#inovicePlaneImport').hide();
+ $('#notInovicePlaneImport').show();
}
@endforeach
}