Add Please Wait fro default theme and reboot template formatting

This commit is contained in:
John Crisp
2025-08-07 14:20:43 +02:00
parent daf3b746cf
commit 1f3795a388
4 changed files with 33 additions and 3 deletions

View File

@@ -118,3 +118,14 @@ html {
.nutTable tr td:nth-child(1){
width:30%;
}
#busy-indicator {
display: none;
margin-top: 10px;
font-weight: bold;
color: red;
}
.busy {
cursor: wait; /* Change the cursor to a 'wait' cursor */
}

View File

@@ -21,6 +21,18 @@ $(document).ready(function () {
}
});
// and busy cursor
$(document).ready(function () {
// Handle form submission for any form
$('form').on('submit', function (event) {
// Disable all submit buttons and update their labels
$(this).find('button[type="submit"]').prop('disabled', true).text('Please wait...');
$(this).find('input[type="submit"]').prop('disabled', true).val('Please wait...');
// Add busy cursor
$('body').addClass('busy');
});
});
$(document).ready(function () {
// Get the fields

View File

@@ -2,15 +2,17 @@
% content_for 'module' => begin
<%= dumper $c->current_route %>
<div class="card-body">
% if (config->{debug} == 1) {
<pre>
<%= dumper $c->current_route %>
<%= dumper $c->current_route %>
</pre>
% }
<h1><%= $title %></h1>
<h1><%= $title %></h1>
<br>
@@ -45,5 +47,6 @@
</div>
</form>
</div>
%end