mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-11 08:04:09 -08:00
987536930c
* Fix some n+1 problems * Use route in notification dropdown to make sure we link to correct page * Work on better UI support for checkout to non-user. Fix links on index bootstrap table, work towards eliminating assignedUser * Remove Asset::assigneduser() relationship. Instead add a checkedOutToUser() method and/or port to using assignedTo() * Adjust string to fit new reality * Fix #3780. Move the consumables getDataView method to the ApiController. Not entirely RESTful, but it's a weird method that probably doesn't need its own controller and the functionality would be strange to stack on the userscontroller... * Fix file uploads to assets and restore the delete route. * Add asset maintence edit action to index. * Suppliers asset list should link to the related asset, not to the supplier with same ID. * Asset models page should use polymorphic formatter on assigned to to better handle assorted item types. * Comment out more assigneduser fallacy until we figure out the query builder approach to searching for location text.
69 lines
2.3 KiB
PHP
69 lines
2.3 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ trans('admin/hardware/form.bulk_delete') }}
|
|
@parent
|
|
@stop
|
|
|
|
@section('header_right')
|
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
|
{{ trans('general.back') }}</a>
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
<div class="row">
|
|
<!-- left column -->
|
|
<div class="col-md-12">
|
|
<p>{{ trans('admin/hardware/form.bulk_delete_help') }}</p>
|
|
<form class="form-horizontal" method="post" action="{{ route('hardware/bulkdelete') }}" autocomplete="off" role="form">
|
|
{{csrf_field()}}
|
|
<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">
|
|
<table class="table table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<td></td>
|
|
<td>ID</td>
|
|
<td>Name</td>
|
|
<td>Location</td>
|
|
<td>Assigned To</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($assets as $asset)
|
|
<tr>
|
|
<td><input type="checkbox" name="ids[]" value="{{ $asset->id }}" checked="checked"></td>
|
|
<td>{{ $asset->id }}</td>
|
|
<td>{{ $asset->present()->name() }}</td>
|
|
<td>
|
|
@if ($asset->assetloc)
|
|
{{ $asset->assetloc->name }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
@if ($asset->assignedTo)
|
|
{{ $asset->assignedTo->present()->name()}}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</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>
|
|
</div> <!-- .col-md-12-->
|
|
</div><!--.row-->
|
|
@stop
|