2020-07-22 04:21:29 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2020-07-22 05:03:01 +02:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Profile</title>
|
2020-07-22 04:21:29 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-07-22 05:03:01 +02:00
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
margin: auto;
|
|
|
|
width: 50%;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type=text] {
|
|
|
|
width: 100%;
|
|
|
|
padding: 12px 20px;
|
|
|
|
margin: 8px 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Profile</h1>
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p>Username: {{ username }}</p>
|
|
|
|
<label>Student number</label>
|
|
|
|
<input type="text" value="{{ user.student_number }}"/>
|
|
|
|
<label>Real name</label>
|
|
|
|
<input type="text" value="{{ user.real_name }}">
|
|
|
|
<input type="submit" value="Save"/>
|
|
|
|
<a href="/user/logout">Logout</a>
|
|
|
|
{% else %}
|
|
|
|
<p>Not logged in</p>
|
|
|
|
<a href="/login/zeus/register">Login</a>
|
2020-07-22 04:28:01 +02:00
|
|
|
{% endif %}
|
2020-07-22 05:03:01 +02:00
|
|
|
</div>
|
2020-07-22 04:21:29 +02:00
|
|
|
</body>
|
|
|
|
</html>
|