Display tweaks
This commit is contained in:
@@ -174,10 +174,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
th, td {
|
th, td {
|
||||||
padding: 0.8rem;
|
padding: 0.5rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
font-size: 0.9rem;
|
font-size: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
@@ -528,10 +528,9 @@
|
|||||||
<th>Registration</th>
|
<th>Registration</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>From</th>
|
<th>From</th>
|
||||||
<th>ETA Time</th>
|
<th>ETA</th>
|
||||||
<th>POB</th>
|
<th>POB</th>
|
||||||
<th>Fuel</th>
|
<th>Fuel</th>
|
||||||
<th>Status</th>
|
|
||||||
<th>Actions</th>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -564,7 +563,7 @@
|
|||||||
<th>Registration</th>
|
<th>Registration</th>
|
||||||
<th>Type</th>
|
<th>Type</th>
|
||||||
<th>To</th>
|
<th>To</th>
|
||||||
<th>ETD Time</th>
|
<th>ETD</th>
|
||||||
<th>POB</th>
|
<th>POB</th>
|
||||||
<th>Fuel</th>
|
<th>Fuel</th>
|
||||||
<th>Landed</th>
|
<th>Landed</th>
|
||||||
@@ -754,6 +753,7 @@
|
|||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
initializeAuth();
|
initializeAuth();
|
||||||
setupLoginForm();
|
setupLoginForm();
|
||||||
|
setupKeyboardShortcuts();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Authentication management
|
// Authentication management
|
||||||
@@ -786,6 +786,28 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setupKeyboardShortcuts() {
|
||||||
|
document.addEventListener('keydown', function(e) {
|
||||||
|
// Press 'Escape' to close PPR modal if it's open (allow even when typing in inputs)
|
||||||
|
if (e.key === 'Escape' && document.getElementById('pprModal').style.display === 'block') {
|
||||||
|
e.preventDefault();
|
||||||
|
closePPRModal();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Only trigger other shortcuts when not typing in input fields
|
||||||
|
if (e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA' || e.target.tagName === 'SELECT') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Press 'n' to open new PPR modal
|
||||||
|
if (e.key === 'n' || e.key === 'N') {
|
||||||
|
e.preventDefault();
|
||||||
|
openNewPPRModal();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function showLogin() {
|
function showLogin() {
|
||||||
document.getElementById('loginModal').style.display = 'block';
|
document.getElementById('loginModal').style.display = 'block';
|
||||||
document.getElementById('login-username').focus();
|
document.getElementById('login-username').focus();
|
||||||
@@ -1003,7 +1025,6 @@
|
|||||||
<td>${formatTimeOnly(ppr.eta)}</td>
|
<td>${formatTimeOnly(ppr.eta)}</td>
|
||||||
<td>${ppr.pob_in}</td>
|
<td>${ppr.pob_in}</td>
|
||||||
<td>${ppr.fuel || '-'}</td>
|
<td>${ppr.fuel || '-'}</td>
|
||||||
<td><span class="status ${ppr.status.toLowerCase()}">${ppr.status}</span></td>
|
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-primary btn-sm" onclick="event.stopPropagation(); openPPRModal(${ppr.id})">
|
<button class="btn btn-primary btn-sm" onclick="event.stopPropagation(); openPPRModal(${ppr.id})">
|
||||||
Edit
|
Edit
|
||||||
|
|||||||
Reference in New Issue
Block a user