7587e7fd17
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>
17 lines
499 B
Plaintext
17 lines
499 B
Plaintext
@{
|
|
Layout = "~/Views/Shared/_Layout.cshtml";
|
|
}
|
|
<div class="editor-wrapper">
|
|
<div class="card editor-card">
|
|
<div class="card-header editor-card-header-bar">
|
|
<i class="bi bi-pencil-square me-2"></i>@ViewData["EditorTitle"]
|
|
</div>
|
|
<div class="card-body editor-card-body">
|
|
@RenderBody()
|
|
</div>
|
|
<div class="card-footer editor-card-footer">
|
|
@RenderSection("FormActions", required: false)
|
|
</div>
|
|
</div>
|
|
</div>
|