{% extends "admin/base_site.html" %} {% load i18n %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Search-Form{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

Search-Form

Basics

The search-form is meant to appear in a .grp-row within a .grp-module. Basically, it is a form.grp-search-form containing an input.grp-searchfield and a button.grp-search-button.

Note: Make sure to wrap the search-form with spaceless-tags to avoid whitespaces.

{% filter force_escape %}
{% templatetag openblock %} spaceless {% templatetag closeblock %}
{% templatetag openblock %} endspaceless {% templatetag closeblock %}
{% endfilter %}

Full Code of a Search-Form

Take a look at Grappellis search_form.html to get the full code of a search-form (e.g. like it is used in a change-list).

{% endblock %}