add backoffice
This commit is contained in:
parent
689cd27e73
commit
e485acb062
@ -119,12 +119,12 @@
|
|||||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
||||||
|
|
||||||
<div class="alert alert-warning alert-dismissible hidden" id="notModifiedAlert" role="alert">
|
<div class="alert alert-warning alert-dismissible hidden" id="notModifiedAlert" role="alert">
|
||||||
<div>Utilisateur non modifié</div>
|
<div>Utilisateur non ajouté, car le pseudo ou l'adresse mail existe déjà</div>
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
||||||
<div>Vous avez créer l'utilisateur <span id="displayUser"></span></div>
|
<div>Vous avez créée l'utilisateur <span id="displayUser"></span></div>
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
<button type="button" class="btn-close" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -122,8 +122,7 @@ if(id.length > 0){
|
|||||||
}
|
}
|
||||||
|
|
||||||
dataPut = {
|
dataPut = {
|
||||||
|
"id": document.getElementById("idUpdateInput").value,
|
||||||
"id": id,
|
|
||||||
"username": document.getElementById("usernameUpdateInput").value,
|
"username": document.getElementById("usernameUpdateInput").value,
|
||||||
"email": document.getElementById("emailUpdateInput").value,
|
"email": document.getElementById("emailUpdateInput").value,
|
||||||
"name": document.getElementById("nameUpdateInput").value,
|
"name": document.getElementById("nameUpdateInput").value,
|
||||||
@ -140,7 +139,7 @@ if(id.length > 0){
|
|||||||
}
|
}
|
||||||
instance({
|
instance({
|
||||||
method : "put",
|
method : "put",
|
||||||
url:"users",
|
url:"users/"+document.getElementById("idUpdateInput").value,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
data: dataPut
|
data: dataPut
|
||||||
}).then(function(response){
|
}).then(function(response){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user