From b57b68571eb5ef5e689bf36dca87e8a7cad33735 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 20 Feb 2024 16:44:45 +0000 Subject: [PATCH] Added blade views Signed-off-by: snipe --- .../views/locations/bulk-delete.blade.php | 70 +++++++++++++++++++ .../partials/locations-bulk-actions.blade.php | 20 ++++++ 2 files changed, 90 insertions(+) create mode 100644 resources/views/locations/bulk-delete.blade.php create mode 100644 resources/views/partials/locations-bulk-actions.blade.php 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 +