2024-10-30 23:08:35 +01:00
|
|
|
{% extends "sco_page.j2" %}
|
|
|
|
{% import 'wtf.j2' as wtf %}
|
|
|
|
|
2024-10-31 09:20:45 +01:00
|
|
|
{# Utilisé pour passage d'un semestre à l'autre et pour synchro Apogée #}
|
|
|
|
|
2024-10-30 23:08:35 +01:00
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
<script>
|
2024-10-31 09:20:45 +01:00
|
|
|
function sem_select(formsemestre_id, state) {
|
|
|
|
let elems = document.getElementById(formsemestre_id).getElementsByTagName("input");
|
|
|
|
for (var i =0; i < elems.length; i++) {
|
|
|
|
elems[i].checked = state;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function sem_select_inscrits(formsemestre_id) {
|
|
|
|
var elems = document.getElementById(formsemestre_id).getElementsByTagName("input");
|
|
|
|
for (var i =0; i < elems.length; i++) {
|
|
|
|
if (elems[i].parentNode.className.indexOf('inscrit') >= 0) {
|
|
|
|
elems[i].checked=true;
|
|
|
|
} else {
|
|
|
|
elems[i].checked=false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-30 23:08:35 +01:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('.etuds-box').DataTable({
|
|
|
|
paging: false,
|
|
|
|
autoWidth: false,
|
|
|
|
searching: false,
|
2024-10-31 09:20:45 +01:00
|
|
|
info: false, // Disable the "Showing 1 to X of X entries"
|
|
|
|
columnDefs: [
|
|
|
|
{ targets: 'no-sort', orderable: false } // Disable sorting on columns with class 'no-sort'
|
|
|
|
]
|
2024-10-30 23:08:35 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|