2424 < a href ="/connection "> Connection</ a >
2525 < a href ="/plan "> Plan</ a >
2626 < a href ="/history "> History</ a >
27- < a href ="/shutdown " class ="btn btn-danger " style ="float: right; margin-right: 5px "> Shutdown</ a >
28- < a id ="login-button " class ="btn btn-primary " style ="float: right; margin-right: 5px "> Login</ a >
27+ < button class ="btn btn-danger " style ="float: right; margin-right: 5px " data-bs-toggle ="modal " data-bs-target ="#shutdown-confirm-modal "> Shutdown</ button >
28+ < button id ="toast-history-btn " class ="btn btn-outline-light " style ="float: right; margin-right: 5px; position: relative; " title ="View notification history " data-bs-toggle ="modal " data-bs-target ="#toast-history-modal ">
29+ < i class ="bi bi-bell "> </ i >
30+ < span id ="toast-history-badge " class ="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger " style ="display: none; font-size: 0.6rem; "> </ span >
31+ </ button >
2932</ nav >
30- < div id ="login-box ">
31- < input type ="text " class ="form-control " id ="username " placeholder ="Username "> < br > < br >
32- < input type ="password " class ="form-control " id ="token " placeholder ="Token "> < br > < br >
33- < button id ="login-save-button " class ="btn btn-outline-primary "> Save</ button >
34- < button id ="login-close-button " class ="btn btn-outline-secondary "> Close</ button >
35- </ div >
3633< div > < h2 > Create new plan</ h2 >
3734 < form id ="plan-form " class ="plan-form m-3 needs-validation ">
3835 < div class ="row justify-content-between align-items-center mb-2 ">
@@ -276,12 +273,6 @@ <h5>Transactions</h5>
276273 </ div >
277274 </ form >
278275</ div >
279- <!-- Toast History Button -->
280- < button id ="toast-history-btn " class ="btn btn-outline-secondary position-fixed " style ="bottom: 20px; right: 80px; z-index: 1050; border-radius: 50%; width: 45px; height: 45px; padding: 0; " title ="View notification history " data-bs-toggle ="modal " data-bs-target ="#toast-history-modal ">
281- < i class ="bi bi-bell "> </ i >
282- < span id ="toast-history-badge " class ="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger " style ="display: none; font-size: 0.6rem; "> </ span >
283- </ button >
284-
285276<!-- Toast History Modal -->
286277< div class ="modal fade " id ="toast-history-modal " tabindex ="-1 " aria-labelledby ="toast-history-modal-label " aria-hidden ="true ">
287278 < div class ="modal-dialog modal-lg modal-dialog-scrollable ">
@@ -320,12 +311,31 @@ <h5 class="modal-title" id="error-detail-modal-label"><i class="bi bi-exclamatio
320311 </ div >
321312</ div >
322313
314+ <!-- Shutdown Confirmation Modal -->
315+ < div class ="modal fade " id ="shutdown-confirm-modal " tabindex ="-1 " aria-labelledby ="shutdown-confirm-modal-label " aria-hidden ="true ">
316+ < div class ="modal-dialog ">
317+ < div class ="modal-content ">
318+ < div class ="modal-header bg-danger text-white ">
319+ < h5 class ="modal-title " id ="shutdown-confirm-modal-label "> < i class ="bi bi-exclamation-triangle me-2 "> </ i > Confirm Shutdown</ h5 >
320+ < button type ="button " class ="btn-close btn-close-white " data-bs-dismiss ="modal " aria-label ="Close "> </ button >
321+ </ div >
322+ < div class ="modal-body ">
323+ < p > Are you sure you want to shutdown the Data Caterer server?</ p >
324+ < p class ="text-muted mb-0 "> Any running processes will be terminated.</ p >
325+ </ div >
326+ < div class ="modal-footer ">
327+ < button type ="button " class ="btn btn-secondary " data-bs-dismiss ="modal "> Cancel</ button >
328+ < a href ="/shutdown " class ="btn btn-danger "> Shutdown</ a >
329+ </ div >
330+ </ div >
331+ </ div >
332+ </ div >
333+
323334< div id ="toast-container " class ="toast-container position-fixed end-0 p-3 " style ="z-index: 1060; bottom: 80px; "> </ div >
324335< script src ="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js "> </ script >
325336< script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js "> </ script >
326337< script src ="https://unpkg.com/bootstrap-table@1.22.2/dist/bootstrap-table.min.js "> </ script >
327338< script src ="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/bootstrap-select.min.js "> </ script >
328339< script type ="module " src ="/ui/index.js "> </ script >
329- < script type ="module " src ="/ui/login.js "> </ script >
330340</ body >
331341</ html >
0 commit comments