Skip to content

Commit

Permalink
Refactor insurance company admin page to support Datatables (openemr#…
Browse files Browse the repository at this point in the history
  • Loading branch information
juggernautsei committed Jan 16, 2023
1 parent 14ab13a commit 5ee4f2e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions templates/insurance_companies/general_list.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<a href="{$CURRENT_ACTION}action=edit" onclick="top.restoreSession()"
class="btn btn-secondary btn-add">
{xlt t='Add a Company'}</a>
<br /><br />
<div class="table-responsive">
<table class="table table-striped">
{headerTemplate assets='common|datatables|datatables-colreorder|datatables-dt|datatables-bs'}
<a href="{$CURRENT_ACTION}action=edit" onclick="top.restoreSession()" class="btn btn-secondary btn-add">{xlt t='Add a Company'}</a>
<div class="table-responsive pt-3">
<table class="table table-striped" id="insurance">
<thead>
<tr>
<th>{xlt t='Name'}</th>
Expand Down Expand Up @@ -40,3 +38,8 @@
</tbody>
</table>
</div>
<script>
$(document).ready(function () {
$('#insurance').DataTable();
});
</script>

0 comments on commit 5ee4f2e

Please sign in to comment.