update os
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
<link href="{{ asset('build/plugins/select2/select2.min.css') }}" rel="stylesheet" />
|
||||
@endpush
|
||||
|
||||
@php
|
||||
use App\Enums\Status;
|
||||
@endphp
|
||||
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbItems = [
|
||||
@@ -35,7 +39,7 @@
|
||||
<x-module.datacenter :model="$version->osGroup->host" />
|
||||
<x-module.host :model="$version->osGroup" />
|
||||
<x-module.os :model="$version" />
|
||||
<x-module.os-server-version :model="$version" />
|
||||
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="version" class="col-md-3 text-right">Template</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
@@ -46,9 +50,12 @@
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="status" class="col-md-3 text-right">Status</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<select class="custom-select" id="status" name="status">
|
||||
<option value="1" @selected($version->status === 1)>Active</option>
|
||||
<option value="0" @selected($version->status === 0)>No Active</option>
|
||||
<select class="custom-select select2" id="status" name="status">
|
||||
@foreach(Status::getOptions() as $value => $label)
|
||||
<option value="{{ $value }}" @selected($version->status == $value)>
|
||||
{{ $label }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,6 +76,22 @@
|
||||
@endif
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// Initialize Select2 using global function
|
||||
if (typeof window.initSelect2 === 'function') {
|
||||
window.initSelect2();
|
||||
}
|
||||
|
||||
// Initialize other Select2 elements
|
||||
$('.select2').select2({
|
||||
theme: 'bootstrap4',
|
||||
width: '100%'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@push('plugin-scripts')
|
||||
<script src="{{ asset('build/plugins/jquery/jquery.min.js') }}"></script>
|
||||
|
||||
Reference in New Issue
Block a user