Source

django-output-validator / output_validator / templates / output_validator / validationfailure_list.html

Full commit
{% extends "output_validator/base.html" %}
{% load url from future %}
{% block content %}

{% if object_list %}
	<form method="post" action="{% url 'output_validator.bulkdelete' %}">{% csrf_token %}
	<div class="errorsfound"><p>{{ object_list|length }} page(s) with errors</p></div>
	<div>
	<table>
		<tr class="header">
			<th scope="col">Time</th>
			<th scope="col">Request</th>
			<th scope="col">Details</th>
			<th scope="col">Delete</th>
		</tr>
		{% for failure in object_list %}
		<tr {% if forloop.counter|divisibleby:"2" %}class="alt"{% endif %}>
			<td>{{ failure.timestamp|date:"d M Y h:i" }}</td>
			<td><span class="method">{{ failure.method }}</span> <span class="path">{{ failure.path|escape }}</span></td>
			<td><a href="{% url 'output_validator.detail' pk=failure.id %}">Details</a></td>
			<td><input type="checkbox" name="deleteitem{{ failure.id }}" /></td>
		</tr>
		{% endfor %}
	</table>
	<br/>
	<input type="submit" name="deleteselected" value="Delete selected" />
	<input type="submit" name="deleteall" value="Delete all" />
	</div></form>
{% else %}
	<div class="noerrorsfound"><p>No errors found.</p></div>
{% endif %}

{% endblock %}