Source

lukeplant_python / lukeplant_me_uk / django / validator / templates / validator / validationfailure_detail.html

Full commit
{% extends "validator/base.html" %}
{% load csrf %}
{% block content %}
<a href="../">[up]</a>
<h2>Validation failure details</h2>

<form method="post" action="delete/">{% csrf_token %}<div>
<input type="submit" name="delete" value="Delete" />
</div>
</form>

<table width="100%">
	<tr>
		<th scope="row">Time</th>
		<td>{{ object.timestamp|date:"d M y h:i" }}</td>
	</tr>
	<tr>
		<th scope="row">Request</th>
		<td>{{ object.method }} {{ object.path|escape }} 
		{% ifequal object.method 'GET' %}<a href="{{ object.path|escape }}">[go]</a>{% endifequal %}
		</td>
	</tr>
	<tr>
		<th scope="row">Errors</th>
		<td><div><pre>{{ object.errors|escape }}</pre></div></td>
	</tr>
	<tr>
		<th scope="row">Response content</th>
		<td><div><pre>{{ object.get_response.content|linenumbers }}</pre></div></td>
	</tr>
	<tr>
		<th scope="row">Original request</th>
		<td><div class="python">{{ object.get_request_formatted|escape }}</div></td>
	</tr>
</table>
{% endblock %}