forked from v4l3n71n/covas-bo
update page addevents
This commit is contained in:
parent
83321404ab
commit
5d70b58fa7
@ -173,49 +173,29 @@
|
|||||||
<h1 class="h2">Évènement</h1>
|
<h1 class="h2">Évènement</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="usernameUpdate">Pseudo</span>
|
|
||||||
<input id="usernameUpdateInput" type="text" class="form-control" placeholder="Pseudo" aria-label="Pseudo" aria-describedby="usernameUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="passwordUpdate">Mot de passe</span>
|
|
||||||
<input id="passwordUpdateInput" type="password" class="form-control" placeholder="Mot de passe" aria-label="Mot de passe" aria-describedby="passwordUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="nameUpdate">Nom</span>
|
<span class="input-group-text" id="nameUpdate">Nom</span>
|
||||||
<input id="nameUpdateInput" type="text" class="form-control" placeholder="Nom" aria-label="Nom" aria-describedby="nameUpdate">
|
<input id="nameUpdateInput" type="text" class="form-control" placeholder="Nom" aria-label="Pseudo" aria-describedby="nameUpdate">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="firstNameUpdate">Prenom</span>
|
<span class="input-group-text" id="placeUpdate">Lieu</span>
|
||||||
<input id="firstNameUpdateInput" type="text" class="form-control" placeholder="Prenom" aria-label="Prenom" aria-describedby="firstNameUpdate">
|
<input id="placeUpdateInput" type="text" class="form-control" placeholder="Lieu" aria-label="Lieu" aria-describedby="placeUpdate">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="emailUpdate">Email</span>
|
<span class="input-group-text" id="start_dateUpdate">Date de début de l'évènement</span>
|
||||||
<input id="emailUpdateInput" type="text" class="form-control" placeholder="Email" aria-label="Email" aria-describedby="emailUpdate">
|
<input id="start_dateUpdateInput" type="datetime-local" class="form-control" placeholder="Date de début de l'évènement" aria-label="Date de début de l'évènement" aria-describedby="start_dateUpdate">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="birthUpdate">Date de naissance</span>
|
<span class="input-group-text" id="end_dateUpdate">Date de fin de l'évènement</span>
|
||||||
<input id="birthUpdateInput" type="date" class="form-control" placeholder="Date de naissance" aria-label="Date de naissance" aria-describedby="birthdateUpdate">
|
<input id="end_dateUpdateInput" type="datetime-local" class="form-control" placeholder="Date de fin de l'évènement" aria-label="Date de fin de l'évènement" aria-describedby="end_dateUpdate">
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<label class="input-group-text" for="rolesSelector">Roles</label>
|
|
||||||
<select class="form-select" id="rolesSelector">
|
|
||||||
<option value="Admin">Administrateur</option>
|
|
||||||
<option value="User" selected>Utilisateur</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="d-grid gap-2 col-6 mx-auto">
|
<div class="d-grid gap-2 col-6 mx-auto">
|
||||||
<button type="button" class="btn btn-success" id="addUser">Ajouter l'utilisateur</button>
|
<button type="button" class="btn btn-success" id="addUser">Ajouter l'évènement</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -216,11 +216,9 @@ document.getElementById("searchUser").addEventListener("keydown", function(ev){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (pathURL=="users"){
|
|
||||||
listInput = ["Status", "Roles", "Pages" ]
|
|
||||||
}
|
|
||||||
if (pathURL=="events"){
|
|
||||||
listInput = ["Status", "Pages" ]
|
listInput = ["Status", "Pages" ]
|
||||||
|
if (pathURL=="users"){
|
||||||
|
listInput.append("Roles")
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i=0; i<listInput.length; i++){
|
for (var i=0; i<listInput.length; i++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user