{% extends 'admin/layout.html.twig' %}

{% set menu = 'admin_course_tag_manage' %}
{% set script_controller = 'tag/list' %}
{% block main %}

<table id="tag-table" class="table table-striped">
    <thead>
        <th width="10%">{{ 'admin.tag_manage.tag.id_th'|trans }}</th>
        <th width="30%">{{ 'admin.tag_manage.tag.name_th'|trans }}</th>
        <th width="30%">{{ 'admin.tag_manage.tag.group_th'|trans }}</th>
        <th width="20%">{{ 'admin.tag_manage.tag.create_time_th'|trans }}</th>
        <th width="10%">{{ 'admin.tag_manage.tag.operate_th'|trans }}</th>
    </thead>
    
    <tbody>
      {% if tags %}
        {% for tag in tags %}
          {% include 'admin/tag/list-tr.html.twig' %}
        {% endfor %}
      {% else %}
       <tr><td colspan="20"><div class="empty">{{ 'admin.tag_manage.tag.empty'|trans }}</div></td></tr>
      {% endif %}
    </tbody>
</table>

{{ admin_macro.paginator(paginator) }}
<div class="alert alert-info">
  <p>{{ 'admin.tag_manage.tag.footer_one_tips'|trans }}</p>
  <p>{{ 'admin.tag_manage.tag.footer_two_tips'|trans({'%courseSet%': path('admin_course_set')})|raw }}</p>
</div>

{% endblock %}