Added - bulk actions to model asset listings
This commit is contained in:
parent
1ef44721f5
commit
e21fa37254
1 changed files with 42 additions and 21 deletions
|
@ -42,16 +42,34 @@
|
||||||
</div><!-- /.box-header -->
|
</div><!-- /.box-header -->
|
||||||
@endif
|
@endif
|
||||||
<div class="box-body">
|
<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
|
<table
|
||||||
name="modelassets"
|
name="modelassets"
|
||||||
id="table"
|
id="table"
|
||||||
class="snipe-table"
|
class="snipe-table"
|
||||||
|
data-toolbar="#toolbar"
|
||||||
data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
|
data-url="{{ route('api.assets.index',['model_id'=> $model->id]) }}"
|
||||||
data-cookie="true"
|
data-cookie="true"
|
||||||
data-click-to-select="true"
|
data-click-to-select="true"
|
||||||
data-cookie-id-table="modeldetailsViewTable">
|
data-cookie-id-table="model-assets">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<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="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="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>
|
<th data-sortable="true" data-field="name" data-searchable="true" data-formatter="hardwareLinkFormatter">{{ trans('general.name') }}</th>
|
||||||
|
@ -63,6 +81,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
{{ Form::close() }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div> <!-- /.box-body-->
|
</div> <!-- /.box-body-->
|
||||||
</div> <!-- /.box-default-->
|
</div> <!-- /.box-default-->
|
||||||
</div> <!-- /.col-md-9-->
|
</div> <!-- /.col-md-9-->
|
||||||
|
|
Loading…
Add table
Reference in a new issue