templates/admin/batch_college_attachment/list.html.twig line 1

Open in your IDE?
  1. {% extends 'admin/layout.html.twig' %}
  2. {% block stylesheets %}
  3. {{ parent() }}
  4. {{ encore_entry_link_tags('list') }}
  5. {% endblock %}
  6. {% block content %}
  7. {% embed '_list.html.twig' %}
  8. {% block list_buttons %}
  9.     {% if is_granted('college_action', batch) %}
  10.     <a href="{{ path('admin_batch_college_attachment_new', {id:batch.id}) }}" class="btn btn-primary" role="button">新上传附件</a>
  11.     {% endif %}
  12.     <a class="btn btn-secondary" href="{{ path('admin') }}" role="button">返回</a>
  13. {% endblock %}
  14. {% block ths %}
  15. <th>名称</th>
  16. <th>下载</th>
  17. <th>删除</th>
  18. {% endblock %}
  19. {% block tds %}
  20. <td>{{ entity.name }}</td>
  21. <td><a href="{{ path('admin_batch_college_attachment_download', {id:entity.id}) }}">下载</a></td>
  22. {% if is_granted('college_action', batch) %}
  23. <td><a class="confirm" href="{{ path('admin_batch_college_attachment_delete', {id:entity.id}) }}">删除</a></td>
  24. {% endif %}
  25. {% endblock %}
  26. {% endembed %}
  27. {% endblock %}
  28. {% block javascripts %}
  29. {{ parent() }}
  30. {{ encore_entry_script_tags('list') }}
  31. {% endblock %}
  32. {% block extra_javascripts %}
  33. {{ encore_entry_script_tags('common_list') }}
  34. {% endblock %}