kers/users/templates/users/profile.html

20 lines
381 B
HTML
Raw Normal View History

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 %}
<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 }}
<button type="submit">Bijwerken</button>
2020-07-22 14:06:04 +00:00
</form>
2020-07-22 12:06:16 +00:00
{% else %}
<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