update ui
This commit is contained in:
@@ -226,3 +226,32 @@
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if($isCreate)
|
||||
@push('styles')
|
||||
<style>
|
||||
.ts-control { border-radius: 0.75rem; border-color: #d9dfe7; padding: 0.65rem 1rem; }
|
||||
.ts-wrapper.form-input { padding: 0; border: none; }
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
new TomSelect("#departments", {
|
||||
create: false,
|
||||
sortField: {
|
||||
field: "text",
|
||||
direction: "asc"
|
||||
},
|
||||
placeholder: "🔍 Tìm phòng ban...",
|
||||
render: {
|
||||
no_results: function(data, escape) {
|
||||
return '<div class="no-results p-3 text-gray-500">Không tìm thấy phòng ban nào</div>';
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user