vadik likholetov
a33c77d2d0
2) added support for uploading images and files 3) refactored sar_details
32 lines
649 B
HTML
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 %} |