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

{% block title %}{{'admin.course_manage.manage.auth_user'|trans}}{% endblock %}

{% block body %}
  <form id="delete-form" action="{{path('admin_v2_check_password')}}">
    <div class="row form-group">
      <div class="col-md-2 control-label">
        <label for="title">{{'admin.course_manage.manage.user_passwd'|trans}}</label>
      </div>
      <div class="col-md-8 controls">
        <input type="password" name="password" class="form-control" placeholder="{{'admin.course_manage.manage.input_passwd_placeholder'|trans}}">
      </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="{{'form.btn.submit.submiting'|trans}}" type="button" class="btn btn-primary pull-right js-delete-btn" data-toggle="form-submit" data-target="#delete-form" data-url="{{path('admin_v2_course_set_delete', {id: courseSet.id})}}" >{{'form.btn.submit'|trans}}</button>
  <button type="button" class="btn btn-link pull-right btn-closed" data-dismiss="modal">{{'form.btn.cancel'|trans}}</button>
  <script>app.load('course/delete-modal');</script>
{% endblock %}