mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
Merge remote-tracking branch 'origin/v3' into v3-master
This commit is contained in:
commit
d4628b5c0f
|
@ -1494,7 +1494,7 @@ class AssetsController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($asset->assetstatus) {
|
if ($asset->assetstatus) {
|
||||||
if ($asset->assetstatus->deployable != 0) {
|
if (($asset->assetstatus->deployable != 0) && ($asset->deleted_at=='')) {
|
||||||
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
|
||||||
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm" title="Checkin this asset" data-toggle="tooltip">'.trans('general.checkin').'</a>';
|
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm" title="Checkin this asset" data-toggle="tooltip">'.trans('general.checkin').'</a>';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -69,6 +69,7 @@ return [
|
||||||
'prefix' => env('DB_PREFIX', null),
|
'prefix' => env('DB_PREFIX', null),
|
||||||
'strict' => false,
|
'strict' => false,
|
||||||
'engine' => null,
|
'engine' => null,
|
||||||
|
'unix_socket' => env('DB_SOCKET',''),
|
||||||
'dump_command_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump'
|
'dump_command_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump'
|
||||||
'dump_command_timeout' => 60 * 5, // 5 minute timeout
|
'dump_command_timeout' => 60 * 5, // 5 minute timeout
|
||||||
'dump_using_single_transaction' => true, // perform dump using a single transaction
|
'dump_using_single_transaction' => true, // perform dump using a single transaction
|
||||||
|
|
|
@ -7,28 +7,32 @@
|
||||||
@parent
|
@parent
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@section('header_right')
|
||||||
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
||||||
|
{{ trans('general.back') }}</a>
|
||||||
|
@stop
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{-- Page content --}}
|
{{-- Page content --}}
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="row header">
|
<div class="row">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- left column -->
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<a href="{{ URL::previous() }}" class="btn-flat gray pull-right right"><i class="fa fa-arrow-left icon-white"></i> {{ trans('general.back') }}</a>
|
|
||||||
<h3>
|
|
||||||
|
|
||||||
{{ trans('admin/hardware/form.bulk_delete') }}
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row form-wrapper">
|
|
||||||
|
|
||||||
<div class="col-md-12 column">
|
|
||||||
<p>{{ trans('admin/hardware/form.bulk_delete_help') }}</p>
|
<p>{{ trans('admin/hardware/form.bulk_delete_help') }}</p>
|
||||||
<p style="color: red"><strong><big>{{ trans('admin/hardware/form.bulk_delete_warn', ['asset_count' => count($assets)]) }}</big></strong></p>
|
|
||||||
|
|
||||||
|
|
||||||
<form class="form-horizontal" method="post" action="{{ route('hardware/bulkdelete') }}" autocomplete="off" role="form">
|
<form class="form-horizontal" method="post" action="{{ route('hardware/bulkdelete') }}" autocomplete="off" role="form">
|
||||||
|
<div class="box box-default">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<h3 class="box-title" style="color: red">{{ trans('admin/hardware/form.bulk_delete_warn', ['asset_count' => count($assets)]) }}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="box-body">
|
||||||
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||||
<table class="table table-striped table-condensed">
|
<table class="table table-striped table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -63,9 +67,16 @@
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-default">Delete</button>
|
|
||||||
|
|
||||||
|
</div><!-- /.box-body -->
|
||||||
|
<div class="box-footer text-right">
|
||||||
|
<a class="btn btn-link" href="{{ URL::previous() }}" method="post" enctype="multipart/form-data">{{ trans('button.cancel') }}</a>
|
||||||
|
<button type="submit" class="btn btn-success" id="submit-button"><i class="fa fa-check icon-white"></i> {{ trans('general.delete') }}</button>
|
||||||
|
</div><!-- /.box-footer -->
|
||||||
|
</div><!-- /.box -->
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@stop
|
@stop
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
'class' => 'form-inline' ]) }}
|
'class' => 'form-inline' ]) }}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
@if (Input::get('status')!='Deleted')
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<select name="bulk_actions" class="form-control select2">
|
<select name="bulk_actions" class="form-control select2">
|
||||||
<option value="edit">Edit</option>
|
<option value="edit">Edit</option>
|
||||||
|
@ -56,6 +56,7 @@
|
||||||
</select>
|
</select>
|
||||||
<button class="btn btn-default" id="bulkEdit" disabled>Go</button>
|
<button class="btn btn-default" id="bulkEdit" disabled>Go</button>
|
||||||
</div>
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
<table
|
<table
|
||||||
|
@ -70,7 +71,9 @@
|
||||||
data-cookie-id-table="{{ e(Input::get('status')) }}assetTable-{{ config('version.hash_version') }}">
|
data-cookie-id-table="{{ e(Input::get('status')) }}assetTable-{{ config('version.hash_version') }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@if (Input::get('status')!='Deleted')
|
||||||
<th data-class="hidden-xs" data-switchable="false" data-searchable="false" data-sortable="false" data-field="checkbox"><div class="text-center"><input type="checkbox" id="checkAll" style="padding-left: 0px;"></div></th>
|
<th data-class="hidden-xs" data-switchable="false" data-searchable="false" data-sortable="false" data-field="checkbox"><div class="text-center"><input type="checkbox" id="checkAll" style="padding-left: 0px;"></div></th>
|
||||||
|
@endif
|
||||||
<th data-sortable="true" data-field="id" data-visible="false">{{ trans('general.id') }}</th>
|
<th data-sortable="true" data-field="id" data-visible="false">{{ trans('general.id') }}</th>
|
||||||
<th data-field="companyName" data-searchable="true" data-sortable="true" data-switchable="true" data-visible="false">{{ trans('general.company') }}</th>
|
<th data-field="companyName" data-searchable="true" data-sortable="true" data-switchable="true" data-visible="false">{{ trans('general.company') }}</th>
|
||||||
<th data-sortable="true" data-field="image" data-visible="false">{{ trans('admin/hardware/table.image') }}</th>
|
<th data-sortable="true" data-field="image" data-visible="false">{{ trans('admin/hardware/table.image') }}</th>
|
||||||
|
|
Loading…
Reference in a new issue