Geoffrey-Django/templates/GeoffreyApp/resource_table.html

20 lines
430 B
HTML
Raw Normal View History

<table id="resource_table" class="table table-hover link-table">
<thead class="bg-dark">
<tr>
<th>Resource Name</th>
</tr>
</thead>
<tbody>
{% for resource in resource_list %}
<tr>
<td>{{ resource.resource_name }} </td>
</tr>
{% endfor %}
</tbody>
</table>
<script>
$(document).ready(function () {
$('#resource_table').DataTable();
});
</script>