{% extends 'old-bootstrap-modal-layout.html.twig' %}

{% block title %}{{'核实用户'|trans}}{% endblock %}

{% block body %}
  <form id="delete-form" action="{{path('admin_check_password')}}">
    <div class="row form-group">
      <div class="col-md-2 control-label">
        <label for="title">{{'用户密码'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="password" name="password" class="form-control" placeholder="请输入你的登录密码">
      </div>
    </div>
    <input type="hidden" name="courseId" value="{{courseSet.id}}"/>
    <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
  </form>
  <div id="delete-course-progress" class="delete-course-progress" style="display:none;">
    <div class="progress progress-striped active">
      <div class="progress-bar progress-bar-success" style="width: 0%"></div>
    </div>
    <div class="text-success progress-text"></div>
  </div>
{% endblock %}

{% block footer %}
  <button id="delete-btn" data-loading-text="{{'正在提交'|trans}}" type="button" class="btn btn-primary pull-right js-delete-btn" data-toggle="form-submit" data-target="#delete-form" data-url="{{path('admin_course_set_delete', {id: courseSet.id})}}" >提交</button>
  <button type="button" class="btn btn-link pull-right btn-closed" data-dismiss="modal">{{'取消'|trans}}</button>
  <script>app.load('course/delete-modal');</script>
{% endblock %}