{% load i18n sekizai_tags staticfiles %}

<div class="aldryn aldryn-dashboards_app aldryn-dashboards_app-dashboard-search js-aldryn-dashboards_app-dashboard-search">
    <form action="{{ query_url }}" class="form-inline" method="get">
        {% csrf_token %}
        <input type="hidden" name="max_dashboards" value="{{ instance.max_dashboards }}">
        <div class="input-group">
            <label for="field-{{ instance.pk }}-keyword" class="sr-only">{% trans "Keyword search" %}</label>
            <input type="text" name="q" class="form-control" id="field-{{ instance.pk }}-keyword" placeholder="{% trans 'Keyword' %}"{% if query_url == None %} disabled{% endif %}>
            <span class="input-group-btn">
                <button type="submit" class="btn btn-primary"{% if query_url == None %} disabled{% endif %}>{% trans "Go" %}</button>
            </span>
        </div>
    </form>

    <div class="search-results js-search-results"></div>
</div>

{% addtoblock "css" %}<link rel="stylesheet" href="{% static 'css/aldryn-dashboards_app/dashboard.css' %}">{% endaddtoblock %}
{% addtoblock "js" %}<script src="{% static 'js/addons/cl.dashboards_app.js' %}"></script>{% endaddtoblock %}
