forked from ScoDoc/ScoDoc
38 lines
1.2 KiB
Django/Jinja
38 lines
1.2 KiB
Django/Jinja
{% extends "sco_page.j2" %}
|
|
{% import 'wtf.j2' as wtf %}
|
|
|
|
{# Utilisé pour passage d'un semestre à l'autre et pour synchro Apogée #}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script>
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
$('.etuds-box').DataTable({
|
|
paging: false,
|
|
autoWidth: false,
|
|
searching: false,
|
|
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'
|
|
]
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %} |