<div>
                <br>
                <div>
                    用户名:{{ user.username }}
                </div>
                {% if profile.avatar %}
                    <div>
                        头像
                    </div>
                    <img src="{{ profile.avatar.url }}" styl="max-width: 20%; border-radius: 15%;">
                {% else %}
                    <h5>
                        暂无头像
                    </h5>
                {% endif %}
                <br>
                <br>
                <form method="post" action="." enctype="multipart/form-data">
                    {% csrf_token %}
                    <div>
                        <label for="avatar">上传头像</label>
                        <input type="file" name="avatar" id="avatar">
                    </div>
                    <div>
                        <label for="phone">
                            电话
                        </label>
                        <input type="text" id="phone" name="phone" value="{{ profile.phone }}">
                    </div>
                    <div>
                        <label for="bio">
                            简介
                        </label>
                        <textarea type="text" id="bio" name="bio" rows="12">
                        {{ profile.bio }}
                    </textarea>
                    </div>
                    <button type="submit">
                        提交
                    </button>
                </form>
    </div>