Skip to content
Snippets Groups Projects
Commit cd08aa41 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Select all function

parent c3a46c82
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -77,6 +77,17 @@
{% endif %}
{{ form.classes.label_tag }}
{{ form.classes }}
<a href="#" id="select-all-classes">Alle auswählen</a>
·
<a href="#" id="deselect-all-classes">Alle abwählen</a>
<script type="text/javascript">
$("#select-all-classes").click(function () {
$(".select-wrapper ul li:not(.selected)").click();
})
$("#deselect-all-classes").click(function () {
$(".select-wrapper ul li.selected").click();
})
</script>
{% if form.teachers.errors %}
<div class="alert error">
......
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