Added - bulk actions to model asset listings

This commit is contained in:
snipe 2017-12-12 07:15:51 -08:00
parent 1ef44721f5
commit e21fa37254

View file

@ -42,16 +42,34 @@
</div><!-- /.box-header -->
@endif
<div class="box-body">
<div class="row">
<div class="col-md-12">
{{ Form::open([
'method' => 'POST',
'route' => ['hardware/bulkedit'],
'class' => 'form-inline',
'id' => 'bulkForm']) }}
<div id="toolbar">
<select name="bulk_actions" class="form-control select2">
<option value="edit">Edit</option>
<option value="delete">Delete</option>
<option value="labels">Generate Labels</option>
</select>
<button class="btn btn-primary" id="bulkEdit" disabled>Go</button>
</div>
<table
name="modelassets"
id="table"
class="snipe-table"
data-toolbar="#toolbar"
data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
data-cookie="true"
data-click-to-select="true"
data-cookie-id-table="modeldetailsViewTable">
data-cookie-id-table="model-assets">
<thead>
<tr>
<th data-checkbox="true" data-field="checkbox"></th>
<th data-sortable="true" data-field="id" data-searchable="false" data-visible="false">{{ trans('general.id') }}</th>
<th data-sortable="false" data-field="company" data-searchable="false" data-visible="false" data-formatter="companiesLinkObjFormatter">{{ trans('admin/companies/table.title') }}</th>
<th data-sortable="true" data-field="name" data-searchable="true" data-formatter="hardwareLinkFormatter">{{ trans('general.name') }}</th>
@ -63,6 +81,9 @@
</tr>
</thead>
</table>
{{ Form::close() }}
</div>
</div>
</div> <!-- /.box-body-->
</div> <!-- /.box-default-->
</div> <!-- /.col-md-9-->