Skip to content

Commit

Permalink
Added Sort Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwin committed Apr 19, 2024
1 parent f9520a5 commit 2e77f7f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
13 changes: 12 additions & 1 deletion usaon_benefit_tool/templates/assessments.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h5>
{% endif %}


<table class='table'>
<table class='table' id="assessment">

<thead>
<tr>
Expand Down Expand Up @@ -88,4 +88,15 @@ <h5>

</table>

{% block scripts %}
{{ super() }}

<script>
jQuery(document).ready( function () {
jQuery('#assessment').DataTable();
} );
</script>
{% endblock %}


{% endblock %}
7 changes: 7 additions & 0 deletions usaon_benefit_tool/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
return new bootstrap.Tooltip(tooltipTriggerEl)
})
</script>

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>

<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.25/css/jquery.dataTables.css">

<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.js"></script>

{% endblock %}

</body>
14 changes: 13 additions & 1 deletion usaon_benefit_tool/templates/nodes.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2>{% block title %}Object library{% endblock %}</h1>
{% endif %}


<table class='table'>
<table class='table' id='objects'>

<thead>
<tr>
Expand All @@ -57,6 +57,7 @@ <h2>{% block title %}Object library{% endblock %}</h1>
<th>Created by</th>
<th>Created time</th>
<th>Updated time</th>
<th>Delete</th>
{% endif %}

</tr>
Expand Down Expand Up @@ -93,4 +94,15 @@ <h2>{% block title %}Object library{% endblock %}</h1>

</table>

{% block scripts %}
{{ super() }}

<script>
jQuery(document).ready( function () {
jQuery('#objects').DataTable();
} );
</script>
{% endblock %}


{% endblock %}
11 changes: 11 additions & 0 deletions usaon_benefit_tool/templates/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,15 @@ <h2>{% block title %}Users{% endblock %}</h1>
show_actions=True,
edit_url=('user.get', [('user_id',':id')]),
) }}

{% block scripts %}
{{ super() }}

<script>
jQuery(document).ready( function () {
jQuery('table').DataTable();
} );
</script>
{% endblock %}

{% endblock %}

0 comments on commit 2e77f7f

Please sign in to comment.