{% extends "admin/base.html" %}
{% load admin_list i18n admin_urls %}

{% block javascripts %}
	{{ block.super }}
<script type='text/javascript'>
// <![CDATA[
		(function($) {
			$(document).ready(function() {
				slick.initFilter();
			});
		})(slk.jQuery);

// ]]>
</script>
{% endblock %}
{% block breadcrumbs %}
	{% if not is_popup %}
		<li>
			<i class='fa fa-app-default fa-app-{{cl.opts.app_label|lower}} fa-fw'></i>
			<a href='{% url 'admin:app_list' app_label=cl.opts.app_label %}'>
				{% trans app_label|capfirst|escape %}
			</a>
		</li>
		<li>
			<a href='{% url 'admin:app_list' app_label=cl.opts.app_label %}'>
				{{ cl.opts.verbose_name_plural|capfirst }}

			</a>
		</li>
	{% endif %}
{% endblock %}
{% block page_title %}
	<li>
		{{ title|capfirst }}

	</li>
{% endblock %}
{% block object-tools-items %}
	{% if has_add_permission %}
		<li>
			<a class='btn btn-primary btn' href='{% url cl.opts|admin_urlname:'add' %}'>
				{% blocktrans with cl.opts.verbose_name|capfirst as name %}Add {{ name }}{% endblocktrans %}

			</a>
		</li>
	{% endif %}
{% endblock %}
{% block content %}
	<div class='row'>
		{% block result_list %}
			<div class='col-md-12'>
				{% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
				<div class='panel panel-inverse'>
					<div class='panel-heading'>
						{{ cl.opts.verbose_name_plural|capfirst }}

					</div>
					<div class='panel-body'>
						<div class='row'>
							<div class='col-lg-12'>
								{% block search %}
									{% search_form cl %}
								{% endblock %}
							</div>
						</div>
						<div class='row-fluid slk-filter margin-top-10'>
							{% if cl.has_filters %}
								{% for spec in cl.filter_specs %}

									{% admin_list_filter cl spec %}
								{% endfor %}

							{% endif %}
						</div>
						{% result_list cl %}

					</div>
					{% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
				</div>
			</div>
		{% endblock %}
	</div>
{% endblock %}
