cwr/web/templates/profile.html
2025-10-23 11:13:56 -04:00

37 lines
1.1 KiB
HTML

<!DOCTYPE html>
{% extends "base.html" %}
{% block content %}
<h2>{{ user.username }}'s Profile</h2>
<img src="{{ user.avatar }}">
<form method="post" enctype='multipart/form-data'>
<p>
<label for="id_avatar">Avatar:</label>
<br>
<input type="file" name="avatar" accept="image/*">
<br>
</p>
<p>
<label for="id_url">Url:</label>
<br>
<small style="color: grey">Required</small>
<br>
<input type="url"
name="url"
maxlength="200"
required
aria-describedby="id_url_helptext"
id="id_url"
value="{{ user.url }}">
<br>
</p>
<p>
<label for="id_description">Description:</label>
<br>
<textarea name="description" cols="40" rows="10" required id="id_description">{{user.description}}
</textarea>
<br>
</p>
<button type="submit">Save</button>
{% csrf_token %}
</form>
{% endblock %}