This commit is contained in:
2026-05-31 04:02:28 +03:00
parent c3558fd353
commit 3423c141be
1679 changed files with 10256 additions and 84 deletions

View File

@@ -129,7 +129,16 @@
if (!formScope) {
return;
}
const isContabo = select.value === "contabo";
const provider = select.value;
const isContabo = provider === "contabo";
formScope.querySelectorAll("[data-provider-fields]").forEach((group) => {
const providers = (group.getAttribute("data-provider-fields") || "").split(/\s+/);
const active = providers.includes(provider);
group.hidden = !active;
group.querySelectorAll("input, select, textarea").forEach((input) => {
input.disabled = !active;
});
});
const tls = formScope.querySelector('input[name="use_ssl"]');
const pathStyle = formScope.querySelector('input[name="path_style"]');
if (tls) {