Disable file import, add links.

This commit is contained in:
James Cole 2020-03-07 12:47:22 +01:00
parent 9331f8985a
commit 25be550e6d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 33 additions and 9 deletions

View File

@ -44,7 +44,7 @@ return [
// these import providers are available:
'enabled' => [
'fake' => true,
'file' => true,
'file' => false,
'bunq' => false,
'spectre' => true,
'ynab' => true,
@ -69,8 +69,8 @@ return [
// a normal user user can use these import providers (when enabled):
'allowed_for_user' => [
'fake' => false,
'file' => true,
'bunq' => true,
'file' => false,
'bunq' => false,
'spectre' => true,
'ynab' => true,
'plaid' => true,
@ -82,7 +82,7 @@ return [
'has_prereq' => [
'fake' => true,
'file' => false,
'bunq' => true,
'bunq' => false,
'spectre' => true,
'ynab' => true,
'plaid' => true,
@ -105,8 +105,8 @@ return [
// some providers may need extra configuration per job
'has_job_config' => [
'fake' => true,
'file' => true,
'bunq' => true,
'file' => false,
'bunq' => false,
'spectre' => true,
'ynab' => true,
'plaid' => false,

View File

@ -1425,7 +1425,11 @@ return [
'import_index_title' => 'Import transactions into Firefly III',
'import_data' => 'Import data',
'import_transactions' => 'Import transactions',
'import_tools_title' => 'Import tools',
'tools_index_intro' => 'Several tools exist to import data into Firefly III. Check them out below. For more information, check out <a href="https://docs.firefly-iii.org/importing-data/introduction">this page</a>.',
'firefly_iii_csv_importer_name' => 'Firefly III CSV importer',
'firefly_iii_bunq_importer_name' => 'Firefly III bunq 🌈 importer',
//
// sandstorm.io errors and messages:
'sandstorm_not_available' => 'This function is not available when you are using Firefly III within a Sandstorm.io environment.',

View File

@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="col-lg-8 col-md-6 col-sm-12 col-xs-12">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('firefly.import_index_title') }}</h3>
@ -20,7 +20,7 @@
<div class="row">
{% for name, provider in providers %}
{# button for each import thing: #}
<div class="col-lg-1 col-md-4 col-sm-6 text-center">
<div class="col-lg-2 col-md-4 col-sm-6 text-center">
{% if not provider.allowed_for_demo and isDemoUser %}
<img src="v1/images/logos/{{ name }}.png" alt="{{ trans(('import.button_'~name)) }}"/><br/>
{{ trans(('import.button_'~name)) }}<br>
@ -38,6 +38,26 @@
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12 col-xs-12">
<div class="box box-default">
<div class="box-header with-border">
<h3 class="box-title">{{ trans('firefly.import_tools_title') }}</h3>
</div>
<div class="box-body">
<p>
{{ trans('firefly.tools_index_intro')|raw }}
</p>
<ul>
<li>
<a href="http://github.com/firefly-iii/csv-importer" title="{{ 'firefly_iii_csv_importer_name'|_ }}">{{ 'firefly_iii_csv_importer_name'|_ }}</a>
</li>
<li>
<a href="http://github.com/firefly-iii/bunq-importer" title="{{ 'firefly_iii_bunq_importer_name'|_ }}">{{ 'firefly_iii_bunq_importer_name'|_ }}</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="row">