mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
ajoute un bouton pour ajouter des horaires
This commit is contained in:
parent
a5f3e96ad1
commit
9c27b43d3b
@ -66,6 +66,7 @@
|
|||||||
<button class="remove btn-no-style"><i class="fas fa-trash-alt"></i></button>
|
<button class="remove btn-no-style"><i class="fas fa-trash-alt"></i></button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<button class="horaire-identique" style="display:none" id="addDateButton">Ajouter un horaire</button>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
@ -121,10 +121,14 @@ if($('#ajouterDesHoraires')) {
|
|||||||
ajouterDesHoraires.addEventListener('change', () => {
|
ajouterDesHoraires.addEventListener('change', () => {
|
||||||
if (ajouterDesHoraires.value == 'avec des') {
|
if (ajouterDesHoraires.value == 'avec des') {
|
||||||
identiquesDifferentsPourChaqueJour.style.display = 'inline'
|
identiquesDifferentsPourChaqueJour.style.display = 'inline'
|
||||||
$('.horaire-identique').style.display = 'inline'
|
$$('.horaire-identique').forEach((e) => {
|
||||||
|
e.style.display = 'inline'
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
identiquesDifferentsPourChaqueJour.style.display = 'none'
|
identiquesDifferentsPourChaqueJour.style.display = 'none'
|
||||||
$('.horaire-identique').style.display = 'none'
|
$$('.horaire-identique').forEach((e) => {
|
||||||
|
e.style.display = 'none'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user