|
|
|
@ -91,14 +91,22 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% block extra_js %} |
|
|
|
{% block extra_js %} |
|
|
|
|
|
|
|
<script src="{% static 'jquery/jquery-3.6.0.min.js' %}"></script> |
|
|
|
<script src="{% static 'jquery/jquery.dataTables.min.js' %}"></script> |
|
|
|
<script src="{% static 'jquery/jquery.dataTables.min.js' %}"></script> |
|
|
|
<script src="{% static 'bootstrap/dataTables.bootstrap4.min.js' %}"></script> |
|
|
|
<script src="{% static 'bootstrap/dataTables.bootstrap4.min.js' %}"></script> |
|
|
|
<script src="{% static 'jquery/datatables.fr.js' %}"></script> |
|
|
|
<script src="{% static 'jquery/datatables.fr.js' %}"></script> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
$(document).ready(function() { |
|
|
|
$(document).ready(function() { |
|
|
|
var table = $('#coureursTable').DataTable({ |
|
|
|
// Empêche la double initialisation de DataTables |
|
|
|
|
|
|
|
var table; |
|
|
|
|
|
|
|
if (!$.fn.DataTable.isDataTable('#coureursTable')) { |
|
|
|
|
|
|
|
table = $('#coureursTable').DataTable({ |
|
|
|
pageLength: 50, |
|
|
|
pageLength: 50, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
table = $('#coureursTable').DataTable(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function updateMainDossardsCount() { |
|
|
|
function updateMainDossardsCount() { |
|
|
|
var count = table.rows({search:'applied'}).count(); |
|
|
|
var count = table.rows({search:'applied'}).count(); |
|
|
|
$('#mainDossardsCountText').text('Générer ' + count + ' dossards'); |
|
|
|
$('#mainDossardsCountText').text('Générer ' + count + ' dossards'); |
|
|
|
|