khaikang/templates/user_config.html

19 lines
593 B
HTML
Raw Permalink Normal View History

2022-11-17 01:51:26 +08:00
{% extends "base_generic.html" %}
{% load static %}
2022-11-17 01:51:26 +08:00
{% block content %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<p>{{ form.shown_name.label}}: {{ form.shown_name}}</p>
<p> Avatar Preview: <div class="avatar-preview"><img id="avatar-img" src="{{avatar.url}}");></div></p>
<p>{{ form.avatar.label}}: {{ form.avatar}}</p>
<p>{{ form.desc.label}}: {{ form.desc}}</p>
<p>{{ form.email.label}}: {{ form.email}}</p>
2022-11-17 01:51:26 +08:00
<button type="submit">Refresh</button>
</form>
2022-11-27 01:34:44 +08:00
<script type="text/javascript" src="{% static 'user_config.js'%}?{% now 'U' %}">
</script>
2022-11-17 01:51:26 +08:00
{% endblock %}