mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
FIX [review] fix review comments
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
{{ form_widget(form.centers.center) }}
|
||||
|
||||
<div class="mb-3 mt-3">
|
||||
<input class="btn btn-misc" type= "button" onclick='uncheckAll(this)' value="{{ 'uncheck all'|trans }}"/>
|
||||
<input id="toggle-check-all" class="btn btn-misc" type= "button" onclick='uncheckAll(this)' value="{{ 'uncheck all centers'|trans|e('html_attr') }}"/>
|
||||
</div>
|
||||
|
||||
{% if form.centers.regroupment is defined %}
|
||||
@@ -63,9 +63,9 @@
|
||||
|
||||
<script>
|
||||
const uncheckAll = () => {
|
||||
const checkedCenters = document.getElementsByName('centers[center][]');
|
||||
const allCenters = document.getElementsByName('centers[center][]');
|
||||
|
||||
checkedCenters.forEach(checkbox => checkbox.checked = false)
|
||||
allCenters.forEach(checkbox => checkbox.checked = false)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user