mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
add Download All Button, change route analogue to activity report
This commit is contained in:
parent
9a9ca59544
commit
12ee06deb6
|
@ -991,13 +991,13 @@ class ReportsController extends Controller
|
|||
}
|
||||
|
||||
/**
|
||||
* exportAssetAcceptanceReport
|
||||
* Exports the AssetAcceptance report to CSV
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @author Vincent Sposato <vincent.sposato@gmail.com>
|
||||
* @version v1.0
|
||||
*/
|
||||
public function exportAssetAcceptanceReport()
|
||||
public function postAssetAcceptanceReport()
|
||||
{
|
||||
$this->authorize('reports.view');
|
||||
|
||||
|
|
|
@ -8,6 +8,13 @@
|
|||
@parent
|
||||
@stop
|
||||
|
||||
@section('header_right')
|
||||
{{ Form::open(['method' => 'post', 'class' => 'form-horizontal']) }}
|
||||
{{csrf_field()}}
|
||||
<button type="submit" class="btn btn-default"><i class="fa fa-download icon-white" aria-hidden="true"></i> {{ trans('general.download_all') }}</button>
|
||||
{{ Form::close() }}
|
||||
@stop
|
||||
|
||||
{{-- Page content --}}
|
||||
@section('content')
|
||||
|
||||
|
|
|
@ -324,14 +324,14 @@ Route::group(['middleware' => ['auth']], function () {
|
|||
)->name('reports/unaccepted_assets');
|
||||
Route::get(
|
||||
'reports/unaccepted_assets/{acceptanceId}/sent_reminder',
|
||||
[ 'as' => 'reports/unaccepted_assets_sent_reminder', 'uses' => 'ReportsController@sentAssetAcceptanceReminder' ]
|
||||
);
|
||||
[ReportsController::class, 'sentAssetAcceptanceReminder']
|
||||
)->name('reports/unaccepted_assets_sent_reminder');
|
||||
Route::delete(
|
||||
'reports/unaccepted_assets/{acceptanceId}/delete',
|
||||
[ 'as' => 'reports/unaccepted_assets_delete', 'uses' => 'ReportsController@deleteAssetAcceptance' ]
|
||||
);
|
||||
Route::get(
|
||||
'reports/export/unaccepted_assets',
|
||||
[ReportsController::class, 'deleteAssetAcceptance']
|
||||
)->name('reports/unaccepted_assets_delete');
|
||||
Route::post(
|
||||
'reports/unaccepted_assets',
|
||||
[ReportsController::class, 'exportAssetAcceptanceReport']
|
||||
)->name('reports/export/unaccepted_assets');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue