addet training info
This commit is contained in:
@@ -44,10 +44,7 @@
|
||||
</div>
|
||||
</button>
|
||||
|
||||
</button>
|
||||
<button id="setup-details" class="button">
|
||||
Show Details
|
||||
</button>
|
||||
|
||||
|
||||
<script>
|
||||
document.getElementById('seed-db-btn').addEventListener('click', function () {
|
||||
@@ -156,14 +153,15 @@
|
||||
};
|
||||
btnDiv.appendChild(startBtn);
|
||||
|
||||
// View Log button
|
||||
const logBtn = document.createElement('button');
|
||||
logBtn.textContent = 'View Training Log';
|
||||
logBtn.style = 'background:#666;color:white;border:none;border-radius:6px;padding:6px 12px;cursor:pointer;';
|
||||
logBtn.onclick = function() {
|
||||
showLogModal(training.id);
|
||||
// View Training Details button
|
||||
const detailsBtn = document.createElement('button');
|
||||
detailsBtn.textContent = 'View Training Details';
|
||||
detailsBtn.style = 'background:#666;color:white;border:none;border-radius:6px;padding:6px 12px;cursor:pointer;';
|
||||
detailsBtn.onclick = function() {
|
||||
// Navigate to edit-training page in read-only mode
|
||||
window.location.href = `/edit-training.html?training_id=${training.id}&readonly=true`;
|
||||
};
|
||||
btnDiv.appendChild(logBtn);
|
||||
btnDiv.appendChild(detailsBtn);
|
||||
|
||||
// Remove button
|
||||
const removeBtn = document.createElement('button');
|
||||
|
||||
Reference in New Issue
Block a user