kers/users/templates/profile.html
2020-07-22 16:06:04 +02:00

19 lines
378 B
HTML

{% extends "base.html" %}
{% block title %}KeRS - Profile{% endblock %}
{% block content %}
<h1>Profile</h1>
{% if user.is_authenticated %}
<p>Username: {{ user.username }}</p>
<form action="/user/profile" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" value="Submit">
</form>
{% else %}
<p>Not logged in</p>
{% endif %}
{% endblock %}