From c98c8c9afb293a90a62d93cadc4f9222055e5aea Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 7 Oct 2014 21:49:04 -0300 Subject: [PATCH] Redesign search_form to use bootstrap button addon with icon based on django_admin_bootstrapped/bootstrap3/templates/admin/search_form.html --- sigiStatic/css/base_site.css | 10 ++++++++++ templates/admin/search_form.html | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 templates/admin/search_form.html diff --git a/sigiStatic/css/base_site.css b/sigiStatic/css/base_site.css index e9c4b06..eb175ea 100644 --- a/sigiStatic/css/base_site.css +++ b/sigiStatic/css/base_site.css @@ -208,3 +208,13 @@ div#footer a { h1 { margin-bottom: 20px; } + +.form-group button { + /* TODO: + consider undoing change done to '.form-group input[type="text"]' + in dajngo_admin_bootstraped overrides.css + instead of adujsting this */ + + height: 28px; + padding-top: 4px; +} diff --git a/templates/admin/search_form.html b/templates/admin/search_form.html new file mode 100644 index 0000000..98937ef --- /dev/null +++ b/templates/admin/search_form.html @@ -0,0 +1,25 @@ +{% load i18n admin_static %} +{% if cl.search_fields %} + + + +{% endif %}