From 774d8e815ee1b6a442830d536b8722f2cf2935f6 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sat, 11 Jul 2026 12:10:54 -0400 Subject: [PATCH] Host form: redesign as a tabbed modal Replace the dense always-open add panel + inline edit card with a single Bootstrap modal (shared by Add and Edit) organized into tabs: General, TLS & Wildcard, Traffic, Headers, Access (IP + basic auth + SSO). Adds per-field explanations, a full-width proxy list, and an "Add host" button. Preserves all field names/ids, the challenge-type detection JS, and formAJAX wiring; drops the form-clone edit mechanism in favor of populating the one modal. Verified in a browser (add + edit, tab navigation, field population). Co-Authored-By: Claude Opus 4.8 --- nodejs/views/hosts.ejs | 791 +++++++++++++++++++---------------------- 1 file changed, 372 insertions(+), 419 deletions(-) diff --git a/nodejs/views/hosts.ejs b/nodejs/views/hosts.ejs index 40199bc..3953c96 100755 --- a/nodejs/views/hosts.ejs +++ b/nodejs/views/hosts.ejs @@ -11,7 +11,11 @@ } div.form-group{ - margin-bottom: 1em; + margin-bottom: 1.1em; + } + + .field-help{ + font-size: .82rem; } /* my Div class for my search bar */ @@ -22,25 +26,16 @@ margin-top: 10px; } - /* The input bar */ - input { - font-size: 1rem; - border-top-left-radius: 5px !important; - border-bottom-left-radius: 5px !important; - border-top-right-radius: 5px !important; - border-bottom-right-radius: 5px !important; - } - + /* Greys out a challenge/matching option that isn't available for the host. */ .challengeType-container { - pointer-events: none; /* Prevents clicking */ - opacity: 0.5; /* Greys it out */ - filter: grayscale(1); /* Removes blue/color tint */ - cursor: not-allowed; - } + pointer-events: none; /* Prevents clicking */ + opacity: 0.5; /* Greys it out */ + filter: grayscale(1); /* Removes blue/color tint */ + cursor: not-allowed; + } +