Skip to content
Snippets Groups Projects
Commit 0608d02a authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Using data-tables in flying teams and rooms pages

parent 55b4849a
No related branches found
No related tags found
1 merge request!123Resolve "Rooms management page"
......@@ -50,3 +50,23 @@
<p>No flying teams found.</p>
{% endif %}
{% endblock maincontent %}
{% block scripts %}
{{ block.super }}
<script src="{% static 'AdminLTE/plugins/datatables/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js' %}"></script>
<script>
$(function () {
$('#table').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
{% endblock scripts %}
......@@ -26,7 +26,7 @@
<div class="col-sm-6">
{% for field in form %}
<div class="form-group {% if field.errors %}has-error{% endif %}">
<label for="{# TODO #}" class="col-sm-4 control-label">
<label for="{{ field.id_for_label }}" class="col-sm-4 control-label">
{{ field.label }}
</label>
......
......@@ -59,3 +59,23 @@
<p>No rooms found.</p>
{% endif %}
{% endblock maincontent %}
{% block scripts %}
{{ block.super }}
<script src="{% static 'AdminLTE/plugins/datatables/jquery.dataTables.min.js' %}"></script>
<script src="{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js' %}"></script>
<script>
$(function () {
$('#table').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
{% endblock scripts %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment