mordor/users/templates/users/profile.html
2021-05-17 20:50:02 +02:00

20 lines
381 B
HTML

{% extends "base.html" %}
{% block title %}Profiel{% endblock %}
{% block content %}
<h2>Profiel</h2>
{% if user.is_authenticated %}
<p>Gebruikersnaam: {{ user.username }}</p>
<form action="/user/profile" method="post">
{% csrf_token %}
{{ form }}
<button type="submit">Bijwerken</button>
</form>
{% else %}
<p>Niet ingelogd</p>
{% endif %}
{% endblock %}