mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FEATURE [export] uncheck all centers button
This commit is contained in:
parent
f5448f9d95
commit
dad36927f3
@ -39,8 +39,13 @@
|
|||||||
{{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}</p>
|
{{ 'This will eventually restrict your possibilities in filtering the data.'|trans }}</p>
|
||||||
|
|
||||||
<h3 class="m-3">{{ 'Center'|trans }}</h3>
|
<h3 class="m-3">{{ 'Center'|trans }}</h3>
|
||||||
|
|
||||||
{{ form_widget(form.centers.center) }}
|
{{ 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 }}"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if form.centers.regroupment is defined %}
|
{% if form.centers.regroupment is defined %}
|
||||||
<h3 class="m-3">{{ 'Pick aggregated centers'|trans }}</h3>
|
<h3 class="m-3">{{ 'Pick aggregated centers'|trans }}</h3>
|
||||||
{{ form_widget(form.centers.regroupment) }}
|
{{ form_widget(form.centers.regroupment) }}
|
||||||
@ -53,3 +58,15 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const uncheckAll = () => {
|
||||||
|
const checkedCenters = document.getElementsByName('centers[center][]');
|
||||||
|
|
||||||
|
checkedCenters.forEach(checkbox => checkbox.checked = false)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{% endblock js %}
|
||||||
|
@ -285,6 +285,8 @@ The export will contains only data from the picked centers.: L'export ne contien
|
|||||||
This will eventually restrict your possibilities in filtering the data.: Les possibilités de filtrages seront adaptées aux droits de consultation pour les centres choisis.
|
This will eventually restrict your possibilities in filtering the data.: Les possibilités de filtrages seront adaptées aux droits de consultation pour les centres choisis.
|
||||||
Go to export options: Vers la préparation de l'export
|
Go to export options: Vers la préparation de l'export
|
||||||
Pick aggregated centers: Regroupement de centres
|
Pick aggregated centers: Regroupement de centres
|
||||||
|
uncheck all: Désélectionner tout les centres
|
||||||
|
check all: Sélectionner tout les centres
|
||||||
# export creation step 'export' : choose aggregators, filtering and formatter
|
# export creation step 'export' : choose aggregators, filtering and formatter
|
||||||
Formatter: Mise en forme
|
Formatter: Mise en forme
|
||||||
Choose the formatter: Choisissez le format d'export voulu.
|
Choose the formatter: Choisissez le format d'export voulu.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user