{% extends 'classroom-manage/students.html.twig' %}
{% block title %}{{'classroom.student_manage'|trans}} - {{ parent() }}{% endblock %}
{% set submenu = 'student' %}
{% do script(['app/js/classroom-manage/students-manage/index.js']) %}

{% block maincontent %}

  <form class="form-inline well well-sm " action="" method="get" novalidate>
    <div class="form-group col-md-7">
      <input class="form-control " style="width:45%" type="text" placeholder="{{'classroom.student_placeholder'|trans}}" name="keyword" value="{{ app.request.get('keyword') }}">

      <button class="btn btn-primary">{{'form.btn.search'|trans}}</button>
    </div>
    <div class="clearfix"></div>
  </form>
  
  <table class="table table-striped" id="course-student-list">
    <thead>
      <tr>
        <th width="40%">{{'classroom,student_name'|trans}}</th>
        <th width="30%">{{'classroom,student_study_status'|trans}}</th>
        <th width="30%">{{'classroom,student_opertion'|trans}}</th>
      </tr>
    </thead>
    <tbody>
      {% for student in students %}
        {% set user = users[student.userId] %}
        {% include ('classroom-manage/tr.html.twig') %}
      {% else %}
        <tr class="empty"><td colspan="20">{{'classroom,student_empty'|trans}}</td></tr>
      {% endfor %}
    </tbody>
  </table>

  {{ web_macro.paginator(paginator) }}

{% endblock %}