{% extends "ajax_forms/base.html" %}
{% load cms staticfiles offer_tags %}

{% block extra-head %}{{ form.media }}{% endblock %}

{% block header_content_left %}
    <h2>
        {% if title %}
            {{ title|safe }}
        {% else %}
            {% for breadcrumb in breadcrumbs %}{% if not forloop.first %} &rsaquo; {% endif %}{{ breadcrumb }}{% endfor %}
        {% endif %}
    </h2>
    
    {% if search_fields %}
    <div>
        <br/>
        <input id="search-box" search-url="{{ request.path }}" type="text" class="search-query" placeholder="Search" value="{{ q }}" />
        <img id="search-status" src="{% static 'i/pacifier.gif' %}" height="25px" style="vertical-align:top; display:none;" />
    </div>
    {% endif %}
    
    {% if filter_templates %}
    <div class="filter-panel-section">
        <ul role="navigation" class="nav" style="">
            <li class="dropdown">
                <button data-toggle="dropdown" class="btn btn dropdown-toggle" role="button" type="submit"><i class="icon-plus"></i> Add Filter</button>
                <ul id="add-filter-menu" aria-labelledby="drop1" role="menu" class="dropdown-menu">
                </ul>
            </li>
        </ul>
        <div id="filter-panels" style="float:left;"></div>
        <div class="divider"></div>
    </div>
    {% endif %}
    
{% endblock %}

{% block content %}
    <div class="row-fluid">
        <div class="span12">
            <div id="generic-listview-results">
                {% include 'ajax_forms/generic_listview_results.html' %}
            </div>
        </div><!--/span-->
    </div><!--/row-->
{% endblock %}

{% block body-footer-javascript %}{{ block.super }}
    <script language="javascript" type="text/javascript">
    (function($){
        $(document).ready(function(){
        });
    })(jQuery);
    </script>
{% endblock %}
