{% extends 'user/user_profile.html' %}

{#覆盖原有的个人中心页面#}

{% block title %}
    <li class="is-active"><a>设置信息信息</a></li>
{% endblock title %}



{% block content %}
    <form action="{% url 'user:editor' %}" method="post" enctype="multipart/form-data">
      {% csrf_token %}
      <div class="field is-horizontal">
          <div class="field-label is-normal">
            <label for="{{ form.email.id_for_label }}" class="label">{{ form.email.label }}&nbsp;:&nbsp;</label>
          </div>
          <div class="field-body">
            <div class="field">
              <div class="control">
                  {{ form.email }}
              </div>
            </div>
          </div>
      </div>
        {% for field in user_profile_form %}
            <div class="field is-horizontal">
                <div class="field-label is-normal">
                  <label for="{{ field.id_for_label }}" class="label">{{ field.label }}&nbsp;:&nbsp;</label>
                </div>
                <div class="field-body">
                  <div class="field">
                    <div class="control">
                       {{ field }}
                    </div>
                  </div>
                </div>
            </div>
        {% endfor %}
        <input class="button is-primary is-pulled-right" type="submit" value="保 存 修 改">
        <div class=" is-clearfix"></div>
    </form>
{% endblock content %}
