SARBase/templates/list_sar.html
vadik likholetov a33c77d2d0 1) added dynamic SAR calls list reloading
2) added support for uploading images and files
3) refactored sar_details
2023-12-09 23:21:44 +02:00

32 lines
649 B
HTML

{% extends "base.html" %}
{% block title %}
SAR Records
{% endblock %}
{% block content %}
<div id="dynamic-sar-list">
{% include 'dynamic-sar-list.html' %}
</div>
<script>
$(document).ready(function() {
function updateSarDetails() {
$.ajax({
url: '/update_sar_list',
type: 'GET',
success: function(data) {
$('#dynamic-sar-list').html(data); // Replace the content of the div
}
});
}
updateSarDetails(); // Do it once immediately
setInterval(updateSarDetails, 5000); // Then every 5 seconds
});
</script>
{% endblock %}