diff --git a/resources/views/locations/bulk-delete.blade.php b/resources/views/locations/bulk-delete.blade.php new file mode 100644 index 0000000000..a89dff8bc2 --- /dev/null +++ b/resources/views/locations/bulk-delete.blade.php @@ -0,0 +1,70 @@ +@extends('layouts/default') + +{{-- Page title --}} +@section('title') + {{ trans('general.bulk.delete.header', ['object_type' => trans_choice('general.location_plural', $valid_count)]) }} + @parent +@stop + +@section('header_right') + + {{ trans('general.back') }} +@stop + +{{-- Page content --}} +@section('content') +
+ +
+
+ {{csrf_field()}} +
+
+

{{ trans_choice('general.bulk.delete.warn', $valid_count, ['count' => $valid_count,'object_type' => trans_choice('general.location_plural', $valid_count)]) }}

+
+ +
+ + + + + + + + + @foreach ($locations as $location) + assets_count > 0 ) ? ' class="danger"' : '') !!}> + + + + + @endforeach + +
+ + {{ trans('general.name') }}
+ assets_count == 0) ? ' checked="checked"' : ' disabled') !!}> + {{ $location->name }}
+
+ + +
+
+
+
+@stop +@section('moar_scripts') + +@stop diff --git a/resources/views/partials/locations-bulk-actions.blade.php b/resources/views/partials/locations-bulk-actions.blade.php new file mode 100644 index 0000000000..47e13614b5 --- /dev/null +++ b/resources/views/partials/locations-bulk-actions.blade.php @@ -0,0 +1,20 @@ +@can('delete', \App\Models\User::class) +
+ {{ Form::open([ + 'method' => 'POST', + 'route' => ['locations.bulkdelete.show'], + 'class' => 'form-inline', + 'id' => 'locationsBulkForm']) }} + +
+ + + +
+ + {{ Form::close() }} +
+@endcan +