Brian Read 8a1922f932 * Tue Mar 25 2025 Brian Read <brianr@koozali.org> 0.1.4-4.sme
- New version for AdminLTE integration with no class or ids
2025-03-25 17:40:59 +00:00

151 lines
3.6 KiB
Plaintext

<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- default +jquery -->
<head>
<title><%= $title %></title>
<link rel="made" href="mailto:bugs%40koozali.org">
<meta name="copyright" content="(head.tmpl)Copyright 2003-2004 Mitel Corporation">
%#= stylesheet '/css/new_sme.css'
%#= stylesheet '/css/new-sme-main.css'
<link rel="stylesheet" href="dist/css/adminlte.min.css">
<script src="dist/js/adminlte.min.js"></script>
%= content_for 'head_contrib'
% if (config 'hasJquery') {
%= include 'partials/_js_imports'
%= include 'common_js'
% }
%= content_for 'refresh'
%#= stylesheet '/js/datatables.min.css'
%#= javascript '/js/datatables.min.js'
%#= stylesheet '/js/jquery-ui.min.css'
%#= javascript '/js/jquery-ui.min.js'
%#= javascript '/js/dataTables.buttons.min.js'
%#= javascript '/js/jszip.min.js'
%#= javascript '/js/pdfmake.min.js'
%#= javascript '/js/vfs_fonts.js'
%#= javascript '/js/buttons.html5.min.js'
%#= javascript '/js/buttons.print.min.js'
%= javascript '/js/flag-by-locale.js'
%= javascript '/js/sme-password.js'
<link rel="stylesheet" href="/smanager/css/flag-icon.min.css">
%= stylesheet '/css/sme-jquery-overrides.css'
<style>
#busy-indicator {
display: none;
margin-top: 10px;
font-weight: bold;
color: red;
}
.busy {
cursor: wait; /* Change the cursor to a 'wait' cursor */
}
</style>
</head>
<body>
% if ( not defined $c->session->{lang} ) {
% SrvMngr::init_session ( $c );
% }
<div id="">
%= include 'partials/_header'
% if ($c->is_logged_in && scalar @{SrvMngr::theme_list( $c )} > 1) {
%= include 'partials/_swt_theme'
% }
</div>
<div id="">
% if (config 'hasJquery') {
%= content 'js_toggleMenu'
% }
<div id="" class="">
%= include 'partials/_nav_menu'
% if ( $c->is_logged_in ) {
%= include 'partials/_user_menu'
% }
% if ( $c->is_admin ) {
%= include 'partials/_navig2'
% }
</div>
<div id="" class="">
%= include 'partials/_info'
% if (flash 'success') {
<br><div class="">
%= $c->render_to_string(inline => flash 'success')
</div>
% }
% if ( flash 'warning' ) {
<br><div class="">
%= $c->render_to_string(inline => flash 'warning')
</div>
%}
% if ( flash 'error' ) {
<br><div class="">
%= $c->render_to_string(inline => flash 'error')
</div>
%}
%= content 'module'
%= include 'partials/_footer'
</div>
</div>
% if (config 'hasJquery') {
%= content 'js_swapClass'
%= content 'js_togglePassword'
% }
%= javascript '/js/sme-dataTable-setup.js'
<script>
$(document).ready(function() {
// Handle form submission for any form
$('form').on('submit', function(event) {
// Disable the submit button
$(this).find('button[type="submit"], input[type="submit"]').prop('disabled', true);
// Show the busy indicator
// $('#busy-indicator').show();
// Change the cursor to "wait"
$('body').addClass('busy');
});
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var link = document.querySelector('link[href*="adminlte"]');
if (link) {
var xhr = new XMLHttpRequest();
xhr.open('GET', link.href, true);
xhr.onload = function() {
var match = xhr.responseText.match(/AdminLTE v(\d+\.\d+\.\d+)/);
if (match) {
var version = match[1];
document.getElementById('adminlte-version').textContent = 'AdminLTE version: ' + version;
}
};
xhr.send();
}
});
</script>
<div id="adminlte-version"></div>
</body>
</html>