UI: Fix standalone confirmation modal

This commit is contained in:
Dennis Reimann 2023-02-15 16:17:22 +01:00
parent fc14f418cb
commit 9aff143d40
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0
2 changed files with 6 additions and 7 deletions

View file

@ -7,18 +7,19 @@
@section PageHeadContent { @section PageHeadContent {
<style> <style>
body > .content-wrapper { display: flex; min-height: 100vh; } body > .content-wrapper { flex-grow: 1; display: flex; }
body > .content-wrapper, body > .content-wrapper > .container { flex-grow:1; }
.modal-dialog .btn-close { display: none; } .modal-dialog .btn-close { display: none; }
</style> </style>
} }
@section PageFootContent { @section PageFootContent {
<script> <script>
document.getElementById('ConfirmCancel').addEventListener('click', function () { delegate('click', '#ConfirmCancel', function () {
history.back(); history.back();
return false;
}) })
</script> </script>
} }
<div class="modal position-static d-block" tabindex="-1">
<partial name="ConfirmModal" model="Model" /> <partial name="ConfirmModal" model="Model" />
</div>

View file

@ -14,8 +14,6 @@
</head> </head>
<body class="d-flex flex-column min-vh-100"> <body class="d-flex flex-column min-vh-100">
<section class="content-wrapper flex-grow-1"> <section class="content-wrapper flex-grow-1">
@*Dummy navbar-brand, hackish way to keep test AssertNoError passing*@
<div class="navbar-brand d-none"></div>
<div class="container"> <div class="container">
@RenderBody() @RenderBody()
</div> </div>