2020-07-22 03:44:49 +00:00
|
|
|
{% extends "base.html" %}
|
2020-07-22 03:03:01 +00:00
|
|
|
|
2020-07-22 15:43:50 +00:00
|
|
|
{% block title %}Profiel{% endblock %}
|
2020-07-22 03:44:49 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2020-07-22 16:19:42 +00:00
|
|
|
<h2>Profiel</h2>
|
2020-07-22 12:06:16 +00:00
|
|
|
{% if user.is_authenticated %}
|
2020-07-22 15:43:50 +00:00
|
|
|
<p>Gebruikersnaam: {{ user.username }}</p>
|
2020-07-22 14:06:04 +00:00
|
|
|
|
|
|
|
<form action="/user/profile" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form }}
|
2020-07-27 15:56:09 +00:00
|
|
|
<button type="submit">Bijwerken</button>
|
2020-07-22 14:06:04 +00:00
|
|
|
</form>
|
2020-07-22 12:06:16 +00:00
|
|
|
{% else %}
|
2020-07-22 15:37:40 +00:00
|
|
|
<p>Niet ingelogd</p>
|
2020-07-22 12:06:16 +00:00
|
|
|
{% endif %}
|
2020-07-22 03:44:49 +00:00
|
|
|
{% endblock %}
|
2020-07-22 03:03:01 +00:00
|
|
|
|