refactor: Update front-end assets by removing Select2 integration from various forms and adjusting the build configuration.

This commit is contained in:
pbao9
2026-02-28 21:29:13 +07:00
parent 5c97768707
commit 6b18c3ff12
36 changed files with 79 additions and 493 deletions
@@ -7,7 +7,7 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?-
<div class="row form-group align-items-center mb-0">
<label for="host_id" class="col-md-3 text-right">Chọn Host</label>
<div class="col-md-9 p-1 bg-customer">
<select class="form-control select2 single__select host_id" name="module_host_id"
<select class="form-control host_id" name="module_host_id"
data-selected="{{ $selectedHostId }}"
data-placeholder="--- Chọn Host ---">
</select>
@@ -22,11 +22,6 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?-
}
window.hostComponentInitialized = true;
// Initialize Select2 using global function
if (typeof window.initSelect2 === 'function') {
window.initSelect2();
}
const $datacenter = $('.datacenter_id');
const $host = $('.host_id');