mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -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
|
* @return \Illuminate\Http\Response
|
||||||
* @author Vincent Sposato <vincent.sposato@gmail.com>
|
* @author Vincent Sposato <vincent.sposato@gmail.com>
|
||||||
* @version v1.0
|
* @version v1.0
|
||||||
*/
|
*/
|
||||||
public function exportAssetAcceptanceReport()
|
public function postAssetAcceptanceReport()
|
||||||
{
|
{
|
||||||
$this->authorize('reports.view');
|
$this->authorize('reports.view');
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,13 @@
|
||||||
@parent
|
@parent
|
||||||
@stop
|
@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 --}}
|
{{-- Page content --}}
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
|
|
@ -324,14 +324,14 @@ Route::group(['middleware' => ['auth']], function () {
|
||||||
)->name('reports/unaccepted_assets');
|
)->name('reports/unaccepted_assets');
|
||||||
Route::get(
|
Route::get(
|
||||||
'reports/unaccepted_assets/{acceptanceId}/sent_reminder',
|
'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(
|
Route::delete(
|
||||||
'reports/unaccepted_assets/{acceptanceId}/delete',
|
'reports/unaccepted_assets/{acceptanceId}/delete',
|
||||||
[ 'as' => 'reports/unaccepted_assets_delete', 'uses' => 'ReportsController@deleteAssetAcceptance' ]
|
[ReportsController::class, 'deleteAssetAcceptance']
|
||||||
);
|
)->name('reports/unaccepted_assets_delete');
|
||||||
Route::get(
|
Route::post(
|
||||||
'reports/export/unaccepted_assets',
|
'reports/unaccepted_assets',
|
||||||
[ReportsController::class, 'exportAssetAcceptanceReport']
|
[ReportsController::class, 'exportAssetAcceptanceReport']
|
||||||
)->name('reports/export/unaccepted_assets');
|
)->name('reports/export/unaccepted_assets');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue