|
|
@ -7,17 +7,31 @@ const NavigationAdmin = () => {
|
|
|
|
<div className="nav_bar_verticale">
|
|
|
|
<div className="nav_bar_verticale">
|
|
|
|
<img className="logo" srcSet="./LogoApp.svg"></img>
|
|
|
|
<img className="logo" srcSet="./LogoApp.svg"></img>
|
|
|
|
<NavLink className="create_user" to="/Admin">
|
|
|
|
<NavLink className="create_user" to="/Admin">
|
|
|
|
<button id="user" className="bouton" type="button" value="Créer un utilisateur">Créer utilisateur</button>
|
|
|
|
<button id="bouton_créer" className="bouton" type="button" value="Créer un utilisateur" onClick={changeColor}>Créer utilisateur</button>
|
|
|
|
</NavLink>
|
|
|
|
</NavLink>
|
|
|
|
<NavLink className="modify_user" to="/Admin_modif">
|
|
|
|
<NavLink className="modify_user" to="/Admin_modif">
|
|
|
|
<button id="user" className="bouton" type="button" value="Modifier un utilisateur">Modifier utilisateur</button>
|
|
|
|
<button id="bouton_modif" className="bouton" type="button" value="Modifier un utilisateur" onClick={changeColor2}>Modifier utilisateur</button>
|
|
|
|
</NavLink>
|
|
|
|
</NavLink>
|
|
|
|
<NavLink className="delete_user" to="/Admin_supp">
|
|
|
|
<NavLink className="delete_user" to="/Admin_supp">
|
|
|
|
<button id="user" className="bouton" type="button" value="Supprimer un utilisateur">Supprimer utilisateur</button>
|
|
|
|
<button id="bouton_sup" className="bouton" type="button" value="Supprimer un utilisateur" onClick={changeColor3}>Supprimer utilisateur</button>
|
|
|
|
</NavLink>
|
|
|
|
</NavLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function changeColor() {
|
|
|
|
|
|
|
|
let button = document.getElementById("bouton_créer");
|
|
|
|
|
|
|
|
button.style.backgroundColor = "rgb(170,170,170)";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function changeColor2() {
|
|
|
|
|
|
|
|
let button = document.getElementById("bouton_modif");
|
|
|
|
|
|
|
|
button.style.backgroundColor = "rgb(170,170,170)";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function changeColor3() {
|
|
|
|
|
|
|
|
let button = document.getElementById("bouton_sup");
|
|
|
|
|
|
|
|
button.style.backgroundColor = "rgb(170,170,170)";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export default NavigationAdmin;
|
|
|
|
export default NavigationAdmin;
|