From 86bb1c25274a0762b68b9ada348e806aa00f65a1 Mon Sep 17 00:00:00 2001 From: pbao9 Date: Wed, 4 Feb 2026 13:43:10 +0700 Subject: [PATCH] update --- app/View/Components/FixedActionBar.php | 26 +++ resources/sass/app.scss | 1 + .../sass/components/_fixed-action-bar.scss | 30 ++++ .../pages/module/vcenter/edit.blade.php | 160 +++++++++++++----- .../components/admin-breadcrumb.blade.php | 2 +- .../views/components/button-c-r-m.blade.php | 28 +-- .../components/fixed-action-bar.blade.php | 3 + 7 files changed, 192 insertions(+), 58 deletions(-) create mode 100644 app/View/Components/FixedActionBar.php create mode 100644 resources/sass/components/_fixed-action-bar.scss create mode 100644 resources/views/components/fixed-action-bar.blade.php diff --git a/app/View/Components/FixedActionBar.php b/app/View/Components/FixedActionBar.php new file mode 100644 index 0000000..dbbd1c4 --- /dev/null +++ b/app/View/Components/FixedActionBar.php @@ -0,0 +1,26 @@ + + @endforeach +@endpush + +@section('breadcrumb') + @php +$breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'vCenter', 'url' => route('module.vcenter.index')], + ['label' => 'Edit vCenter', 'active' => true], +]; + @endphp + +@endsection @section("content") + {{-- Page Header --}} +
+

Edit vCenter

+

Manage connection information for this vCenter instance

+
+ @if(auth()->guard('admins')->user()->can("edit module vcenter")) -
-
+ + + @csrf @method('put') -
-
-
- {{--Server Host--}} -
- -
- + {{-- Connection Information --}} +
+
+
Connection Information
+
+
+
+ {{-- Left Column --}} +
+
+ +
+ + + + +
+
+ +
+ +
+ + + + +
- {{--User--}} -
- -
- -
-
- {{--Password--}} -
- -
- -
-
- {{--Status--}} -
- -
- + + {{-- Right Column --}} +
+
+ +
+ + + + +
+
+ + Leave blank to keep current password +
- + + {{-- Fixed Bottom Actions --}} + + + Cancel + + + Save Changes + + + @else
Access Denied - You are not assigned to any Module vCenter @@ -60,3 +124,13 @@
@endif @endsection +@push('plugin-scripts') + @foreach (config('assets.datatable.js') as $datatable) + + @endforeach + +@endpush \ No newline at end of file diff --git a/resources/views/components/admin-breadcrumb.blade.php b/resources/views/components/admin-breadcrumb.blade.php index 958dec0..3c5115a 100644 --- a/resources/views/components/admin-breadcrumb.blade.php +++ b/resources/views/components/admin-breadcrumb.blade.php @@ -1,7 +1,7 @@ @props(['items' => []])