{% extends 'TopxiaWebBundle::layout.html.twig' %}

{% block title %}设置新邮箱 - {{ parent() }}{% endblock %}

{% set script_controller = 'auth/email-change' %}

{% block content %}
<div class="row">
  <div class="col-md-6 col-md-offset-3 ptl">
    <div class="panel panel-default panel-page">
      <div class="panel-heading"><h2>设置新邮箱</h2></div>

      <form id="setting-email-form" class="form-horizontal" method="post" >
        {{ web_macro.flash_messages() }}

        <div class="form-group">
          <div class="col-md-3 control-label"><label>新邮箱</label></div>
          <div class="col-md-9 controls">
            <span class="control-text">{{ newEmail }}</span>
          </div>
        </div>

        <div class="form-group">
          <div class="col-md-3 control-label"><label for="password-field">网站登录密码</label></div>
          <div class="col-md-9 controls">
            <input type="password" name="password" class="form-control" id="password-field" />
            <p class="help-block">设置新的登录邮箱，需要校验当前的网站登录密码</p>
          </div>
        </div>

        <div class="form-group">
          <div class="col-md-3 control-label"></div>
          <div class="col-md-9 controls">
            <button type="submit" id="set-email-btn" class="btn btn-primary">提交</button>
          </div>
        </div>

        <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
      </form>


    </div><!-- /panel -->

  </div>

</div>
{% endblock %}