{% extends "queries/base_site.html" %}
{% load querymedia query_list i18n %}

{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{% query_media_prefix %}css/changelists.css" />
<link rel="stylesheet" type="text/css" href="{% query_media_prefix %}css/forms.css" />
<script type="text/javascript" src="../../jsi18n/"></script>
{{ media }}
{% endblock %}
{% block title %}{{title}}{% endblock %}

{% block bodyclass %}change-list{% endblock %}

{% block breadcrumbs %}
<div class="breadcrumbs">
	<a href="../../">
		{% trans "Home" %}
	</a>
	&rsaquo; 
	<a href="../">
		{{ app_label|capfirst }}
	</a>
	&rsaquo; 
	{{ meta.verbose_name_plural|capfirst }}
</div>
{% endblock %}

{% block coltype %}flex{% endblock %}

{% block content %}
<div id="content-main">
	<form action="" method="get">
		<div class="submit-row">
			<input type="button" value="{% trans "Reset form" %}" onclick="document.location.href='./'" />
			<input type="submit" value="{% trans "Search" %}" class="default" />
		</div>
		<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
			<table>
				{{ query_form.as_table}}
			</table>
		</div>
		{% for fs in inline_query_forms %}
		<fieldset class="module aligned">
			<h2>{{fs.verbose_name_plural}}</h2>
			<div class="form-row">
				<div>
					<table>
						{{fs.as_table}}
					</table>
				</div>
			</div>
		</fieldset>
		{% endfor %}
		<div class="submit-row">
			<input type="button" value="{% trans "Reset form" %}" onclick="document.location.href='./'" />
			<input type="submit" value="{% trans "Search" %}" class="default" />
		</div>
	</form>
	<div id="result-list">
		{{ result_list }}
	</div>
</div>
{% endblock %}
