modified: app.py
modified: templates/logs.html
This commit is contained in:
@@ -18,6 +18,19 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-warning mb-3" onclick="archiveLogs()">Archive Logs</button>
|
||||
|
||||
<script>
|
||||
function archiveLogs() {
|
||||
fetch('{{ url_for("archive_logs") }}', { method: "POST" })
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
alert(data.message);
|
||||
refreshLogs();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user