You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
904 B
34 lines
904 B
{% autoescape false %}
|
|
<h2 class="page-header">{{ 'Accesses by user overview'|get_lang }}</h2>
|
|
{{ form }}
|
|
<h3 class="page-header">{{ 'Results and feedback'|get_lang }}</h3>
|
|
{{ table }}
|
|
<script>
|
|
$(function(){
|
|
var courseIdEl = $('#access_overview_course_id'),
|
|
sessionIdEl = $('#access_overview_session_id');
|
|
|
|
if (!courseIdEl.val()) {
|
|
sessionIdEl
|
|
.prop('disabled', true)
|
|
.selectpicker('refresh');
|
|
}
|
|
|
|
courseIdEl.on('change', function() {
|
|
var self = $(this);
|
|
|
|
if (!this.value) {
|
|
sessionIdEl
|
|
.prop("disabled", true)
|
|
.selectpicker('refresh');
|
|
|
|
return;
|
|
}
|
|
|
|
sessionIdEl
|
|
.prop("disabled", false)
|
|
.selectpicker('refresh');
|
|
});
|
|
});
|
|
</script>
|
|
{% endautoescape %} |