feat: enhance about us and footer CMS admin panels

- Improve aboutUs controller with better field handling
- Update footer controller with expanded content management
- Refine about admin view templates
- Update appointment and footer admin views
- Add about contract repair migration script
- Update about.json seed data
This commit is contained in:
Tống Thành Đạt
2026-04-10 22:32:51 +07:00
parent 51c6303437
commit c6a2d4a55d
8 changed files with 534 additions and 114 deletions

View File

@@ -455,7 +455,7 @@
function getCounterHost(input) {
return (
input.closest(".input-group") ||
input.closest(".col-md-12, .col-md-9, .col-md-6, .col-md-4, .col-md-3, .col-lg-12, .col-lg-8, .col-lg-6, .col-lg-4, .col-12") ||
input.closest(".col, [class^='col-'], [class*=' col-']") ||
input.parentElement ||
input
);
@@ -486,7 +486,13 @@
counter.className = "form-text admin-field-counter";
counter.dataset.counterFor = counterToken;
counter.setAttribute("aria-live", "polite");
host.insertAdjacentElement("afterend", counter);
if (host.classList?.contains("input-group")) {
host.insertAdjacentElement("afterend", counter);
} else {
host.appendChild(counter);
}
return counter;
}