{% load static %}
<form id="cases_form" action="{% url "cases-clone" %}" method="post">{% csrf_token %}
	<div id="contentTab" class="mixbar">
		{% if perms.testcases.add_testcase %}
		<input type="submit" class="js-clone-cases" value="Clone" title="clone selected test plans" disabled />
		{% endif %}
		<input type="button" class="js-printable-cases" value="Printable copy" title="Create the printable copy for selected cases." disabled />
		<input type="button" class="js-export-cases" value="Export" title="Export the cases for selected cases." disabled />
	</div>
	<table id="testcases_table" class="list border-bottom" cellpadding="0" cellspacing="0" border="0">
		<thead>
			<tr>
				<th width="18px">
					<a id="id_blind_all_link">
						<img src="{% static "images/t1.gif" %}" border="0" alt="" class="collapse-all">
					</a>
				</th>
				<th width="20" class="nosort">
					<input type="checkbox" id="id_checkbox_all_case" class="js-select-all" title="Select all/Select none">
				</th>
				<th class="widthID">ID</th>
				<th>Summary</th>
				<th width="100">Author</th>
				<th width="130">Default Tester</th>
				<th width="160">Automated</th>
				<th width="90">Status</th>
				<th width="120">Category</th>
				<th width="60">Priority</th>
				<th width="140">Created</th>
			</tr>
		</thead>
		<tbody>
			{% for test_case in object_list %}
			<tr class="case_title {% cycle 'odd' 'even' %}" data-pk="{{ test_case.pk }}">
				<td>
					<img class="expand blind_icon" src="{% static "images/t1.gif" %}" border="0" alt="">
				</td>
				<td valign="top"><input type="checkbox" name="case" value="{{ test_case.case_id }}"></td>
				<td valign="top"><a href="{% url "case-get" test_case.case_id %}">{{ test_case.case_id }}</a></td>
				<td valign="top" class="expandable">
					<a id="link_{{ test_case.case_id }}" href="{% url "case-get" test_case.case_id %}">{{ test_case.summary }}</a>
				</td>
				<td valign="top"><a href="{% url "user-profile" test_case.author.username %}">{{ test_case.author }}</a></td>
				<td valign="top">
					{% if test_case.default_tester_id %}<a href="{% url "user-profile" test_case.default_tester.username %}">{{ test_case.default_tester }}</a>{% else %}None{% endif %}
				</td>
				<td valign="top">{{ test_case.get_is_automated_status }}</td>
				<td valign="top">{{ test_case.case_status }}</td>
				<td valign="top">{{ test_case.category }}</td>
				<td valign="top" align="center">{{ test_case.priority }}</td>
				<td valign="top">{{ test_case.create_date }}</td>
			</tr>
			{% endfor %}
		</tbody>
	</table>
</form>
