You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/05/17 17:04:18 UTC

svn commit: r1339628 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html

Author: gjm
Date: Thu May 17 15:04:18 2012
New Revision: 1339628

URL: http://svn.apache.org/viewvc?rev=1339628&view=rev
Log:
theme: removes upper pagination bar and changes checkboxs to standard - #59

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html?rev=1339628&r1=1339627&r2=1339628&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_search.html Thu May 17 15:04:18 2012
@@ -24,30 +24,28 @@
     <py:choose>
       <div py:when="query" id="content" class="row">
   
-        <div class="span12">
-          <div class="btn-toolbar">
-            <div class="btn-group" 
-                py:with="filter_args = [(f.name, 'on') for f in filters if f.active]">
-              <py:for each="filter in filters">
-                <a id="${filter.name}"
-                    py:with="sf = [x for x in filter_args 
-                                      if x[0] != filter.name] + 
-                                  ([(filter.name, 'on')] if not filter.active else [])"
-                    class="btn ${filter.active and 'active' or None}" 
-                    href="${href.search(q=query, noquickjump=1, **dict(sf))}">
-                  <i py:if="filter.active" class="icon-ok-sign"></i>
-                  ${filter.label}
-                </a>
-              </py:for>
-            </div>
+        <h2 py:if="results">
+          Results <small>(${results.displayed_items()})</small>
+        </h2>
+
+        <form id="fullsearch" action="${href.search()}" method="get">
+          <input type="hidden" name="q" value="${query}" />
+          <input type="hidden" name="noquickjump" value="1" />
+          <div class="span2">
+            <input class="btn btn-warning" type="submit" value="${_('Apply filters')}" />
           </div>
-        </div>
+          <div class="span10 filters">
+            <py:for each="filter in filters">
+              <input type="checkbox" id="${filter.name}" name="${filter.name}"
+                     checked="${filter.active or None}" />
+              <label for="${filter.name}">
+                <span class="label">${filter.label}</span>
+              </label>
+            </py:for>
+          </div>
+        </form>
   
         <div class="span12" py:if="results or quickjump">
-          <h2 py:if="results">
-            Results <small>(${results.displayed_items()})</small>
-          </h2>
-          <xi:include py:with="paginator = results" href="bh_page_index.html" />
           <div>
             <dl id="results">
               <py:if test="quickjump">