You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae_2a_anglais/Project/php/templates/myAccountView.html

60 lines
2.3 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My account</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
</head>
<style>
section {
border: 2px solid black;
margin: 10px 0;
}
</style>
<body>
<section>
<h1>My account</h1>
{% if user is defined %}
<table>
<tr><td>Image : </td><td>{{user.image}}</td></tr>
<tr><td>ID : </td><td>{{user.id}}</td></tr>
<tr><td>Nickname : </td><td>{{user.nickname}}</td>
<td>
<form action="modifyNickname" method="GET">
<input type="hidden" name="user" value={{user.id}}>
<input name="newNickname" type="text" placeholder="new nickname" required>
<input type="submit" value="Modify your nickname">
</form>
</td>
</tr>
<tr><td>Name : </td><td>{{user.name}}</td></tr>
<tr><td>Surname : </td><td>{{user.surname}}</td></tr>
<tr><td>Roles : </td><td>
{% for role in user.roles %}
{{ role }}{% if not loop.last %} - {% endif %}
{% endfor %}</td>
</tr>
<tr><td>Email: </td><td>{{user.email}}</td></tr>
<tr><td>Group : </td><td>{{user.group}}</td></tr>
<tr><td>Extra Time : </td><td>{{user.extraTime? 'yes' : 'no'}}</td></tr>
</table>
</section>
<section>
<h2> Modify password</h2>
{% include 'modifyPasswordForm.twig' %}
</section>
{% endif %}
</body>
</html>