Removes the unused bulk operations for components (#5840)

This commit is contained in:
Till Deeke 2018-07-16 23:11:38 +02:00 committed by snipe
parent 07a92d20d7
commit 240e642fe9
3 changed files with 0 additions and 23 deletions

View file

@ -202,19 +202,6 @@ class ComponentsController extends Controller
return redirect()->route('components.index')->with('success', trans('admin/components/message.delete.success')); return redirect()->route('components.index')->with('success', trans('admin/components/message.delete.success'));
} }
public function postBulk($componentId = null)
{
//$this->authorize('checkout', $component)
echo 'Stubbed - not yet complete';
}
public function postBulkSave($componentId = null)
{
//$this->authorize('edit', Component::class);
echo 'Stubbed - not yet complete';
}
/** /**
* Return a view to display component information. * Return a view to display component information.
* *

View file

@ -18,12 +18,6 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-default"> <div class="box box-default">
<div class="box-body"> <div class="box-body">
{{ Form::open([
'method' => 'POST',
'route' => ['component/bulk-form'],
'class' => 'form-inline' ]) }}
<table <table
data-columns="{{ \App\Presenters\ComponentPresenter::dataTableLayout() }}" data-columns="{{ \App\Presenters\ComponentPresenter::dataTableLayout() }}"
data-cookie-id-table="componentsTable" data-cookie-id-table="componentsTable"
@ -46,8 +40,6 @@
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"] "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
}'> }'>
</table> </table>
{{ Form::close() }}
</div><!-- /.box-body --> </div><!-- /.box-body -->
</div><!-- /.box --> </div><!-- /.box -->
</div> </div>

View file

@ -19,8 +19,6 @@ Route::group([ 'prefix' => 'components','middleware' => ['auth'] ], function ()
'{componentID}/checkin', '{componentID}/checkin',
[ 'as' => 'component.checkin.save', 'uses' => 'ComponentsController@postCheckin' ] [ 'as' => 'component.checkin.save', 'uses' => 'ComponentsController@postCheckin' ]
); );
Route::post('bulk', [ 'as' => 'component/bulk-form', 'uses' => 'ComponentsController@postBulk' ]);
Route::post('bulksave', [ 'as' => 'component/bulk-save', 'uses' => 'ComponentsController@postBulkSave' ]);
}); });