added account gestion page

This commit is contained in:
Capelier-Marla 2023-01-16 16:12:41 +01:00 committed by Thomas Rubini
parent 0448f4599c
commit 0bc09b340e
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373
2 changed files with 29 additions and 0 deletions

28
Views/account/edit.php Normal file
View File

@ -0,0 +1,28 @@
<?php
$array_account = array(
"username" => "Jean_Michel_du_13",
"email" => "jeanmicheldu13@gmail.com"
);
?>
<main>
<a href="/disconnect">Se déconnecter</a>
<form action="/account/disconnect" method="post">
<label for="profilPicture">Changer l'image de profil&nbsp;</label>
<input type="file" name="profilPicture" id="profilPicture" accept="image/*">
<label for="username">Changer le nom d'utilisateur&nbsp;</label>
<input type="text" name="username" id="username" placeholder="<?= $array_account["username"] ?>">
<label for="email">Changer d'e-mail&nbsp;</label>
<input type="email" name="email" id="email" placeholder="<?= $array_account["email"] ?>">
<button type="button">Enregistrer</button>
</form>
<hr>
<a href="/account/delete">Supprimer le compte ⚠️</a>
</main>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="50px" height="50px"><path d="M 30.933594 32.527344 C 30.785156 30.914063 30.84375 29.789063 30.84375 28.316406 C 31.574219 27.933594 32.882813 25.492188 33.101563 23.429688 C 33.675781 23.382813 34.582031 22.824219 34.847656 20.613281 C 34.988281 19.425781 34.421875 18.757813 34.074219 18.546875 C 35.007813 15.738281 36.949219 7.046875 30.488281 6.148438 C 29.820313 4.980469 28.117188 4.390625 25.90625 4.390625 C 17.050781 4.554688 15.984375 11.078125 17.925781 18.546875 C 17.578125 18.757813 17.011719 19.425781 17.152344 20.613281 C 17.421875 22.824219 18.324219 23.382813 18.898438 23.429688 C 19.117188 25.492188 20.476563 27.933594 21.210938 28.316406 C 21.210938 29.789063 21.265625 30.914063 21.117188 32.527344 C 19.367188 37.238281 7.546875 35.914063 7 45 L 45 45 C 44.453125 35.914063 32.683594 37.238281 30.933594 32.527344 Z"/></svg>

After

Width:  |  Height:  |  Size: 919 B