refactor: Update front-end assets by removing Select2 integration from various forms and adjusting the build configuration.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
<x-module.v-center :model="$datacenter" />
|
||||
<x-module.v-center :model="$datacenter->vCenter" />
|
||||
{{--Name--}}
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="name" class="col-md-3 text-right">Name</label>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<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="form-control select2 single__select" name="status" id="status">
|
||||
<select class="form-control single__select" name="status" id="status">
|
||||
<option value="1" selected>✓ Active</option>
|
||||
<option value="0">✗ Inactive</option>
|
||||
</select>
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
@endpush
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'Package vCenter'],
|
||||
['label' => 'Datastore', 'url' => route('package.datastore.index')],
|
||||
['label' => 'Edit Datastore', 'active' => true],
|
||||
];
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'Package vCenter'],
|
||||
['label' => 'Datastore', 'url' => route('package.datastore.index')],
|
||||
['label' => 'Edit Datastore', 'active' => true],
|
||||
];
|
||||
@endphp
|
||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||
@endsection
|
||||
@@ -22,7 +22,7 @@
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
<x-module.v-center :model="$datastore" />
|
||||
<x-module.v-center :model="$datastore->host->datacenter->vCenter" />
|
||||
<x-module.datacenter :model="$datastore->host" />
|
||||
<x-module.host :model="$datastore" />
|
||||
{{--Name--}}
|
||||
@@ -60,7 +60,7 @@
|
||||
<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="form-control select2 single__select" name="status" id="status">
|
||||
<select class="form-control single__select" name="status" id="status">
|
||||
<option value="1" @selected($datastore->status === 1)>✓ Active</option>
|
||||
<option value="0" @selected($datastore->status === 0)>✗ Inactive</option>
|
||||
</select>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
<x-module.v-center :model="$folder->datacenter" />
|
||||
<x-module.v-center :model="$folder->datacenter->vCenter" />
|
||||
<x-module.datacenter :model="$folder" />
|
||||
{{--Name--}}
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<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 bg-customer p-1">
|
||||
<select class="custom-select select2" id="status" name="status">
|
||||
<select class="custom-select" id="status" name="status">
|
||||
@foreach (Status::getOptions() as $value => $label)
|
||||
<option value="{{ $value }}">
|
||||
{{ $label }}
|
||||
|
||||
@@ -43,14 +43,14 @@
|
||||
{{-- Thumbnail using component --}}
|
||||
<x-image-picker name="thumbnail" label="Thumbnail" :value="$group->thumbnail" />
|
||||
|
||||
<x-module.v-center :model="$group->host?->datacenter" />
|
||||
<x-module.v-center :model="$group->host?->datacenter?->vCenter" />
|
||||
<x-module.datacenter :model="$group->host" />
|
||||
<x-module.host :model="$group" />
|
||||
{{-- Status --}}
|
||||
<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 bg-customer p-1">
|
||||
<select class="form-control select2" id="status" name="status">
|
||||
<select class="form-control" id="status" name="status">
|
||||
@foreach(Status::getOptions() as $value => $label)
|
||||
<option value="{{ $value }}" @selected($group->status === $value)>
|
||||
{{ $label }}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
<x-module.v-center :model="$host->datacenter" />
|
||||
<x-module.v-center :model="$host->datacenter->vCenter" />
|
||||
<x-module.datacenter :model="$host" />
|
||||
|
||||
{{--Name--}}
|
||||
|
||||
@@ -59,7 +59,7 @@ $breadcrumbItems = [
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="option_selected" class="col-md-3 text-right">Tuỳ chọn</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<select class="custom-select select2" id="option_selected" name="option_selected">
|
||||
<select class="custom-select" id="option_selected" name="option_selected">
|
||||
<option value="0">Mặc định (From - To)</option>
|
||||
<option value="1">Nhập ngẫu nhiên</option>
|
||||
</select>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
|
||||
<x-module.v-center :model="$ipaddress->host->datacenter" />
|
||||
<x-module.v-center :model="$ipaddress->host->datacenter->vCenter" />
|
||||
|
||||
<x-module.datacenter :model="$ipaddress->host" />
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="option_selected" class="col-md-3 text-right">Tuỳ chọn</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<select class="custom-select select2" id="option_selected" name="option_selected">
|
||||
<select class="custom-select" id="option_selected" name="option_selected">
|
||||
<option value="0">Mặc định (From - To)</option>
|
||||
<option value="1" selected>Nhập ngẫu nhiên</option>
|
||||
</select>
|
||||
@@ -77,7 +77,7 @@
|
||||
<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 select2" id="status" name="status">
|
||||
<select class="custom-select" id="status" name="status">
|
||||
<option value="0" @selected($ipaddress->status === 0)>Free</option>
|
||||
<option value="1" @selected($ipaddress->status === 1)>Assigned</option>
|
||||
</select>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
|
||||
<x-module.v-center :model="$network->host->datacenter" />
|
||||
<x-module.v-center :model="$network->host->datacenter->vCenter" />
|
||||
<x-module.datacenter :model="$network->host->datacenter" />
|
||||
<x-module.host :model="$network->host" />
|
||||
{{--Name--}}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<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 bg-customer p-1">
|
||||
<select class="custom-select select2 single__select" id="status" name="status">
|
||||
<select class="custom-select single__select" id="status" name="status">
|
||||
@foreach (Status::getOptions() as $value => $label)
|
||||
<option value="{{ $value }}" @selected(old('status') == $value)>
|
||||
{{ $label }}
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-module.v-center :model="$version->osGroup->host->datacenter ?? null" />
|
||||
<x-module.v-center :model="$version->osGroup->host->datacenter->vCenter ?? null" />
|
||||
<x-module.datacenter :model="$version->osGroup->host" />
|
||||
<x-module.host :model="$version->osGroup" />
|
||||
<x-module.os :model="$version" />
|
||||
@@ -56,7 +56,7 @@
|
||||
<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 bg-customer p-1">
|
||||
<select class="custom-select select2" id="status" name="status">
|
||||
<select class="custom-select" id="status" name="status">
|
||||
@foreach (Status::getOptions() as $value => $label)
|
||||
<option value="{{ $value }}" @selected($version->status == $value)>
|
||||
{{ $label }}
|
||||
|
||||
Reference in New Issue
Block a user