snipe-it/resources/views/hardware/bulk-delete.blade.php

69 lines
2.4 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('admin/hardware/form.bulk_delete') }}
2016-03-25 01:18:05 -07:00
@parent
@stop
2016-06-29 04:30:21 -07:00
@section('header_right')
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
{{ trans('general.back') }}</a>
2016-06-29 04:30:21 -07:00
@stop
2016-03-25 01:18:05 -07:00
{{-- 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>
2017-01-18 19:28:35 -08:00
<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>
2016-12-29 06:31:16 -08:00
@if ($asset->assignedTo)
{{ $asset->assignedTo->present()->name().' ' .$asset->assigneduser ? '('.$asset->assigneduser->username. ')' : ''}}
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
2016-06-29 04:30:21 -07:00
</div><!-- /.box-body -->
2016-06-29 04:30:21 -07:00
<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>
2016-06-29 04:30:21 -07:00
</div><!-- /.box-footer -->
</div><!-- /.box -->
</form>
</div> <!-- .col-md-12-->
</div><!--.row-->
2016-03-25 01:18:05 -07:00
@stop