I added a form of pagination to the insurance doing this.
Put this on line 4 of the genral_list.html file.
{headerTemplate assets='common|datatables|datatables-colreorder|datatables-dt|datatables-bs'}
change the table tag to this:
<table class="table table-striped" id="insurance">
At the table tag add this
<script>
{literal}
$(document).ready(function () {
$('#insurance').DataTable();
});
{/literal}
</script>
I did not find a good way to do pagination in smarty. The only pagination I found for smarty was more than 10 years old.
But adding the data tables to insurance really helps. We have 3000+ in our table and even with indexing it takes a long time for them to load to the screen. When they do load to the screen, then the data is managed by the datatable very well.