mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expand v2 layout, add user administration pages.
This commit is contained in:
@@ -110,6 +110,7 @@ Route::group(
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// V2 API route for subscriptions.
|
||||
Route::group(
|
||||
[
|
||||
|
@@ -1280,3 +1280,11 @@ Breadcrumbs::for(
|
||||
$breadcrumbs->push(trans('firefly.edit_webhook', ['title' => limitStringLength($webhook->title)]), route('webhooks.edit', [$webhook->id]));
|
||||
}
|
||||
);
|
||||
|
||||
Breadcrumbs::for(
|
||||
'administrations.index',
|
||||
static function (Generator $breadcrumbs): void {
|
||||
$breadcrumbs->parent('index');
|
||||
$breadcrumbs->push(trans('firefly.administrations_breadcrumb'), route('administrations.index'));
|
||||
}
|
||||
);
|
||||
|
@@ -1347,3 +1347,22 @@ Route::group(
|
||||
Route::post('configuration', ['uses' => 'ConfigurationController@postIndex', 'as' => 'configuration.index.post']);
|
||||
}
|
||||
);
|
||||
|
||||
// User Group / Administrations Controller.
|
||||
Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'administrations', 'as' => 'administrations.'],
|
||||
static function (): void {
|
||||
Route::get('', ['uses' => 'UserGroup\IndexController@index', 'as' => 'index']);
|
||||
Route::get('create', ['uses' => 'UserGroup\CreateController@create', 'as' => 'create']);
|
||||
// Route::post('rescan/{bill}', ['uses' => 'Bill\ShowController@rescan', 'as' => 'rescan']);
|
||||
// Route::get('edit/{bill}', ['uses' => 'Bill\EditController@edit', 'as' => 'edit']);
|
||||
// Route::get('delete/{bill}', ['uses' => 'Bill\DeleteController@delete', 'as' => 'delete']);
|
||||
// Route::get('show/{bill}', ['uses' => 'Bill\ShowController@show', 'as' => 'show']);
|
||||
//
|
||||
// Route::post('store', ['uses' => 'Bill\CreateController@store', 'as' => 'store']);
|
||||
// Route::post('update/{bill}', ['uses' => 'Bill\EditController@update', 'as' => 'update']);
|
||||
// Route::post('destroy/{bill}', ['uses' => 'Bill\DeleteController@destroy', 'as' => 'destroy']);
|
||||
//
|
||||
// Route::post('set-order/{bill}', ['uses' => 'Bill\IndexController@setOrder', 'as' => 'set-order']);
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user