diff --git a/app/Http/Controllers/Admin/ConfigurationController.php b/app/Http/Controllers/Admin/ConfigurationController.php new file mode 100644 index 0000000000..63b8e26939 --- /dev/null +++ b/app/Http/Controllers/Admin/ConfigurationController.php @@ -0,0 +1,49 @@ +data; // known domains diff --git a/app/Http/breadcrumbs.php b/app/Http/breadcrumbs.php index 381920a156..3803ef08d9 100644 --- a/app/Http/breadcrumbs.php +++ b/app/Http/breadcrumbs.php @@ -120,6 +120,14 @@ Breadcrumbs::register( } ); +Breadcrumbs::register( + 'admin.configuration.index', function (BreadCrumbGenerator $breadcrumbs) { + $breadcrumbs->parent('admin.index'); + $breadcrumbs->push(trans('firefly.instance_configuration'), route('admin.configuration.index')); +} +); + + /** * ATTACHMENTS */ diff --git a/app/Http/routes.php b/app/Http/routes.php index bbb544c894..3b1bca65b7 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -435,5 +435,8 @@ Route::group( Route::get('/admin/domains/toggle/{domain}', ['uses' => 'Admin\DomainController@toggleDomain', 'as' => 'admin.users.domains.block-toggle']); Route::post('/admin/domains/manual', ['uses' => 'Admin\DomainController@manual', 'as' => 'admin.users.domains.manual']); + // FF configuration: + Route::get('/admin/configuration', ['uses' => 'Admin\ConfigurationController@index', 'as' => 'admin.configuration.index']); + } ); diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 698c9f74a3..1384a6fb55 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -723,6 +723,8 @@ return [ 'no_domain_filled_in' => 'No domain filled in', 'domain_already_blocked' => 'Domain :domain is already blocked', 'domain_is_now_blocked' => 'Domain :domain is now blocked', + 'instance_configuration' => 'Configuration', + 'firefly_instance_configuration' => 'Configuration options for Firefly III', // split a transaction: 'transaction_meta_data' => 'Transaction meta-data', diff --git a/resources/views/admin/configuration/index.twig b/resources/views/admin/configuration/index.twig new file mode 100644 index 0000000000..af17cbfa42 --- /dev/null +++ b/resources/views/admin/configuration/index.twig @@ -0,0 +1,20 @@ +{% extends "./layout/default.twig" %} + +{% block breadcrumbs %} + {{ Breadcrumbs.renderIfExists }} +{% endblock %} +{% block content %} +
+ +
+
+
+

{{ 'setting'|_ }}

+
+
+ Bla bla bla +
+
+
+
+{% endblock %} diff --git a/resources/views/admin/index.twig b/resources/views/admin/index.twig index 926a43e2e2..0c7d5f3dfb 100644 --- a/resources/views/admin/index.twig +++ b/resources/views/admin/index.twig @@ -6,7 +6,22 @@ {% block content %}
-
+
+
+

{{ 'instance_configuration'|_ }}

+
+ +
+
+
+ +
+
+

{{ 'user_administration'|_ }}