summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin/search_form.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2010-10-23 19:46:20 -0400
committerluxagraf <sng@luxagraf.net>2010-10-23 19:46:20 -0400
commitc59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch)
tree2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin/search_form.html
parented77da873e675f02f12cbab9be27f342f825444b (diff)
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin/search_form.html')
-rw-r--r--lib/grappelli/templates/admin/search_form.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin/search_form.html b/lib/grappelli/templates/admin/search_form.html
new file mode 100644
index 0000000..48c4184
--- /dev/null
+++ b/lib/grappelli/templates/admin/search_form.html
@@ -0,0 +1,20 @@
+{% load adminmedia i18n grp_tags %}
+{% if cl.search_fields %}
+ {% comment %}{% get_search_fields_verbose cl.opts as search_fields_verbose %}{% endcomment %}
+ <!-- Search Form -->
+ <form id="changelist-search" action="" method="get">
+ <input type="text" name="{{ search_var }}" id="searchbar" value="{{ cl.query }}" />
+ <button type="submit" value="" class="search">&nbsp;</button>
+ {% for pair in cl.params.items %}
+ {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
+ {% endfor %}
+ {% comment %}
+ {% if search_fields_verbose and not cl.query %}
+ <div id="searchbar_tooltip" class="tooltip search-fields" style="display: none;">
+ <div class="tooltip-pointer">&nbsp;</div>
+ <div class="tooltip-content"><strong>{% trans 'Search' %}:</strong> {{ search_fields_verbose }}</div>
+ </div>
+ {% endif %}
+ {% endcomment %}
+ </form>
+{% endif %} \ No newline at end of file