{% extends 'applicant/layout.html.twig' %}
{% block content %}
{% embed '_list.html.twig' %}
{% block list_buttons %}
{% if is_granted('applicant_action', batch) %}
<p>
<a href="{{ path('applicant_project_new', {id:batch.id}) }}" class="btn btn-primary" role="button">提交材料</a>
</p>
{% endif %}
{% endblock %}
{% block ths %}
<th>名称</th>
<th>单位</th>
<th>类别</th>
<th>子类别</th>
<th>材料</th>
<th>状态</th>
<th>编辑</th>
<th>删除</th>
<th>上传附件</th>
<th>附件列表</th>
{% endblock %}
{% block tds %}
<td>{{ entity.name }}</td>
<td>{{ entity.collegeName }}</td>
<td>{{ entity.categoryName }}</td>
<td>{{ entity.levelName }}</td>
<td><a href="{{ path('applicant_project_download', {id:entity.id}) }}">材料</a></td>
<td>{{ entity.status }}</td>
<td>{% if is_granted('applicant_edit', entity) %}<a href="{{ path('applicant_project_edit', {id:entity.id}) }}">编辑</a {% endif %}</td>
<td>{% if is_granted('applicant_delete', entity) %}<a href="{{ path('applicant_project_delete', {id:entity.id}) }}" class="confirm">删除</a>{% endif %}</td>
<td>{% if is_granted('applicant_edit', entity) %}<a href="{{ path('applicant_project_attachment_new', {id:entity.id}) }}">上传附件</a>{% endif %}</td>
<td><a href="{{ path('applicant_project_attachment_index', {id:entity.id}) }}">附件列表</a></td>
{% endblock %}
{% endembed %}
{% endblock %}