Skip to content

Commit

Permalink
Fix rescan
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Oct 24, 2021
1 parent e9e9a35 commit b42d8d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion resources/views/v1/bills/show.twig
Expand Up @@ -96,7 +96,13 @@
{% endif %}
</div>
<div class="box-footer">
<p><a id="billButtons" href="{{ route('bills.rescan',object.data.id) }}" class="btn btn-default">{{ 'rescan_old'|_ }}</a></p>
<form action="{{ route('bills.rescan',object.data.id) }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<p>
<input type="submit" name="submit" value="{{ 'rescan_old'|_ }}" class="btn btn-default" />
</p>
</form>

<p><small class="text-muted">
{{ 'running_again_loss'|_ }}
</small>
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Expand Up @@ -195,7 +195,7 @@ static function () {
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers', 'prefix' => 'bills', 'as' => 'bills.'],
static function () {
Route::get('', ['uses' => 'Bill\IndexController@index', 'as' => 'index']);
Route::get('rescan/{bill}', ['uses' => 'Bill\ShowController@rescan', 'as' => 'rescan']);
Route::post('rescan/{bill}', ['uses' => 'Bill\ShowController@rescan', 'as' => 'rescan']);
Route::get('create', ['uses' => 'Bill\CreateController@create', 'as' => 'create']);
Route::get('edit/{bill}', ['uses' => 'Bill\EditController@edit', 'as' => 'edit']);
Route::get('delete/{bill}', ['uses' => 'Bill\DeleteController@delete', 'as' => 'delete']);
Expand Down

0 comments on commit b42d8d1

Please sign in to comment.