fix: move test modal to view body, wire button via addEventListener

Razor section forwarding across nested layouts is unreliable.
Modal div and script are now directly in Edit.cshtml body (not in
any section) so they are always in the DOM when the page renders.
Button uses addEventListener instead of inline onclick to decouple
from layout rendering order.

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 03:43:25 +03:00
parent c9f776de80
commit 7587e7fd17
2 changed files with 56 additions and 58 deletions
@@ -14,7 +14,3 @@
</div>
</div>
</div>
@section Scripts {
@RenderSection("Scripts", required: false)
}