mirror of
https://github.com/BreizhHardware/ProjetS4COMWEB.git
synced 2026-01-18 16:47:35 +01:00
Putain d'addEventListener V2
This commit is contained in:
@@ -59,11 +59,11 @@ function displayHomeTopBar() {
|
||||
topbar.innerHTML = `
|
||||
<div id="topInfo">
|
||||
<a id="home">
|
||||
<p id="DoctISEN" class="top-0 position-fixed">
|
||||
<p id="DoctISEN" class="top-0">
|
||||
Doct'ISEN
|
||||
</p>
|
||||
</a>
|
||||
<div class="d-flex position-fixed end-0 flex-row align-items-center gap-3 mt-2 top-0">
|
||||
<div class="d-flex position-absolute end-0 flex-row align-items-center gap-3 mt-2 top-0">
|
||||
<img src="https://www.gravatar.com/avatar/${mailMD5}?s=64" alt="avatar" id="avatar" style="width: 14.3%; height: auto; border-radius: 50%">
|
||||
<div class="dropdown">
|
||||
<a class="text-white dropdown-toggle" id="user-name-dropdown" data-bs-toggle="dropdown">${user.name} ${user.surname}</a>
|
||||
|
||||
@@ -20,7 +20,9 @@ function ButtonShowRdvPraticient() {
|
||||
|
||||
function attachCancelEventListener(rdv_id, i) {
|
||||
const idBtn = "cancel_button" + i;
|
||||
const Btn = document.getElementById(idBtn);
|
||||
console.log(idBtn);
|
||||
console.log(i);
|
||||
let Btn = document.getElementById(idBtn);
|
||||
if(Btn !== null){
|
||||
console.log("je suis là");
|
||||
console.log(Btn);
|
||||
@@ -90,7 +92,8 @@ function DisplayRDVPraticient(rdv){
|
||||
'</div>' + '</div>' +
|
||||
'<div class="card-body">' +
|
||||
'<h5 class="card-title">Vous n\'avez pas de' + '<br>' + 'patient pour ce créneau</h5>' +
|
||||
'<button id="cancel_button' + i + '" class="btn btn-link link-danger link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover"> Annuler le créneau</button>' +
|
||||
'<input type="button" id="cancel_button' + i + '"' +
|
||||
/*'class="btn btn-link link-danger link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover"*/'value="Annuler le créneau"></input>' +
|
||||
'</div>' + '</div>';
|
||||
}
|
||||
container.appendChild(card);
|
||||
|
||||
Reference in New Issue
Block a user