Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Some new routes.
James Cole9502010248dc
diff --git a/app/Http/routes.php b/app/Http/routes.phpindex c638e56850..d8c4af2f4f 100644--- a/app/Http/routes.php+++ b/app/Http/routes.php@@ -191,10 +191,19 @@ Route::group(Route::post('/accounts/update/{account}', ['uses' => 'AccountController@update', 'as' => 'accounts.update']);Route::post('/accounts/destroy/{account}', ['uses' => 'AccountController@destroy', 'as' => 'accounts.destroy']);++/*** Attachment Controller*/- Route::get('/attachment/{attachment}/download', ['uses' => 'AttachmentController@download', 'as' => 'attachment.download']);++ Route::post('/attachment/update/{attachment}', ['uses' => 'AttachmentController@update', 'as' => 'attachment.update']);+ Route::post('/attachment/destroy/{attachment}', ['uses' => 'AttachmentController@destroy', 'as' => 'attachment.destroy']);++ Route::get('/attachment/edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'attachment.edit']);+ Route::get('/attachment/delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'attachment.delete']);+ Route::get('/attachment/show/{attachment}', ['uses' => 'AttachmentController@show', 'as' => 'attachment.show']);+ Route::get('/attachment/download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'attachment.download']);/**diff --git a/resources/twig/transactions/show.twig b/resources/twig/transactions/show.twigindex 5953bc43bd..420e96e447 100644--- a/resources/twig/transactions/show.twig+++ b/resources/twig/transactions/show.twig@@ -87,8 +87,8 @@<tr><td><div class="btn-group btn-group-xs">- <a href="#" class="btn btn-default"><i class="fa fa-pencil"></i></a>- <a href="#" class="btn btn-danger"><i class="fa fa-trash"></i></a>+ <a href="{{ route('attachment.edit', att.id) }}" class="btn btn-default"><i class="fa fa-pencil"></i></a>+ <a href="{{ route('attachment.delete', att.id) }}" class="btn btn-danger"><i class="fa fa-trash"></i></a></div></td><td>