mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Use Bootstrap Tables on custom fields screens for column selector
This commit is contained in:
parent
0e1dfcf408
commit
a2fef11016
|
@ -20,7 +20,22 @@
|
||||||
</div><!-- /.box-header -->
|
</div><!-- /.box-header -->
|
||||||
|
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table name="fieldsets" id="table" class="table table-responsive table-no-bordered">
|
<table
|
||||||
|
data-cookie-id-table="customFieldsetsTable"
|
||||||
|
data-id-table="customFieldsetsTable"
|
||||||
|
data-search="true"
|
||||||
|
data-side-pagination="client"
|
||||||
|
data-show-columns="true"
|
||||||
|
data-show-export="true"
|
||||||
|
data-show-refresh="true"
|
||||||
|
data-sort-order="asc"
|
||||||
|
data-sort-name="name"
|
||||||
|
id="customFieldsTable"
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
data-export-options='{
|
||||||
|
"fileName": "export-fieldsets-{{ date('Y-m-d') }}",
|
||||||
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
|
}'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ trans('general.name') }}</th>
|
<th>{{ trans('general.name') }}</th>
|
||||||
|
@ -79,18 +94,36 @@
|
||||||
<div class="box-tools pull-right">
|
<div class="box-tools pull-right">
|
||||||
<a href="{{ route('fields.create') }}" class="btn btn-sm btn-primary" data-toggle="tooltip" title="Create a new custom field">{{ trans('admin/custom_fields/general.create_field') }}</a>
|
<a href="{{ route('fields.create') }}" class="btn btn-sm btn-primary" data-toggle="tooltip" title="Create a new custom field">{{ trans('admin/custom_fields/general.create_field') }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div><!-- /.box-header -->
|
</div><!-- /.box-header -->
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table name="fieldsets" id="table" class="table table-responsive table-no-bordered">
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table
|
||||||
|
data-cookie-id-table="customFieldsTable"
|
||||||
|
data-id-table="customFieldsTable"
|
||||||
|
data-search="true"
|
||||||
|
data-side-pagination="client"
|
||||||
|
data-show-columns="true"
|
||||||
|
data-show-export="true"
|
||||||
|
data-show-refresh="true"
|
||||||
|
data-sort-order="asc"
|
||||||
|
data-sort-name="name"
|
||||||
|
id="customFieldsTable"
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
data-export-options='{
|
||||||
|
"fileName": "export-fields-{{ date('Y-m-d') }}",
|
||||||
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
|
}'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ trans('general.name') }}</th>
|
<th data-searchable="true">{{ trans('general.name') }}</th>
|
||||||
<th>Help Text</th>
|
<th data-searchable="true">Help Text</th>
|
||||||
<th>Email</th>
|
<th data-searchable="true">Email</th>
|
||||||
<th>DB Field</th>
|
<th data-visible="false">DB Field</th>
|
||||||
<th>{{ trans('admin/custom_fields/general.field_format') }}</th>
|
<th data-searchable="true">{{ trans('admin/custom_fields/general.field_format') }}</th>
|
||||||
<th>{{ trans('admin/custom_fields/general.field_element_short') }}</th>
|
<th data-searchable="true">{{ trans('admin/custom_fields/general.field_element_short') }}</th>
|
||||||
<th>{{ trans('admin/custom_fields/general.fieldsets') }}</th>
|
<th data-searchable="true">{{ trans('admin/custom_fields/general.fieldsets') }}</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -131,9 +164,13 @@
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div><!-- /.box-body -->
|
</div><!-- /.box-body -->
|
||||||
</div><!-- /.box -->
|
</div><!-- /.box -->
|
||||||
</div> <!-- /.col-md-9-->
|
</div> <!-- /.col-md-9-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
@section('moar_scripts')
|
||||||
|
@include ('partials.bootstrap-table')
|
||||||
|
@stop
|
||||||
|
|
Loading…
Reference in a new issue